Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > ftp question

 
ftp question
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Oct 6, 2003, 04:17 PM
 
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
     
ollio  (op)
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Oct 29, 2003, 09:51 AM
 
anyone?

I still have this problem , and can't find a solution.
Folder actions don't really work in 10.2.7
     
ollio  (op)
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Oct 31, 2003, 09:55 AM
 
I put in cron a job to chmod those dirs every minute.

not really what I wanted. but it works.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Nov 1, 2003, 04:14 PM
 
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 super user can make changes even if he doesn't have write access.

But you probably shouldn't be using FTP at all, and especially not as the super user. Passwords are sent as cleartext with FTP. Use SSH instead (and change all passwords of any account which has used FTP on this machine; do it TODAY/NOW/AS WE SPEAK).
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:10 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2