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 file permission denied

 
Fauziah Mahdan
Super Advisor

ftp file permission denied

HI all,
I have given rw permision to group but the owner of this file beongs to ora10g.
Why the other user from same group can't overwrite, or delete the file?
Esp using ftp.
13 REPLIES

Re: ftp file permission denied

Please provide the following output:
ll file
id # of user trying to write

Note: To remove the file, you must have write permission to the directory.
Sajjad Sahir
Honored Contributor

Re: ftp file permission denied

Dear Fouzia Mahdan

owner should be oralce
group should be dba
file permission should be 660


thanks and regards

Sajjad Sahri
Fauziah Mahdan
Super Advisor

Re: ftp file permission denied

the user id

uid=111(shakirah) gid=106(oinstall)

$ id
uid=108(ora10g) gid=106(oinstall) groups=107(dba),108(oper)



the file permission

-rw-rw-r-- 1 ora10g oinstall 72 Apr 2 16:14 arif.java


When try to oeverwrite the file using shakirah id via ftp error as upload of file arif.java was successfull, but error occured while setting the permission and/or timestamp. If the problem persists, turn on 'ignore permission errors' option.

When try to delete the file using shakirah's id
error deleting file arif.java.

pls advice
T G Manikandan
Honored Contributor

Re: ftp file permission denied

can you post the permissions of the directory in which this file resides.
Fauziah Mahdan
Super Advisor

Re: ftp file permission denied

drwxr-xr-x 2 ora10g oinstall 10240 Apr 2 15:55 _en__en
Sajjad Sahir
Honored Contributor

Re: ftp file permission denied

Dear Fouzia

what about the /etc/ftpd/ftpaccess file.
I beleive these u didn't configure this file
can u check it please

Sajjad
Fauziah Mahdan
Super Advisor

Re: ftp file permission denied

No such file name under that directory
cd etc
# cd ftpd
# ll
total 0
dr-xr-xr-x 2 bin bin 96 Sep 9 2004 ftp-exec
dr-xr--r-- 2 bin bin 96 Sep 9 2004 pids
# pwd
Sajjad Sahir
Honored Contributor

Re: ftp file permission denied

what i believe it is a permission problem on the directory level you
are writing to. If you are writing to a directorythat belongs to another user group, I would go in and add root as a
secondary group member by the following selections within sam
account -- user (whoever truly owns that directory) --- modify
secondary group member to add root

thanks and regards

Sajjad Sahir
T G Manikandan
Honored Contributor

Re: ftp file permission denied

can you please provide 775 for the directory.

which is rwxrwxr-x
Fauziah Mahdan
Super Advisor

Re: ftp file permission denied

I paste user id as below in the 2nd posting
uid=111(shakirah) gid=106(oinstall)

$ id
uid=108(ora10g) gid=106(oinstall) groups=107(dba),108(oper)

Then I realise the owner which is ora10g is in group dba but the user shakirah not in that group.
So I can add the user in group dba for HPUX 11.23 but mot at HPUX 11.31 (this is another issue and I have read the info at this link


http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01324959-4
but yet to install the patch.

For hpux 11.23 which I manage to add user in the same group.
I get warning issue when performing replacement via ftp.
the uplaod is successfull but error occured while setting permission and/or timestamp. if the prob persists turn on ignore 'permission error' option.

Re: ftp file permission denied

>but error occurred while setting the permission and/or timestamp.

Since you don't own the file, you can't change either of them. If you have write permission to the directory, you can remove the file and create another.

>Sajjad: I would go in and add root as a
secondary group member

Why are we talking about root? The user was shakirah.
Fauziah Mahdan
Super Advisor

Re: ftp file permission denied

:-) smiling for commented for sajjad
'Why are we talking about root? The user was shakirah.'
I am confuse first and that is why need to explain further.
Anyway thanks all for the feedback...

BTW I have added Write permission to the directory. Again the overwrite get same error

Re: ftp file permission denied

>I have added Write permission to the directory. Again the overwrite get same error

You may have to remove the file first (using delete) before doing the put.