Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to change the password requirements for system users. I would like to know how to (a) tighten password restrictions, and (b) loosen password restrictions (i.e. disable password complexity checks).
I know in Windows, you do this by changing the local security policy. But I have no clue how to do this on Linux.
I've seen that stuff in Yast, but Yast is distro specific, and I prefer to know how to do things in Linux without the distro-specific commands. I don't like being tied to tools that don't exist on most or all other distros.
I'll check out the man pages you have specified...
That helps (good to know), but I would like to edit password complexity requirements. My /etc/login.defs doesn't have anything about password complexity.
Is that something that can be added to this file? This is something I know nothing about (never edited login.defs before)
Are you using the PAM security module?
cat /etc/pam.d/system-auth
that file will have many of the rules for pwords.
You'll see pam cracklibs and such for pword strength etc.
chage sets how often a user has to change the pword and prevents them from changing it to soon.
sshd_config controls ssh sesions only but you can prevent root logins and set max tries and stuff like that in there. (/etc/ssh/sshd_config or it might be /usr/local/etc/sshd_config
I've played around with sshd_config, and yes, I've already restricted root logins
Concerning pam... I've fiddled with pam, but not much. In this instance, however, I haven't touched anything. It's using the default authentication that comes with SLES/openSUSE.
My passwd file in /etc/pam.d contains the following:
#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session include common-session
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.