Operating System - HP-UX
1821540 Members
2189 Online
109633 Solutions
New Discussion юеВ

ftpaccess overwrite - permission denied

 

ftpaccess overwrite - permission denied

I'm hoping someone here can help me. I'm using ftpaccess to limit a ftp account login.

The user is set up with its own login and group which is listed as the guestgroup.

In the ftpaccess file I change the ownership of the file via the upload line.

However, I do want the file to be OVERWRITTEN if it exists at the next login and I keep getting permission denied when trying to do so.

According to the notes, overwrite "yes" is the default.

Any advice?
"...it's turtles all the way down."
2 REPLIES 2
Dave La Mar
Honored Contributor

Re: ftpaccess overwrite - permission denied

Pamela -
As a standard on one of our boxes we also limit overwrite as well as other functions.
See snip of ftpaccess below.

# all the following default to "yes" for everybody
delete yes guest,anonymous # delete permission?
overwrite no real,guest,anonymous # overwrite permission?
rename yes guest,anonymous # rename permission?
chmod no real,guest,anonymous # chmod permission?
umask no anonymous # umask permission?

Hope the copy/paste is readable.

Best of luck.

Regards,
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Sridhar Bhaskarla
Honored Contributor

Re: ftpaccess overwrite - permission denied

Hi,

Looks like there is a duplicate thread. This was my response in the other thread.

I believe this is not going to work as long as the file doesn't have permissions for the user that is uploading file. This is what will happen in my view. Say you are uploading the file as "user" and you are changing ther ownership to "user1". ftpd spawned by root for the user "user" will first open the file as "user" and then will fchown to "user1" due to the upload arguments.

In your overwrite case, the initial open itself will fail as the file is already owned by 'user1'. So, unless you put user in the same group as of user1 and change the permissions to "660" in your ftpaccess or give it "666" so that anyone can overwrite, it is not going to work. This is just my thought on how it works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try