Hi all,
I am a newbie on the list.I have a query regard= ing logging into single user mode in Linux.The root password can be changed= by logging in into single user mode in linux.But I guess there surely must= be a way to prevent this, coz if that is not the case then anyone can get into a single user mode n change the root passwd n have access to the syste= m.I want to know wot is the way out to prevent a user from logging into sin= gle user mode n change the root passwd.
Regards,
Sneh.
You can do the following and restrict the single user mode in linux:
Open file /etc/lilo.conf (if you are using the lilo boot loader, if you are using grub then go to file /etc/grub.conf)
in that file add the following lines: restricted password="type your password here"
then save the file and run the command "lilo" , also do not forget to change the permissions of the file "lilo.conf" to 700!
This makes your system semi-secure but still someone could load a kernel in a floppy and access your system...(unless he has read this mail or knows about it :D )
regards, Sandeep