Tagged Questions
0
votes
1answer
33 views
Difference between sudo su - user and sudo -iu user [duplicate]
I was wondering if there were any difference (in environment ?) between doing
sudo su - user
and
sudo -iu user
From what I know:
By using
sudo su - user
I open a new shell as user, and the ...
2
votes
4answers
168 views
Should I use `sudo` or `su` in a startup script?
I have a personal program, that has a server/client design.
The server daemon part of it, should be run as its own limited user, and the program was not designed to drop its root privileges (if ...
0
votes
4answers
1k views
Is there a difference between sudo su - root and sudo -u root -H /bin/bash?
Like title says, is there a difference between these two commands :
sudo su - root
sudo -u root -H /bin/bash
I'm using GNU/Linux, if that makes a difference.
0
votes
0answers
294 views
Why do you need sudo for “sudo su root”? [duplicate]
Possible Duplicate:
When do su and sudo use different passwords?
Why do you need to use sudo su root ? Why won't it work to just use su root?
2
votes
1answer
137 views
Is it possible to set su to use WE password dialog
I have sometimes problem when during entering password for su other window appears and steals the focus ("wait - did I just entered root password on public IRC chatroom?" - it did not happened but ...
56
votes
2answers
5k views
Why do we use su - and not just su?
I don't understand why su - is preferred over su to login as root.