![]() |
2010-12-24
, 16:37
|
Posts: 212 |
Thanked: 66 times |
Joined on May 2010
@ India
|
#31
|
![]() |
2013-08-11
, 13:35
|
|
Posts: 435 |
Thanked: 684 times |
Joined on Apr 2012
@ Netherlands 020
|
#32
|
Here's a guide for getting "Ubuntu-like sudo behaviour":
Create the new sudo rule:
Set user password:Code:root echo "user ALL=(ALL) ALL" > /etc/sudoers.d/custom-user.sudoers update-sudoers
After this You can close the terminal and uninstall the rootsh package. Or just remove it using:Code:passwd user
Close the terminal and open a new one or exit out of the root shell using 'exit' or Ctrl-D.Code:apt-get remove rootsh
To become root now type (enter Your 'user' password):
(Doing it this way there is no need to run sudo before commands if You've switched to root first)Code:sudo su -
Or if You just want to run a single command as root type (enter Your 'user' password):
Oh, and Merry X-Mas BTW...Code:sudo <command>