LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   password prompt ? (https://www.linuxquestions.org/questions/linux-general-1/password-prompt-50917/)

wr3ck3d 03-20-2003 08:19 PM

password prompt ?
 
How can i stop the prompt for a password when i 'su'?? I occasionally turn off the root password because its gets annoying to keep typing it when im doing alot if changing of things. On my friends system he has no root password and it doesn't ask for one when you 'su'. So its just out of curiousity how to get it not to prompt. -thanks

Crashed_Again 03-20-2003 08:23 PM

Ummm....you should seriously consider NOT doing that. I'm sure you've thought of the security risks but I suggest you think about them again and again and again and then one more time for good measure.

If you want to go ahead with that then I think you can just:

passwd root

and put nothing in there.

Texicle 03-20-2003 08:25 PM

In your /etc/suauth or /etc/sudoers or /etc/su* file, you can change your user account to NO PASS for su to root:

root:wr3ck3d:NOPASS

However, I'm not sure how wise this would be to do. It's your system, but if anyone should get your user password then they've got root, and that's not good. But, Linux is about choice, and it's your choice to do it or not. Be careful.

Hope this helps.:D

wr3ck3d 03-20-2003 08:42 PM

no, i meant why on my friends system when he installed he never entered a root password...when he su it doesn't prompt. But I had a root password and when change the root password to nothing it still prompts for a pass (although just have to hit enter). I was just wondering what is the difference?? i really dont know much about the password files in linux besides that it goes into /etc/passwd. But what is still lingering around that causes the prompt?? I would never not have a root password but if i know that i am going to be entering alot just turn it off for a little while. This question jsut came to mind and is out of curiousity. -thanks

Texicle 03-20-2003 08:51 PM

See my post above. That is why it's still asking for a password (even though there is no password).

wr3ck3d 03-20-2003 08:54 PM

ok thanks


All times are GMT -5. The time now is 08:52 AM.