I have a Xserve setup as an FTP Server only. I edited the System/Library/User Templates the way I wanted but it doesn't carry over the permissions. I want to run the below script.
I'm going to save it in /bin as myftpperm so it is in the root's path.
Let's say I have a user named apple. I want to be able to type myftpperm apple and every where it says <enterNewUserNameHere> it would replace it with apple.
How do you do that?
#!/bin/sh
cd /
createhomedir -u <enterNewUserNameHere>
cd /Volumes/FTP
chgrp -R myftpclients <enterNewUserNameHere>
chmod 550 <enterNewUserNameHere>
cd <enterNewUserNameHere>
chmod -R 770 FileDropOff
chmod -R 770 FilePickUp
exit
I'm going to save it in /bin as myftpperm so it is in the root's path.
Let's say I have a user named apple. I want to be able to type myftpperm apple and every where it says <enterNewUserNameHere> it would replace it with apple.
How do you do that?
#!/bin/sh
cd /
createhomedir -u <enterNewUserNameHere>
cd /Volumes/FTP
chgrp -R myftpclients <enterNewUserNameHere>
chmod 550 <enterNewUserNameHere>
cd <enterNewUserNameHere>
chmod -R 770 FileDropOff
chmod -R 770 FilePickUp
exit