Skip to content

A simple bash script for creating a new unix user in the CLI

License

Notifications You must be signed in to change notification settings

eguyd/add-unix-user

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Add Unix User Script for Admins

A simple bash script for creating a new unix user in the CLI

I made this for an assignment in a Linux/Unix Adminstration course I took. There are probably better ways to do this, but this is what I came up with.

If this is used in conjunction with PAM rules, you can force users to create strong passwords on your unix systems.

An example of some PAM rules that could be helpful:

Password Policy In /etc/pam.d/common-password
password    requisite    pam_cracklib.so retry=3 minlen=10 difok=3 ucredit=-1|credit=-1 dcredit=-1 ocredit=-1
password    [success=2 default=ignore]    pam_unix.so obscure use_authtok try_first_pass sha512
password    [success=1 user_unknown=ignore default=die]    pam_ldap.so use_authtok try_first_pass

About

A simple bash script for creating a new unix user in the CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%