| | |
Cannot reset root password
![]() |
Then how come you aren't using passwd to change the password?
I'm not really sure what you're trying to do here. If you're trying to reset the root password of a Linux system using another environment (eg. LiveCD), then you need to make sure you've not mounted the remote filesystem as readonly. Secondly, it's probably better to chroot into the system and use passwd to change it rather than messing with /etc/shadow.
I'm not really sure what you're trying to do here. If you're trying to reset the root password of a Linux system using another environment (eg. LiveCD), then you need to make sure you've not mounted the remote filesystem as readonly. Secondly, it's probably better to chroot into the system and use passwd to change it rather than messing with /etc/shadow.
Last edited by John A; Jul 3rd, 2008 at 6:17 am.
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
You should reboot your system and in Grub or Lilo load kernel with parameter init=/bin/bash. Then you have root permissions but system will be for reading only. So you write command: . It remount your system for writing and you can run script passwd and change root password:
mount -o remount,rw /
passwd root
Keep in mind that I'm not native english speaker....
•
•
Join Date: Aug 2008
Posts: 7
Reputation:
Solved Threads: 0
Hi 
it has been a while since i used unix. look in your manual. there is a number sequence that needs to be set to open the user passwords for all users, rw-rw-rw will not work, it will require a root administrator login. do not allow this setting to remain as it will open your system up to anyone savvy enough to use telnet and uucp. also for security reasons disconnect all internet and modem connections while performing this operation. since it is using the redirection to the shadow file both access files need these changes. once again do not allow access while performing these operations.
good luck.
<snipped email / fake sig>

it has been a while since i used unix. look in your manual. there is a number sequence that needs to be set to open the user passwords for all users, rw-rw-rw will not work, it will require a root administrator login. do not allow this setting to remain as it will open your system up to anyone savvy enough to use telnet and uucp. also for security reasons disconnect all internet and modem connections while performing this operation. since it is using the redirection to the shadow file both access files need these changes. once again do not allow access while performing these operations.
good luck.
<snipped email / fake sig>
Last edited by jbennet; Dec 6th, 2008 at 7:17 am. Reason: <snipped email / fake sig> - consult the rules
![]() |
Similar Threads
- Major Project (Networking Hardware Configuration)
- please help me with this (MySQL)
- phpmyadmin issue (PHP)
- Applet and i/o (Java)
- Seperating hard drives (Networking Hardware Configuration)
- MySql Labyrinth (MySQL)
- Unmetered Web space for Reseller Web Hosting from WebHostingWith.us (Web Hosting Deals)
- RedHat Network Server (*nix Hardware Configuration)
- How do I change my Password (*nix Software)
Other Threads in the *nix Software Forum
- Previous Thread: DNS
- Next Thread: changed from windows to linux...need help
| Thread Tools | Search this Thread |
Tag cloud for *nix Software
2005 apache bashscripting busybox cert codeplex debian dotnetnuke emacs forwarding free fsf gaming gnu government gpl lawsuits license linux ls mail make makefile mandriva microsoft mkisofsiso obama open opensource port postfix ps3 samba security server sflc sharing software source stallman subdirectory ubuntu unix vmware xbox






