maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   root password (https://talk.maemo.org/showthread.php?t=67359)

udaychaitanya16 2010-12-24 16:37

Re: root password
 
Merry christmas to all.Thank you DrWilken

jellyroll 2013-08-11 13:35

Re: root password
 
Quote:

Originally Posted by DrWilken (Post 903441)
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... :D

There is no need to uninstall rootsh just add a root password and edit the everybody.sudoers file in /etc/sudoers.d/

Thanks!


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

vBulletin® Version 3.8.8