Re: File permissions when ftp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2005-03-03 at 07:48 -0600, Jay Paulson wrote:
> >>> Try this:
> >>> # cd my-upload-directory
> >>> # chgrp www .
> >>> # chmod 2775 .
> >>>
> >>> See how that goes.
> >>>
> >>
> >> That worked!  However, what is odd is that user1 is using Dreamweaver
> >> to upload files and user2 is using Fugu to upload files.  When using
> >> Fugu it writes the file with permissions of 644.  However, if user2
> >> uses Dreamweaver to upload the file it's permissions are set to 664
> >> which is correct.
> >>
> >> Any ideas?

You have 2 different users uploading files.
The permissions on the files uploaded should not depend on the program
that creates them but rather on the umask set for that user when they
log in and upload.

It seems really weird that the same user can use fugu to upload files
with one permission (644) and dreamweaver gives different permissions
(664)

However, if your notes above are wrong and user1 is uploading with
dreamweaver (664) and user2 is uploading with fugu (644) then it likely
is the umask.

> >
> > Maybe Dreamweaver explicitly sets the permissions of the files? Which
> > FTP server are you using?
> >
> > Try using a command-line FTP client and experiment logging in as each
> > user and writing a file to the upload area. What permissions do they
> > get?
> >
> 
> I tried it several different ways and Fugu was the only one that did 
> weird things.  However, I did find that it is a bug in the Fugu program 
> itself
> 
> https://lists.ccs.neu.edu/pipermail/scponly/2004-October/000621.html
> 
> But now that I have set the group and the permissions to the directory 
> to 2775 Apache doesn't like it and I get a 403 Forbidden error and I 
> don't know why.
> 

Having the directory set to allow group writing and the sgid bit set is
VERY insecure.  Apache knows that and refuses to use insecure settings.
You should reset the directory back to the proper permissions.

> jay
> 
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux