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.
Hours:
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
cancel
Showing results for 
Search instead for 
Did you mean: 

ftp ownership/permissions

 
SOLVED
Go to solution
Mauro Livi
Valued Contributor

ftp ownership/permissions

Hi,
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.

Mauro
2 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

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:

drwxrwsrwx

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

# chmod g-s /path

Regards!

...JRF...

Mauro Livi
Valued Contributor

Re: ftp ownership/permissions

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

Many Thanks!
Mauro