Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Feb 2011
#1
I have modified the /etc/sudoers file..Added user ALL = (ALL) ALL .
After these i am not able to login as root ..

ls -l shows following -r--r----- 1 root root .

Help me to login as root
 
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#2
Welcome!
Are we to assume this is an n900 running maemo?
 
Posts: 889 | Thanked: 537 times | Joined on Mar 2010 @ scotland
#3
have you tried undoing your changes, installing rootsh and using the "sudo gainroot" or just "root" command?
__________________
sarcasm may be the lowest form of wit, but its the only wit i have.

its a sad day when i can't slip at least one hitchhiker reference in somewhere.
 
AMLJ's Avatar
Posts: 226 | Thanked: 59 times | Joined on Sep 2010 @ Mierlo, Netherlands
#4
In order to login as root, you should install rootsh and use "sudo gainroot" or "root" as festivalnut mentioned...

Right now you can also act like noobs, add a sudo before each command
__________________
AMLJ**0-1-47
 
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#5
if he messed with that file on a maemo device he could have serious problems and be unable to EVER log in as root again. but hey, maybe this question has nothing to do with n900, how should we know?


A note on sudo
This information is aimed at people who come to maemo from other linux distributions (Debian for example) that may have used sudo in a different way.

In fremantle (Maemo 5) sudo is a key part of the system. It is used by system processes that are started as the user to provide access (as root) when needed.

Examples of this are: Media Tracker. The firmware version on the 'Settings' > 'About Product' page.

Both of these will malfunction if there are problems with sudo.

Sudo relies on /etc/sudoers, a configuration file that details who can run what commands. /etc/sudoers is traditionally modified by using the 'visudo' command. DO NOT DO THIS ON MAEMO. In maemo sudoers is regenerated periodically from config snippets in /etc/sudoers.d/, using visudo can cause the slow death of your system as your edit gets pushed further down /etc/sudoers.

For those who don't know, /etc/sudoers works on a last match principle, so if your edit conflicts with entries above it, it will break those entries.

The 'correct' way to do this would be to put your entry in a file in /etc/sudoers.d/. I leave the detail of this up the experience of the end-user. Just be advised that using visudo runs the risk of subtly breaking your system.

Retrieved from "http://wiki.maemo.org/Root_access"
now he didn't tell us where in the file he put that, and I don't know how that works anyways, but visudo just runs the editor to edit the file which is what he's gone and done...

Last edited by Creamy Goodness; 2011-02-08 at 18:14.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:30.