mehul wrote:
On 10/3/06, krishnakant Mane researchbase@gmail.com wrote:
hello, I got my knoppix cd install on the hard disk. so now knoppix runs almost like ubuntu does as in works without any super user parssword from my hard disk. but now I want the system to ask me for a password when I log in and for root as well when I try to su in the bash prompt. how can I enable both this things? Krishnakant.
sudo passwd <username>
sudo is not necessary as his system is not asking for password. He simply types passwd at the root prompt and enters the password twice.
Like, for root sudo passwd root It will ask you for new password twice. Similarly, you can do for all the users on the system. Once the password is set for the current user, it will use that password for sudo, as far as I know.
In order to add a user to sudo, you have to edit the /etc/sudoers file. Edit the line below '# User privilege specification' But first you must have the sudo package installed in the system.
Regards,
Rony.
___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com