Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
getting back root user
Name: 123456 Date: August 27, 2008 at 09:43:53 Pacific OS: linux CPU/Ram: 256
Comment:
i have changed /etc/passwd file as follows-- foo:x:0:0:/root:/bin/bash i.e. in the first line I replced first"root" by foo and rest of the things left unchanged.
now I am not able to login either as root or as foo. Is there is solution to get root user back?
Name: Shadowlight Date: August 27, 2008 at 14:27:35 Pacific
Reply:
First, the :x: in your /etc/passwd tells you that the password for that user is stored in /etc/shadow so if you change one you need to change the other also.
Now how to get it back..
1) Boot from a live CD 2) mount the / from your system on /mount (create the directory first) 3) edit /mount/etc/passwd and put root back in place or edit /mount/etc/shadow and make root foo 4) reboot the system.
Summary: My workstation was a Mdk8.2 working fine, I just moved it to 9.0. And now I've a problem with NIS service : Non-root user can log into the system but have not rights on their own file, Example ...
Summary: I can have root mount the floppy. But for the non root users, eventhough I did add "user" in /etc/fstab, non root users keep get error "cant create lock file /etc/mtab : permission denied (use -n f...
Summary: Hi, How can you spin down a har drive as non-root user. When I type hdparm -y /dev/hdb as root my primary slave spins down, but as non-root user, I get '/dev/hdb : permission denied'. Where do have to...