SUMMARY: Directory permissions

From: rumbidzayi gadhula <>
Date: Fri Sep 19 2008 - 02:42:53 EDT
Hello managers,

Thank you very much o all who responded. I have used the suggestion from Francisco below and it worked. I will implement it soon.

--- On Sun, 9/14/08, francisco roque <> wrote:
From: francisco roque <>
Subject: Re: Directory permissions
To: "rumbidzayi gadhula" <>
Date: Sunday, September 14, 2008, 12:23 PM

Of course it is.  The writeable directory resides inside a parent 
directory.  To delete the writeable directory, you need write permissions 
in the parent directory.  If you do not have write permissions on the 
parent directory, you cannot delete the writeable directory.  Think about 
how home directories work; generally you can write to your $HOME but not 
delete it.

Here's an example of creating such a directory structure in /tmp, where 
the group in question is "yourgroup":

as root:
# cd /tmp
# mkdir -p one/two
# chmod 755 one
# chmod 775 one/two
# chgrp yourgroup twoa
# find one -ls
308878952    8 drwxr-xr-x   3 root     root          177 Sep 14 12:15 one
243307857    8 drwxrwxr-x   2 root     yourgroup     117 Sep 14 12:17 one/two

as a user in "yourgroup":
$ cd /tmp/one/two
$ touch testfile
$ ls
$ rm testfile
$ ls
$ cd ..
$ pwd
$ rm -r two
rm: Unable to remove directory two: Permission denied
$ rm -rf two/
rm: Unable to remove directory two/: Permission denied
$ rmdir two/
rmdir: directory "two/": Search or write permission needed
$ ls

The user can create/remove files in /tmp/one/two but cannot delete 
/tmp/one/two because he does not have permissions to /tmp/one.

Good luck,


On Sun, 14 Sep 2008, rumbidzayi gadhula wrote:

> Hello Managers
> This might sound incredible  but is it possible to create a directory to
> which a group of users can write and delete files  from, without being
able to
> delete the directory itself. If so , how do you achieve this on a Solaris
> box?
> Rumbi
> _______________________________________________
> sunmanagers mailing list
sunmanagers mailing list
Received on Fri Sep 19 02:45:33 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:12 EST