LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-20-2003, 08:19 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
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
 
Old 03-20-2003, 08:23 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 03-20-2003, 08:25 PM   #3
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
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.
 
Old 03-20-2003, 08:42 PM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
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
 
Old 03-20-2003, 08:51 PM   #5
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
See my post above. That is why it's still asking for a password (even though there is no password).
 
Old 03-20-2003, 08:54 PM   #6
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
ok thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does not prompt for password ssharma_02 Linux - Security 6 06-02-2005 01:51 AM
Why prompt for changing password? gogo Linux - General 1 03-10-2005 09:47 AM
samba - password prompt jude7homas Linux - Networking 1 11-23-2004 03:40 PM
No Password Prompt hockeydude Linux - General 3 04-18-2001 04:29 AM
no password prompt stroh78 Linux - General 3 01-02-2001 09:22 AM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration