Hi
Short:
How to change permissions on every file uploaded through ftp by a specific user or group. (using build-in FTP server of OS X Server 10.2.7.)
Long:
I have for example 3 folders (user1 user2 user3) all owner of their folder, like this
drwxrwxr-x
user1
userGroup
So userx are all member of userGroup.
I am using the build-in FTP server of OS X Server 10.2.7.
I can make it so that when user1 logs in through ftp that he can only see the user1 folder and not more.
I did it this way since I need a superuser (also member of userGroup) that can delete files in all the userx folders(using ftp).
Now my problem is , when a user uploads a file using ftp it gets uploaded as -rw-r--r-- while I want it to be -rw-rw-r- so the super user (which I give ftp access to the parent folder of all the userx folders) can delete those files using ftp.
The problem is , I don't know where I can find the config file of the build in ftp-server to allow changing permissions when writing file to HD.
Installing proFTPd I don't really want to do. After reading about it I thought it doesn't look so easy to install
So I thought maybe Folder Actions.
but then again, if a user creates a new folder in his home folder , will the folder action get triggered? is it recursive?
This for example:
on adding folder items
do shell script "cd /Library/FtpServer/FTProot/myusersclub/; chmod -R 664 user1"
end adding folder items to
thx for help
ollio