Wednesday, October 17, 2012

Non-interactive command lines to create Linux user, and change password

Non-interactive command lines to create Linux user, and change his password.
1. create user and home folder etc.
2. change password.

adduser jenkins --disabled-password --gecos ""
echo "jenkins:the_new_password"|chpasswd


http://askubuntu.com/questions/94060/run-adduser-non-interactively
http://www.linuxquestions.org/questions/linux-newbie-8/non-interactive-way-to-set-a-password-825627/


2

man adduser

http://linux.die.net/man/8/adduser
CLEAR MANUAL PAGE OF ALL CMD LINE SWITCHES
http://linux.about.com/od/commands/l/blcmdl8_adduser.htm

MORE CLEAR


http://www.cyberciti.biz/faq/howto-linux-add-user-use-adduser-command/







3
View all users in linux
cat /etc/passwd

http://www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/linux-user-database.htm


Types of linux users
http://www.omnisecu.com/gnu-linux/redhat-certified-engineer-rhce/introduction-to-linux-user-administration.htm


No comments:

Post a Comment