Create FTP users' steps
This is my strange way to create FTP users at Unix server:
- commend: "useradd", and then ..... create the first user in first.
- makeup a PHP page to run users' data, and then the users's data should be output like (1*)
- commend: "vipw", and then (1*) copy&past. Save the changes.
- write a bash shell to create folder and relative permission (2*)
- make sure of apache virtual host's setting
- restart apache, and enjoy the success.
- username:password_encoded:UID:GID::0:0:userdata:path:shell
- make a for-loop; add a serial of commends follow(if you need '-R' )
- copy first_user's folder next_user's folder
- chown -R somebody folder/path
- chgrp -R somegroup folder/path
- chown -R somebody.somegroup folder/path
Comments
Post a Comment