Delete Permission on Directory


 
Thread Tools Search this Thread
Operating Systems Solaris Delete Permission on Directory
# 1  
Old 04-08-2010
Delete Permission on Directory

Hi,
I have a directory /u01/source.

Following are current permission on directory source.

Code:
oracle@TEST # ls -l source

drwxrwxrwx 2 user1  userbi 31232 Apr 8 13:33 EG1
drwxrwxrwx 2 user1 userbi 1024 Apr 8 05:45  E2
drwxrwxrwx 2 user1 userbi 57344 Mar 15 10:22 h5

There is another user 'userbi'. When I try to delete files in directory source with user userbi, I get permission denied. How could I assign 'delete file' privileges to user userbi in source directory?

regards

Last edited by pludi; 04-08-2010 at 10:11 AM.. Reason: code tags, please...
# 2  
Old 04-08-2010
userbi is a group. not an uid.
either login as root and delete or login as user1 and delete.
# 3  
Old 04-08-2010
Yes, userbi is the group and the userbi user is member of this group userbi. My question is that how can I assign delete privileges over the source directory to user userbi?

regards
# 4  
Old 04-08-2010
Hi,

Check that the files in the directory have "group" write permission. So in the target directory and as the owner of the files or as root run the following command.

Code:
chmod g+w *

Also ensure that "userbi" has permission to make changes under /u01/source

Regards

Dave
# 5  
Old 04-09-2010
Quote:
Originally Posted by fahdmirza
Yes, userbi is the group and the userbi user is member of this group userbi. My question is that how can I assign delete privileges over the source directory to user userbi?

regards


You are not clear...
Pleas post the out put of logins command.

In your above example its clear that "userbi" is a group not user.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to set owner and permission for files/directory in directory in this case?

Hi. My example: I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that chown -R log_adm /log/* chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies

2. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

3. Shell Programming and Scripting

Is rsync --delete on some files without write permission possible?

Hello all, I have a problem with rsync command. From a backup server, I use a command like the one below: rsync -av --delete user@host:/home/user/ /home/backup_user/daily_rotating_backup/ In some folders of the user there are some files on which he has removed his write permission on... (3 Replies)
Discussion started by: freddie50
3 Replies

4. UNIX for Dummies Questions & Answers

Change permission to a directory

Hi, How do i change the permission to read/write to a windows directory? (1 Reply)
Discussion started by: lg123
1 Replies

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

6. UNIX for Dummies Questions & Answers

Directory permission

hi i have a directory called dbms and group dba.... My question is how do i set full permissions i.e read/write/execute for all user(in dba group) for the directory dbms. If i use the following cmd chmod g+rwx dbms here in above cmd ..which group it denotes..how AIX will know (3 Replies)
Discussion started by: udtyuvaraj
3 Replies

7. Solaris

reg directory permission

One small doubt. can anyone explain me the difference between directory read and execute permission. (2 Replies)
Discussion started by: rogerben
2 Replies

8. Post Here to Contact Site Administrators and Moderators

shouldnt we also have the permission to delete our threads

i think we should also have the permissions to delete our own thread (3 Replies)
Discussion started by: tarunicon
3 Replies

9. UNIX for Dummies Questions & Answers

Find who has permission to delete

All, I am running a script , which has permision as below -r-xr-x--- 1 pmgr ffw 11660 Sep 3 2003 ccln and tring to delete the file in the directory inter (sys212:pct:/>) ll | grep ^d dr-xr-xr-x 32 bin bin 8192 Dec 24 03:24 etc drwxr-xr-x 32... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

10. UNIX for Dummies Questions & Answers

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... (4 Replies)
Discussion started by: sabyasm
4 Replies
Login or Register to Ask a Question