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 > Software - Troubleshooting and Discussion > Mac OS X > FTP Permissions

FTP Permissions
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Dec 10, 2001, 10:15 AM
 
We have run into a problem with our new FTP server. (OS X 10.1.1) When user x logs in and places a folder or file, the permissions on that folder/file are:
Owner: User X - read/write
Group: User X's - group read only

When logged in via AFP, the above results in the following:
Owner: User X - read/write
Group: User X's - group read/write

The problem is, that under FTP, no one in User X's group can delete the file/folder that that user has placed. Appleshare had an option that folder's created did/did not inherit the permissions of the user/enclosing folder. This would solve the above problem. Does anyone know how to work around/solve this?
     
Grizzled Veteran
Join Date: Sep 2000
Location: Netherlands
Status: Offline
Reply With Quote
Dec 10, 2001, 02:04 PM
 
Originally posted by mhughes:
<STRONG>We have run into a problem with our new FTP server. (OS X 10.1.1) When user x logs in and places a folder or file, the permissions on that folder/file are:
Owner: User X - read/write
Group: User X's - group read only

When logged in via AFP, the above results in the following:
Owner: User X - read/write
Group: User X's - group read/write

The problem is, that under FTP, no one in User X's group can delete the file/folder that that user has placed. Appleshare had an option that folder's created did/did not inherit the permissions of the user/enclosing folder. This would solve the above problem. Does anyone know how to work around/solve this?</STRONG>
Replace the standard ftpd server with a more advanced one like proftpd or something.

Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
     
mhughes  (op)
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Dec 10, 2001, 03:08 PM
 
ProFTP would be great....but I would love to run something with a little less config time....ftpd works, but it appears the umask is being set incorrectly by OS X server admin agent. I would much rather prefer to change this in apple's config file, if I could find it.
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Dec 12, 2001, 11:28 AM
 
Change the commandline for ftpd in the startup scripts to include the -u option, where you can set your global UMASK for ftpd

man ftpd

for more info
Otheriwse your users should be able to use the SITE command during their session to change their current UMASK default. Again, man ftpd will give the details.

-Cheers
     
mhughes  (op)
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Dec 12, 2001, 11:45 AM
 
Well, we figured it out. It is in the FTPaccess file in the configuration directory under the library. In the upload line of the directory, apple as specified the umask location incorrectly. They specifiy it against a directory that does not exist. By changing the directory to * and changing the user/group to * *, the new files will take the permissions of the enclosing directory. We found this on the wu-ftpd.org website.
     
   
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 08:17 PM.
All contents of these forums © 1995-2013 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2013, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2