Permission denied when rm or chmod | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Permission denied when rm or chmod

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-23-2009
kang kang is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 22 April 2010, 12:53 AM EDT
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Permission denied when rm or chmod

I got "Permission denied" error message when I rm or chmod a file.
I'm the owner of the file "lice_20091123.tar".
How can I solve this matter?

lice@appl:/midasapp/lice> whoami
lice
lice@appl:/midasapp/lice> who am i
guest pts/12 Nov 23 19:09 (ooo.ooo.ooo.oo)
lice@appl:/midasapp/lice> id lice
uid=204(lice) gid=1(staff)

lice@appl:/midasapp/lice> ls -al
drwxrwxr-x 12 lice staff 4096 Nov 23 19:10 .
drwxrwxr-x 17 was staff 45056 Oct 19 17:27 ..
-rw-r--r-- 1 lice staff 175339520 Nov 23 19:10 lice_20091123.tar

lice@appl:/midasapp/lice> rm lice_20091123.tar
rm: lice_20091123.tar not removed.
Permission denied
lice@appl:/midasapp/lice>

lice@appl:/midasapp/lice> chmod 755 lice_20091123.tar
chmod: lice_20091123.tar: Permission denied
lice@appl:/midasapp/lice>

Sponsored Links
    #2  
Old 11-23-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 7 September 2014, 5:24 AM EDT
Location: in a putty session :)
Posts: 811
Thanks: 19
Thanked 70 Times in 62 Posts
Hi,

you need write permissions to the directory to remove a file or change permissions.

Kind regards
zxmaus
Sponsored Links
    #3  
Old 11-23-2009
kang kang is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 22 April 2010, 12:53 AM EDT
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I have W permission alread.

see above
lice@appl:/midasapp/lice> ls -al
drwxrwxr-x 12 lice staff 4096 Nov 23 19:10 .
drwxrwxr-x 17 was staff 45056 Oct 19 17:27 ..
    #4  
Old 11-24-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 7 September 2014, 5:24 AM EDT
Location: in a putty session :)
Posts: 811
Thanks: 19
Thanked 70 Times in 62 Posts
oops apologies its early for me - of course you're right

maybe extended attributes set (check with ls -U) or problems with your userid ... I have seen what you're experiencing when copying a file from a box with the same user having another userid ... or when the directory was exported. If you're running AIX 6.1 with RBAC maybe this is preventing you from doing what you want.

Kind regards
zxmaus
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/dev/fb: Permission denied sreyes27 UNIX for Advanced & Expert Users 1 05-21-2009 01:39 PM
Permission denied su_in99 UNIX for Dummies Questions & Answers 1 02-20-2009 08:14 AM
Why do I keep getting .:Permission denied? bbersani UNIX for Dummies Questions & Answers 12 12-04-2008 02:49 AM
rcp 'permission denied' Kevin Pryke UNIX for Dummies Questions & Answers 6 04-24-2002 04:20 AM
rsh and permission denied Reza Nazarian UNIX for Dummies Questions & Answers 1 10-15-2001 12:21 PM



All times are GMT -4. The time now is 12:00 PM.