Advertisement
Guest User

Untitled

a guest
Feb 5th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/bin/bash
  2. adduser $i
  3. usermod -g sftponly $i
  4. usermod -s /bin/false $i
  5. chown root:root /home/$i
  6. mkdir /home/$i/public_html
  7. chown $i:admins /home/$i/public_html
  8. chmod 755 /home/$i/public_html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement