Create User with directory


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /usr/sbin/useradd -d /your_domain/some/location -s /bin/false USER_NAME
  2. /usr/sbin/usermod -G psacln USER_NAME
  3. chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location
  4. chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location
  5. chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs
  6. passwd USER_NAME

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.