Operating System - HP-UX
1831818 Members
2936 Online
110031 Solutions
New Discussion

Overwrite for user on ftp HPUX 11.0

 
SOLVED
Go to solution
Tommy Brown
Respected Contributor

Overwrite for user on ftp HPUX 11.0

I have two users that login ftp one can overwrite and one cannot. The ftpaccess file appears correct. The first user has been active several months. the second user was recently created and need to be able to overwrite files.
lines from fptaccess:

overwrite yes user1,user2
overwrite no guest,anonymous

Any suggestions???
Thanks,
Tommy
I may be slow, but I get there !
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: Overwrite for user on ftp HPUX 11.0

do they belong to the same group (/etc/group)?? what is the permissions and ownerships of the files??

live free or die
harry
Live Free or Die
Tommy Brown
Respected Contributor

Re: Overwrite for user on ftp HPUX 11.0

Same group and permissions are also identical..
I may be slow, but I get there !
harry d brown jr
Honored Contributor

Re: Overwrite for user on ftp HPUX 11.0


What about the owner of the files?

Is user2 trying to overwrite a file created by user1??

can you post the permissions of such a file?

live free or die
harry
Live Free or Die
Tommy Brown
Respected Contributor

Re: Overwrite for user on ftp HPUX 11.0

Harry
Permissions are 755 on the "root" dir, 640 on the files.
The users do not see each others files. The problem occurs when user2 connects and wishes to replace a file in his dir with another of the same name. User2 owns the file he is trying to replace. When we had this problem before, we added user1 to the overwrite yes line. that was successful. Adding user2 to to the same line has not been successful.
Thanks,
Tommy
I may be slow, but I get there !
Mark Fenton
Esteemed Contributor

Re: Overwrite for user on ftp HPUX 11.0

can the file be updated on the fly, or does one have to restart inetd to have it reread such things first?

(I ask 'cause I'm ignorant)
Sanjay_6
Honored Contributor

Re: Overwrite for user on ftp HPUX 11.0

Hi Tommy,

Make this change to your ftpaccess file and try,

overwrite yes real

Hope this helps.

Regds
Tommy Brown
Respected Contributor

Re: Overwrite for user on ftp HPUX 11.0

Mark, I've tried both ways.
Sanjay, Thanks,
I havenot tried that option before, but no success.
I may be slow, but I get there !
harry d brown jr
Honored Contributor
Solution

Re: Overwrite for user on ftp HPUX 11.0

Tommy,

FTPACCESS has this format for overwrite:

overwrite yes|no typelist

Allows or disallows the ability to perform the specified function. By default, all users are allowed.

*** typelist *** is a comma-separated list of any of the keywords anonymous, guest and real.

The "TYPELIST" does not allow for user names.
---------------

You are bouncing the ftp server between changes?

Also, up all the logging so you can maybe catch something we aren't seeing:

log commands real


live free or die
harry
Live Free or Die
Tommy Brown
Respected Contributor

Re: Overwrite for user on ftp HPUX 11.0

Harry, I did do that, but I also had the line:

overwrite no guest, anonymous

evidently, I can only have one specification. This unfortunately gives all of my "real" users the overwrite ability. That may not be such a bad thing, however.
Thanks for the assistance.
Tommy
I may be slow, but I get there !
Tommy Brown
Respected Contributor

Re: Overwrite for user on ftp HPUX 11.0

Sanjay, I guess you were the one to correct my syntax, but I cannot redo points.
Thanks a lot anyway..
Tommy
I may be slow, but I get there !