Re: File permissions when ftp

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

 



On Wed, 2005-03-02 at 14:46 -0600, Jay Paulson wrote:
> Hello everyone!
> 
> I've set up a group called 'www' on my machine.  There are two users in 
> that group 'user1' and 'user2'.  When I connect to my FC3 box via ftp 
> as 'user1' and then upload a file to the web directory the owner and 
> group of that file are user1.user1.  Since this is the case user2 is 
> able to download the file and make changes to it locally.  However, 
> user2 is unable to upload the file because the file owner and group on 
> the server is user1.user1.
> 
> My question is how do I make it so that when user1 and user2 connect to 
> the server and upload files they are grouped under the 'www' group and 
> not under each username group?  I created the group www with the 
> /usr/sbin/groupadd www and then added each user to the the www group 
> using the /usr/bin/gpasswd -a username www.
> 
> Any ideas on how I can get this to work correctly?

Try this:
# cd my-upload-directory
# chgrp www .
# chmod 2775 .

See how that goes.

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


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

  Powered by Linux