Posted By

hamsterbacke82 on 03/07/11


Tagged

Bash linux FTP


Versions (?)

Create User with directory


 / Published in: Bash
 

  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  

You need to login to post a comment.