Results 1 to 10 of 10

Thread: Sudo?

  1. #1

    Default Sudo?

    why does the opensuse sudo use the root password whereas in ubuntu it use's a superuser privillage.

    the problem I have is transferring files from /srv/www/htdocs which is very frequent since I want to use kwrite or gedit and envoking sudo to open these files from the terminal also fails with opensuse

    it is a pain having to envok a chmod or chown to edit my webfiles

    on ubuntu I transfer them back and for the easily with no need to change owner or permission.

    anything I can do to fix this and make it easier to manage my website?

  2. #2
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Sudo?

    Exactly where does it fail? An easier way to manage it may be to edit and test your files in ~/public_html, and transfer them when ready.

  3. #3

    Default Re: Sudo?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    - From the sudo man page:

    <quote>
    Otherwise, sudo requires that users authenticate themselves with a
    password by default (NOTE: in the default configuration this is the root
    password, not the user's password). Once a user has been authenticated, a
    timestamp is updated and the user may then use sudo without a password for
    a short period of time (5 minutes unless overridden in sudoers).
    </quote>

    Hope that helps. You could write a script that does the sudo to copy the
    files and then also the chown/chmod.

    copyweb /path/to/files/* /srv/www/htdocs/whateverHere

    And then the script could just run the copy command as well as the other
    commands. The alternative is to probably just configure 'sudo' to work
    the same way as Ubuntu. As a note I think Ubuntu is the odd man out in
    this case... sudo has always (as long as I've used it, which is longer
    than Ubuntu has been alive) prompted for 'root'. Perhaps adding your user
    to the 'wheel' group and then allowing users in that group to use sudo
    would help do this more-easily.

    Good luck.





    devsource wrote:
    > why does the opensuse sudo use the root password whereas in ubuntu it
    > use's a superuser privillage.
    >
    > the problem I have is transferring files from /srv/www/htdocs which is
    > very frequent since I want to use kwrite or gedit and envoking sudo to
    > open these files from the terminal also fails with opensuse
    >
    > it is a pain having to envok a chmod or chown to edit my webfiles
    >
    > on ubuntu I transfer them back and for the easily with no need to
    > change owner or permission.
    >
    > anything I can do to fix this and make it easier to manage my website?
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iQIcBAEBAgAGBQJKNnpNAAoJEF+XTK08PnB50kkP/2/3TiSenkpwAudu3DgyoQ/x
    UeU03FweXtcqgNuYNjzDi9YCN67aM0EeEV2GU+BZp9SY5YvXNd2Knajyzl+GWkGw
    hPNtbqdJyWr2G6mr7sBrteYvHk5oesHUVzIlBNgJb6MfvQEz+c+dtBRH22SUzz9l
    WvXavkvlYumUlQpVnXOahktbsHSzxb5b405X/Yr8xgdNnXI7hXdlPcmcmOKI7boR
    5wH0yHLlaokoRdskHgnsbvdZKlu9062QNhWdk4XQ9T/tk0TGvFVS+BztwJD1vRJs
    HTFMLjMy7c0IcqQTmdHZe+jniRmYGnTw0+7XApS7QFdIRotbCIZJ1XgUZNDrG+lt
    8m2zpRlC8MYVL/divTj+0cYHv2r9BUezP1GMxv0adGyMotHgCFjje5OF2ASW71Ah
    YVVcavUEDsJQmSZwOyLak6/yGnApur5mpSCWGNNJljljIv53ah/WS5ugpOVkBENC
    3ElwFsQk2U0a63L3mm06AokHZPWLlyG+t5VQE+1vPtPTflBwKZ97sIGMsyHw+iuz
    vTNNYUEsdWjNSz86B1Z0hog6/pHHFs5j8Zr/drVDH400biafD2nXozsE3GZ8iEVG
    0siExoPdMVU9IevgJyLPx2t/VB9p6tYuJ9NCAoYiItluE/afc1sv8Ect0YAvoleT
    +OW9aFIzaSHvK3SG4o9s
    =XMx+
    -----END PGP SIGNATURE-----

  4. #4

    Default Re: Sudo?

    every distro does things different.

    so if I suoo cp my /srv/www/htdocs/ to ~/public_html I will have full access to them?

  5. #5

    Default Re: Sudo?

    Quote Originally Posted by ab@novell.com View Post
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    - From the sudo man page:

    <quote>
    Otherwise, sudo requires that users authenticate themselves with a
    password by default (NOTE: in the default configuration this is the root
    password, not the user's password). Once a user has been authenticated, a
    timestamp is updated and the user may then use sudo without a password for
    a short period of time (5 minutes unless overridden in sudoers).
    </quote>

    Hope that helps. You could write a script that does the sudo to copy the
    files and then also the chown/chmod.

    copyweb /path/to/files/* /srv/www/htdocs/whateverHere

    And then the script could just run the copy command as well as the other
    commands. The alternative is to probably just configure 'sudo' to work
    the same way as Ubuntu. As a note I think Ubuntu is the odd man out in
    this case... sudo has always (as long as I've used it, which is longer
    than Ubuntu has been alive) prompted for 'root'. Perhaps adding your user
    to the 'wheel' group and then allowing users in that group to use sudo
    would help do this more-easily.

    Good luck.





    devsource wrote:
    > why does the opensuse sudo use the root password whereas in ubuntu it
    > use's a superuser privillage.
    >
    > the problem I have is transferring files from /srv/www/htdocs which is
    > very frequent since I want to use kwrite or gedit and envoking sudo to
    > open these files from the terminal also fails with opensuse
    >
    > it is a pain having to envok a chmod or chown to edit my webfiles
    >
    > on ubuntu I transfer them back and for the easily with no need to
    > change owner or permission.
    >
    > anything I can do to fix this and make it easier to manage my website?
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - Enigmail: A simple interface for OpenPGP email security

    iQIcBAEBAgAGBQJKNnpNAAoJEF+XTK08PnB50kkP/2/3TiSenkpwAudu3DgyoQ/x
    UeU03FweXtcqgNuYNjzDi9YCN67aM0EeEV2GU+BZp9SY5YvXNd2Knajyzl+GWkGw
    hPNtbqdJyWr2G6mr7sBrteYvHk5oesHUVzIlBNgJb6MfvQEz+c+dtBRH22SUzz9l
    WvXavkvlYumUlQpVnXOahktbsHSzxb5b405X/Yr8xgdNnXI7hXdlPcmcmOKI7boR
    5wH0yHLlaokoRdskHgnsbvdZKlu9062QNhWdk4XQ9T/tk0TGvFVS+BztwJD1vRJs
    HTFMLjMy7c0IcqQTmdHZe+jniRmYGnTw0+7XApS7QFdIRotbCIZJ1XgUZNDrG+lt
    8m2zpRlC8MYVL/divTj+0cYHv2r9BUezP1GMxv0adGyMotHgCFjje5OF2ASW71Ah
    YVVcavUEDsJQmSZwOyLak6/yGnApur5mpSCWGNNJljljIv53ah/WS5ugpOVkBENC
    3ElwFsQk2U0a63L3mm06AokHZPWLlyG+t5VQE+1vPtPTflBwKZ97sIGMsyHw+iuz
    vTNNYUEsdWjNSz86B1Z0hog6/pHHFs5j8Zr/drVDH400biafD2nXozsE3GZ8iEVG
    0siExoPdMVU9IevgJyLPx2t/VB9p6tYuJ9NCAoYiItluE/afc1sv8Ect0YAvoleT
    +OW9aFIzaSHvK3SG4o9s
    =XMx+
    -----END PGP SIGNATURE-----

    yea that does make since others I have had to add myself to the wheel group and then add myself to the sudoer's I think it makes since to use a Superuser password that is not root for system stuff tho especially if you had multiple users
    ...

    the reason I switched is suse did a better job with AD integration and more business work stuff like printing to shared XP printers and what not.

    I'll see about trying to edit it later

    thanks for the info

  6. #6
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Sudo?

    Quote Originally Posted by devsource View Post
    every distro does things different.

    so if I suoo cp my /srv/www/htdocs/ to ~/public_html I will have full access to them?
    public_html is in your home folder. You will have full access to that, and it shouldn't be necessary to "sudo" the files there, just copy. The URL is

    http://localhost/~yourusername/

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,100
    Blog Entries
    15

    Default Re: Sudo?

    Quote Originally Posted by devsource
    why does the opensuse sudo use the root password whereas in ubuntu it
    use's a superuser privillage.

    the problem I have is transferring files from /srv/www/htdocs which is
    very frequent since I want to use kwrite or gedit and envoking sudo to
    open these files from the terminal also fails with opensuse

    it is a pain having to envok a chmod or chown to edit my webfiles

    on ubuntu I transfer them back and for the easily with no need to
    change owner or permission.

    anything I can do to fix this and make it easier to manage my website?
    Hi
    You can use gnomesu or kdesu

    For example
    Code:
    gnomesu gedit /srv/www/htdocs/<some_file>
    
    or
    
    kdesu kwrite /srv/www/htdocs/<some_file>
    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.2 Milestone 2 (i586) Kernel 2.6.30-rc6-git3-4-default
    up 2 days 1:26, 2 users, load average: 0.33, 0.33, 0.25
    CPU VIA Esther processor 1000MHz GPU VIA CX700/VX700


  8. #8

    Default Re: Sudo?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You can use gnomesu or kdesu

    For example
    Code:
    gnomesu gedit /srv/www/htdocs/<some_file>
    
    or
    
    kdesu kwrite /srv/www/htdocs/<some_file>
    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.2 Milestone 2 (i586) Kernel 2.6.30-rc6-git3-4-default
    up 2 days 1:26, 2 users, load average: 0.33, 0.33, 0.25
    CPU VIA Esther processor 1000MHz GPU VIA CX700/VX700
    is that similar to gksudo?

  9. #9

    Default Re: Sudo?

    when i try kdesu kwrite /srv/www/htdocs/file

    it says file not found even tho the file is there

    working with the public_html folder is not any easier I'm used to just overwriting the /var/www/site directory from anywhere I just need to figure out how to change the suse sudo to work like I prefer it

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,100
    Blog Entries
    15

    Default Re: Sudo?

    Quote Originally Posted by devsource
    is that similar to gksudo?
    Hi
    Yes it is

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
    up 2 days 5:25, 2 users, load average: 0.93, 0.34, 0.12
    GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •