LINUX How to using useradd command

1. Add User without login
Example add user tony can not login
useradd -s /usr/sbin/nologin tony
2. Add user with Home directory
Example add user feel with directory: /var/www/html/feel
useradd -d /var/www/html/feel feel
3. Disable shell login
Example disable user tom login
chsh -s /sbin/nologin tom

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring