Chaitanya Krishna A wrote:
Hi,
I forgot to mention something in the last mail. After giving # chown -R <username>: / cd'd to / and then gave an ls, I saw that only the permissions of /dev and /bin were changed to the <username>. Therefore,
I again gave # chown -R root:/ and then realised that it would change the permissions of /home, etc and then I again Ctrl-C'd.
Wow, another good one. Simply tell yourself that it will be a good learning experience. (^-^) Just in case you get any other rash urges to exercise commands like that in a panic: DON'T exit a root shell when you have just done something likely to crash the system.
Both /etc and /sbin are root:root set to (user:group)
In that case you should be able to use the rescue cd to boot up, chroot to your original system and then use passwd to give root a password. PS: if you still feel adventurous and decide to experiment with files like passwd manually, you might want to make a BACKUP of it first! Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com