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
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
Post a Comment