LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-22-2012, 09:23 AM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Password-Less User Account


Hi Guys,


How do we create a user account (unprivileged) without needing a password to log-in?

I need to do this on Solaris 10 and CentOS. I am not meaning SSH here which can be configured to achieve this purpose.

Thanks in advance!
 
Old 10-22-2012, 09:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can formally delete a password as root "passwd -d username" but it's such a bad idea in general...
 
Old 10-23-2012, 05:54 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by acid_kewpie View Post
you can formally delete a password as root "passwd -d username" but it's such a bad idea in general...
...and therefore some PAM modules will need nullok as option too to allow it.
 
Old 10-23-2012, 10:24 AM   #4
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by acid_kewpie View Post
you can formally delete a password as root "passwd -d username" but it's such a bad idea in general...

I did that and when I logged in using the log-in id (demo, for example), I was prompted for the password and not allowed to log-in without entering one.
 
Old 10-23-2012, 10:29 AM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Depending on the PAM modules you use, you can try to add in the necessary /etc/pam.d files for the password check:
Code:
password        requisite       pam_pwcheck.so  nullok cracklib remember= no_obscure_checks 
password        required        pam_unix2.so    use_authtok nullok
 
Old 10-23-2012, 10:44 AM   #6
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by Reuti View Post
Depending on the PAM modules you use, you can try to add in the necessary /etc/pam.d files for the password check:
Code:
password        requisite       pam_pwcheck.so  nullok cracklib remember= no_obscure_checks 
password        required        pam_unix2.so    use_authtok nullok

How do I check what PAM Module is in place on my system? I am using, for example, CentOS 6.3 Linux.
 
Old 10-23-2012, 10:46 AM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Check the path I posted, and then the file with the access method like SSH you use.
 
Old 10-23-2012, 10:50 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
In addition, I wouldn't do this at all unless you know that the user will be running a restricted shell, e.g. for a kiosk of some kind. Don't give them a command-prompt . . .
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cant log in to my Linux Mint user account using my user name and password itstraining Linux - Newbie 11 04-26-2012 07:20 PM
User Account without a Password devUnix Linux - Server 9 01-05-2011 07:39 AM
maximum password age in a user account mlu Linux - Security 2 04-28-2005 06:35 AM
ftp user account password.... tosszafer Linux - Security 1 10-30-2004 06:05 PM
Forgot my user account password Gilbert Linux - Newbie 1 02-22-2004 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration