Sponsored Content
Top Forums UNIX for Dummies Questions & Answers unable to delete file for permission problem Post 100322 by sabyasm on Sunday 26th of February 2006 02:07:50 PM
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 ?
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
delete directory(1m)													      delete directory(1m)

NAME
delete directory - Deletes a directory SYNOPSIS
cdscp delete directory directory-name ARGUMENTS
The full name of the directory. DESCRIPTION
The delete directory command deletes a directory. The directory cannot contain any object entries, soft links, or child pointers. The master replica must be the only remaining replica in the cell. Use the delete replica command if you need to remove read-only replicas. Privilege Required You must have delete permission to the directory and write permission to the clearinghouse that stores the master replica of the directory. The server principal needs administer permission to the parent directory or delete permission to the child pointer that points to the directory you intend to delete. NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE. EXAMPLE
The following command deletes the directory /.:/eng from the namespace: cdscp> delete directory /.:/eng RELATED INFORMATION
Commands: create directory(1m), delete replica(1m), list directory(1m), set directory(1m), set directory to skulk(1m), show directory(1m) delete directory(1m)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy