unable to delete file for permission problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unable to delete file for permission problem
# 1  
Old 02-26-2006
Java unable to delete file for permission problem

Hi,

We are facing problem to delete some logfiles. Explaing with example for clear understanding :

we have 2 accounts : prdpqrs (application account) & prodxyz (admin account - not root). Both of them are in same group called 'release'

While prodxyz is trying to remove a file owned by prdpqrs with permission 666 it's failing with the following error :

/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log/sos/discard> ls -ltr
total 0
-rw-rw-rw-+ 1 prdpqrs release 0 Feb 26 13:13 xx
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log/sos/discard> rm xx
xx: 666+ mode ? (y/n) y
rm: xx not removed. Permission denied
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log/sos/discard> cd ..
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log/sos>ls -l
drwxrwxrwx+ 2 prdpqrs release 96 Feb 26 18:36 discard
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log/sos>cd ..
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log>ls -l
drwxrwxrwx+ 8 prodxyz release 8192 Feb 17 23:04 sos
/abc_serial/xyz/data/abc/admin/abc_rts_loaders/log>cd ..
/abc_serial/xyz/data/abc/admin/abc_rts_loaders> ls -l
total 256
drwxrws--- 32 prodxyz release 65536 Feb 20 07:33 error
drwxrwsrwx+ 39 prodxyz release 65536 Feb 20 07:42 log
drwxrws--- 2 prodxyz release 96 Aug 22 2003 reports
drwxrws--- 2 prodxyz release 96 Aug 22 2003 summary
/abc_serial/xyz/data/abc/admin/abc_rts_loaders>ls -l
drwxr-s---+ 6 prodxyz release 96 Aug 22 2003 abc_rts_loaders



Could you please advise how to delete those files owned by prdpqrs ?
# 2  
Old 02-26-2006
It looks like you have ACL rules applied to those files and directories. Depending what system you are running you need to do a getacl or getfacl on the file to view the effective permissions.
# 3  
Old 02-26-2006
I am using HP-UX
# 4  
Old 02-26-2006
any help guys ? Smilie
# 5  
Old 02-26-2006
Please read our rules.

You'll notice that bumping-up posts is not permitted. Anyway look at the manual pages for getacl setacl lsacl chacl, etc

Thanks
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tried many options but unable to delete blank lines from text file

Hi, I tried the following options but was unable to delete blank lines from file Input file = temp.hash.txt temp.hash.txt content 90 0 89.56 0 0 57575.4544 56.89 (9 Replies)
Discussion started by: uuuunnnn
9 Replies

2. UNIX for Dummies Questions & Answers

Unable to copy file using SCP (Input/output & Permission denied error)

Hi, I am facing issue while using scp. Source & target machines are Linux & HP-UX respectively. On target machine, if I fire the following command, I get error: Now if I try scp on another file, which is on the same source machine, it works fine. All directories and subdirectories... (2 Replies)
Discussion started by: Technext
2 Replies

3. SuSE

Cannot delete no permission file

I am trying to delete a folder, but unable to do so. tried my level best to delete. Here I am giving all the steps I have tried out - 1. Output of ls -la ls: cannot access -loop0: Permission denied ls: cannot access -e0.7: Permission denied total 324 d????????? ? ? ? ? ? -e0.7 d????????? ?... (4 Replies)
Discussion started by: sudip.majumder
4 Replies

4. Shell Programming and Scripting

Unable to overwrite but can delete file

I'm debugging a ksh script written by someone else that does the following: It runs a command and redirects stdout to a file called dberror that already exists using ">". This command fails with the following error: The file access permissions do not allow the specified action. dberror:... (1 Reply)
Discussion started by: savage66
1 Replies

5. Shell Programming and Scripting

Rsync help - unable to delete the Source file

Hi All, I am facing problem deleting Source while using the rsync command. rsync --include=*`date --date="-1 day" \+\%Y\%m\%d`* --include=*`date +\%Y\%m\%d`* --exclude=* --delete-after -auvb -e ssh USER@SERVER:SOURCE DESTINATION However the sync happens but not the deletion of the source... (1 Reply)
Discussion started by: amitkhiare
1 Replies

6. UNIX for Advanced & Expert Users

Unable to delete an open file

I am working on a unix server. I killed all the processes with my id on the machine. After that I tried to delete a file, I got an error:- file not removed.Text File busy. Deletion of directory prompted:- Directory not empty. Can anyone help me regarding this...??? Thanks, Vikas (11 Replies)
Discussion started by: vikasrout
11 Replies

7. Windows & DOS: Issues & Discussions

Unable to delete a file through SAMBA

We have AIX box with a share. We have a Windows 2000 server with a mapped drive to this share. We were able to create and delete files inside the mapped drive. I removed the map. Changed it to a test share. Removed that map. Added it back to teh original share. However, now we can... (3 Replies)
Discussion started by: mcubitt
3 Replies

8. UNIX for Dummies Questions & Answers

file permission problem

Hello I have situation where with my user id (group x) I am able to view a file. However if su to another user (different group) I am not able to view. I get permission denied. The file has complete wide open permissions -rwxrwxrwx and I can also cd from root to the directory in which the file... (3 Replies)
Discussion started by: akumargolf2000
3 Replies

9. Solaris

file permission problem

Hi Expert, Could you tell me what is the meaning of " + " as shown below: drwxr-xrwx+ /opt Thanks. (2 Replies)
Discussion started by: skully
2 Replies

10. UNIX for Dummies Questions & Answers

unable to delete a file

Hi .. I am trying to deleta a file but i cant do the error i get is rm: hs_pdref_custom_dict_PG1_out_76_out non-existent but when i do ls it is listing the in the directory ... please find the filed below.... -rw-r----- 1 tsta107 users 118011030 Dec 1 04:07... (13 Replies)
Discussion started by: arunkumar_mca
13 Replies
Login or Register to Ask a Question