On 06/27/2011 09:40 AM, Adam Tong wrote:
Hi,
How can i recover my root password or create a new one. I coosed a complicated one and forgot it.
Thank you
Like Dominique said. Here is just a little more detail: For both grub and lilo: 1. Boot the system and select the normal boot menu from the list. Once selected, in the “Boot Options” box type “init=/bin/bash” if you are using GRUB Boot loader “linux init=/bin/bash” if you are using LILO Boot Loader 2. Once you have finished booting make sure '/' is mounted in read/write mode (e.g.): 14:42 alchemy:~> mount devtmpfs on /dev type devtmpfs (rw,relatime,size=1923096k,nr_inodes=480774,mode=755) tmpfs on /dev/shm type tmpfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) /dev/sda6 on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered) <snip> (see the '(rw,...) above after /dev/sda6 on / type ext3 ) If it is not mounted in 'rw', then you will need to remount '/' in read/write mode with: mount -o remount,rw / 3. Then just simply change the password as normal: 14:42 alchemy:~> passwd Changing password for root New Password: Reenter New Password: Password changed 4. Done -- reboot -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org