|
- What are the differences between su, sudo -s, sudo -i, sudo su?
81 sudo lets you run commands in your own user account with root privileges su lets you switch user so that you're actually logged in as root sudo -s runs a shell with root privileges sudo -i also acquires the root user's environment To see the difference between su and sudo -s, do cd ~ and then pwd after each of them
- sudo - How can I add a user as a new sudoer using the command line . . .
Just add the user to the sudo group: sudo adduser <username> sudo The change will take effect the next time the user logs in This works because etc sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this): # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL As long as you have access to a user that
- sudo - How do I login as root? - Ask Ubuntu
In that case, use: sudo su - to execute a login shell as root after auhenticating sudo, and that shell will not need sudo to run admin commands To return to the normal user shell, insert the command exit
- unix - Command: sudo su - - Super User
Observed on Debian Wheezy with htop: 'sudo su -' has a child of 'su -', and 'su -' has a child of '-su' As mentioned above, root user can do 'su -' without entering password, so doing 'su -' inside of a root shell, you will have two different root shell processes ending the inner one will let you return back to the outer one
- sudo - Sudoers file, enable NOPASSWD for user, all commands - Ask Ubuntu
Preface This is a fairly complex question related to the sudoers file and the sudo command in general NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13 04, that I use
- sudo - How to come out of root user? - Ask Ubuntu
Now I have come out or log out or disable root access For that I tried sudo passwd -dl root Then it shows the message: passwd: password expiry information changed But I still have root access, and I am still having # sign instead of $ root@hostname:~# still appears instead of xyz@hostname:~$
- linux - What does sudo -s actually do? - Super User
The two aren't really inconsistent - the sudo command always changes user, either to root, or to the user you specify with the -u switch All the -s does is provide a shortcut for starting a shell as that user
- How to install Chrome browser properly via command line?
I am trying to install chrome browser via command line I tried this: $ apt-cache search chrome browser The results show that the proper term is "chrome-browser," so I tried that: $ sudo apt-get
|
|
|