Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When a user "U" who is part of group "G" uploads a new file to the server with ftp , the permissions are set as U:U instead of U:G . I know the user is also part of his own group called "U" but how do I have them upload a file with the group "G". I don't see anyhthing in any FTP software. Thanks

share|improve this question
    
See: serverfault.com/q/93894/984 –  Zoredache Aug 30 '11 at 0:04
    
and: serverfault.com/questions/184548/… –  quanta Aug 30 '11 at 2:13
add comment

1 Answer

up vote 1 down vote accepted

Generally you do this when you want all files in a directory to be owned by a certain group. To make this happen set the SETGID bit on the directory chmod g+s. Then any file created in that directory will belong to the group that is associated ith the parent directory.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.