hi viket,
methinks all users created will have a common group say portal...
thus change the group ownership to portal and give 1775 permission to the 
directory say share,
# chgrp portal share/
# chmod 1775 share/
the permission will be something like below,
drwxrwxr-t   2 root    portal    ...    share
in this case users with group portal will be able to create files and 
directories under the directory share with their ownership and with the sticky 
bit on the parent directory, no users will be allowed to play around with other 
users files and directories (given their umask is set to 022).

 
-----------
Muzaffar Ansari
+91 9224339939 
[EMAIL PROTECTED]



----- Original Message ----
From: Viket Trivedi <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 28, 2008 3:23:00 PM
Subject: Re: [LinuxVadaPav] Need to set directory permissions


HI,

Try setting GID bit on the folder where you need to give access to users.

Regards,
Viket

On Thu, Aug 28, 2008 at 10:38 AM, ShrikantPatil <shrikant_neo@ yahoo.com>wrote:

> Hello friends ,
> I have a portal in which all users need to upload files , but I am not
> able to give permissions to them to specific folder as , they all are
> created at runtime with the username.
>
> Is there any other way , by which I can already set permission to
> "public" folder which will automatically applies to new folder under it ?
>
> I can't set umask to 0000 .
>
> Thanks and regards,
> Shrikant
>
> [Non-text portions of this message have been removed]
>
> 
>

[Non-text portions of this message have been removed]

 


      

[Non-text portions of this message have been removed]

Reply via email to