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.
On Tuesday 03 October 2006 00:11, krishnakant Mane 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.
login as root. change the password using passwd. set it to something sensible. i guess it will ask u for the password.
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> 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.
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
hello rony, mehul and dinesh. I did passwd root and set the password. but still when I do su it directly enters the super user (root) mode. I want it to prompt for password. I also want the login prompt to appear when the system starts. Krishnakant.
On 10/3/06, krishnakant Mane wrote:
hello rony, mehul and dinesh. I did passwd root and set the password. but still when I do su it directly enters the super user (root) mode. I want it to prompt for password. I also want the login prompt to appear when the system starts. Krishnakant.
For the second query, open KDE control centre. Navigate to System Administration => Login Manager => Convinience. Then uncheck 'Enable Auto Login'. Well for the first part, I have tried changing root password with 'sudo passwd root', in the live cd mode, and it's worked for me.
Dear Krishnakant,
On 10/3/06, krishnakant Mane researchbase@gmail.com wrote:
hello rony, mehul and dinesh. I did passwd root and set the password. but still when I do su
Just rename the /etc/sudoer file to somethng else.
it directly enters the super user (root) mode. I want it to prompt for password. I also want the login prompt to appear when the system starts. Krishnakant.
With regards,
krishnakant Mane wrote:
hello rony, mehul and dinesh. I did passwd root and set the password. but still when I do su it directly enters the super user (root) mode. I want it to prompt for password. I also want the login prompt to appear when the system starts.
In your /etc/passwd file, see if you have an x in the second field in the first line for root user. For example..
root:x:0:0:root:/root:/bin/bash
There is an x after root colon.
Regards,
Rony.
___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html
hi rony, anurag, mehul and jtd.
On 03/10/06, Rony ronbillypop@yahoo.co.uk wrote:
In your /etc/passwd file, see if you have an x in the second field in the first line for root user. For example..
root:x:0:0:root:/root:/bin/bash
yes it is there. but still I am logged in without password prompting for root. is there any thing else I need to do? I think there was another suggestion given by Dinesh which I just can't recall. may be that will work? is there any thing I need to set right for getting a prompt for password? regards. Krishnakant.