The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
grep unix.com with google



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

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-23-2009
Registered User
 

Join Date: Nov 2008
Posts: 6
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>

  #2 (permalink)  
Old 11-24-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
 

Join Date: May 2008
Location: shortly between cows and cowboys :)
Posts: 334
Hi,

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

Kind regards
zxmaus
  #3 (permalink)  
Old 11-24-2009
Registered User
 

Join Date: Nov 2008
Posts: 6
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 (permalink)  
Old 11-24-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
 

Join Date: May 2008
Location: shortly between cows and cowboys :)
Posts: 334
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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 02:39 PM
Permission denied su_in99 UNIX for Dummies Questions & Answers 1 02-20-2009 09:14 AM
Why do I keep getting .:Permission denied? bbersani UNIX for Dummies Questions & Answers 12 12-04-2008 03:49 AM
rcp 'permission denied' Kevin Pryke UNIX for Dummies Questions & Answers 6 04-24-2002 05:20 AM
rsh and permission denied Reza Nazarian UNIX for Dummies Questions & Answers 1 10-15-2001 01:21 PM



All times are GMT -4. The time now is 09:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0