Reply
Thread Tools
Posts: 212 | Thanked: 66 times | Joined on May 2010 @ India
#31
Merry christmas to all.Thank you DrWilken
 
jellyroll's Avatar
Posts: 435 | Thanked: 684 times | Joined on Apr 2012 @ Netherlands 020
#32
Originally Posted by DrWilken View Post
Here's a guide for getting "Ubuntu-like sudo behaviour":

Create the new sudo rule:
Code:
root
echo "user ALL=(ALL) ALL" > /etc/sudoers.d/custom-user.sudoers
update-sudoers
Set user password:
Code:
passwd user
After this You can close the terminal and uninstall the rootsh package. Or just remove it using:
Code:
apt-get remove rootsh
Close the terminal and open a new one or exit out of the root shell using 'exit' or Ctrl-D.

To become root now type (enter Your 'user' password):
Code:
sudo su -
(Doing it this way there is no need to run sudo before commands if You've switched to root first)

Or if You just want to run a single command as root type (enter Your 'user' password):
Code:
sudo <command>
Oh, and Merry X-Mas BTW...
There is no need to uninstall rootsh just add a root password and edit the everybody.sudoers file in /etc/sudoers.d/

Thanks!

Last edited by jellyroll; 2013-08-12 at 08:22.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:11.