Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: su and gksu don't accept password...

  1. #11
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: su and gksu don't accept password...

    Quote Originally Posted by coffeecat View Post
    Thanks for the clarification. It explains what I observed in my let's-install-Ubuntu-as-you-would-Gentoo adventure. (Never to be repeated! )
    No problem.

    BTW, I always use debootstrap & chroot to install Ubuntu.

  2. #12
    Join Date
    Dec 2010
    Location
    italy
    Beans
    178
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: su and gksu don't accept password...

    Quote Originally Posted by sisco311 View Post
    `sudo -i' is the recommended command to start a root shell in Ubuntu. Just like in other distributions where the root account is enabled, the recommended command for starting a root shell is `su -', `su -l' or `su --login'.
    yeah i remember with debian i used su and bash to become root.

    Quote Originally Posted by coffeecat View Post
    The use of sudo su (or sudo -i - better) is descibed in the link I posted in post #2. It's worth reading if you're using Ubuntu.

    I guess you're thinking of those occasions where you are using a bash redirect, such as:

    Code:
    sudo echo string > /path/to/file
    ... which fails. All you need is the use of a pipe and tee, as in:

    Code:
    echo string | sudo tee /path/to/file
    No need for sudo su-ing all over the place.
    well i don't remember exactly as it happened a long time ago, but i think it had something to do with setting some sysctl parameters, or echoing stuff in /sys/*.

    in the link you posted earlier i've found this link http://ubuntuforums.org/showpost.php...26&postcount=4 which contains this table:
    Code:
    				                     corrupted by user's 
    		HOME=/root	uses root's PATH     env vars
    sudo -i		Y		Y[2]                 N
    sudo -s		N		Y[2]                 Y
    sudo bash	N		Y[2]                 Y
    sudo su		Y		N[1]                 Y
    so since $PATH is the same under both user and root (in my case at least) i guess the main advantage of sudo -i over sudo su is about enviroment variables...?

    thank you all for your advices.
    the orthographic errors i usually type are always intentionall
    http://xkcd.com/627/
    no scrolling with synaptics/alps touchpad? have a look HERE

  3. #13
    Join Date
    Apr 2007
    Location
    UK
    Beans
    189
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: su and gksu don't accept password...

    Thank you for all the responses.

    I still do not know what caused the change to su mode, however there is enough information in this thread for other users to solve the problem.
    -KVarley
    -Proud member of the Linux Foundation

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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