Quantcast

sudo su -

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

sudo su -

Thufir Hawat
To switch to root, this is reasonable?

thufir@doge:~$
thufir@doge:~$ sudo su -
root@doge:~#
root@doge:~# pwd
/root
root@doge:~#




thanks,

Thufir


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sudo su -

Oliver Grawert
hi,
Am Montag, den 13.02.2017, 12:06 +0000 schrieb thufir:
> To switch to root, this is reasonable?
>
> thufir@doge:~$ 
> thufir@doge:~$ sudo su -
> root@doge:~# 
> root@doge:~# pwd
> /root
> root@doge:~# 
>

rather "sudo -s" or "sudo -i" 

su resets the environment to a non standard thing, better trust sudo to
do the right thing here...

ciao
        oli
--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sudo su -

W Scott Lockwood III
In reply to this post by Thufir Hawat


On Feb 13, 2017 06:07, "thufir" <[hidden email]> wrote:
To switch to root, this is reasonable?

thufir@doge:~$
thufir@doge:~$ sudo su -
root@doge:~#
root@doge:~# pwd
/root
root@doge:~#




thanks,

Thufir


Sudo by itself makes one less syscall, and gives you this functionality anyway. Use:

sudo -i # root shell, root's environment 
sudo -s # root shell, invoking users environment


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Loading...