maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Removing root password (https://talk.maemo.org/showthread.php?t=76064)

Vento 2011-08-25 17:41

Removing root password
 
Hi, i'd like to use "sudo su" command (not "sudo gainroot" with R&D mode on) but I don't know the root password, so I install sudser.

Is there a way to remove root password for user without install any deb?

After enabling RD mode (and removing sudser), I use "passwd -d root" but when I type "sudo su" appears a message and no root shell :(

figaro 2011-08-25 17:51

Re: Removing root password
 
Quote:

Originally Posted by Vento (Post 1076591)
After enabling RD mode (and removing sudser), I use "passwd -d root" but when I type "sudo su" appears a message and no root shell :(

what message?
"Sorry, user user is not allowed to execute '/bin/su' as root" ?
if that so, you might want to make a new entry at /etc/sudoers.d/ for "su". just copy from any existing one and make your own changes there

Vento 2011-08-25 17:59

Re: Removing root password
 
Commands:

As user:
sudo gainrooot

As root:
passwd -d user
passwd -d root
reboot

wait...

As user:
sudo su

Output -> Sorry, user user is not allowed to execute '/bin/su' as root on Nokia-N900

farmatito 2011-08-25 19:57

Re: Removing root password
 
This seems nonsense to me, why do you need to run sudo su?
What do you expect to obtain?

1) use su with root password to open a root shell
2) use sudo <command> to perform a command as root (if allowed in /etc/sudoers)
3) use ssh root@localhost to open a root shell (with root password)

Don't delete your root password as this exposes you to all sorts of security risks.


All times are GMT. The time now is 19:54.

vBulletin® Version 3.8.8