HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Showing results for 
Search instead for 
Did you mean: 

ftp ownership/permissions

Go to solution
Mauro Livi
Valued Contributor

ftp ownership/permissions

When we ftp to Unix, we're seeing that the transferred file is owned by the user doing the ftp (which is good). However, the group ownership remains that which owns the directory. For example, If I transfer a file to a directory where ownership is root:cobol, the file that I ftp will have an ownership of mauro:cobol.
What I would really like is for the group ownership to retain the user's primary group (i.e. mauro:users in my case). Make sense?
Perhaps I'm missing something, but I don't see where I can control this in /etc/inetd.conf.
Any suggestions?

Thanks in advance for your help.

James R. Ferguson
Acclaimed Contributor

Re: ftp ownership/permissions

Hi Mauro:

It would appear that the 'setgid' bit is set on the directory. If you receiving directory's permisssions look like:


...note the "s",,, then change the permissions with:

# chmod g-s /path



Mauro Livi
Valued Contributor

Re: ftp ownership/permissions

You're a genius!!!! That was EXACTLY it. Once I did the chmod it worked perfectly. I never thought of that one.

Many Thanks!