Operating System - HP-UX
1751720 Members
3282 Online
108781 Solutions
New Discussion юеВ

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 2
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