Hello friends,
Thanks for your responses .
    But my problem remains as there.
    I want New directory's permission should be automatically set to 777.
    These directory's are created at runtime and cannot be defined. 
    Is it possible to set permission to such directory's ? If yes , please help.

Thanks and regards,
Shrikant


--- On Fri, 8/29/08, Viket Trivedi <[EMAIL PROTECTED]> wrote:
From: Viket Trivedi <[EMAIL PROTECTED]>
Subject: Re: [LinuxVadaPav] Need to set directory permissions
To: [email protected]
Date: Friday, August 29, 2008, 9:39 AM










    
            Hi,



If you create a group as you mentioned portal and add all the users in that

group and further set GID bit on the directory,

any files created in that directory will have a default group permissions.

which will allow any user of that group to easily play around with files or

subdirectories.



Hope that clears the confusion.

Best is read document on what GID does and try out the solution. which will

enable you the problems.

would be glad to help you further if you try the solution and mention what

problems you face further.



regards,

viket



On Thu, Aug 28, 2008 at 5:57 PM, Muzaffar Ansari

<ansarimuzaffar@ yahoo.com>wrote:



>   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

> ansarimuzaffar@ yahoo.com <ansarimuzaffar% 40yahoo.com>

>

> ----- Original Message ----

> From: Viket Trivedi <viket.trivedi@ gmail.com <viket.trivedi% 40gmail.com> >

> To: linuxvadapav@ yahoogroups. com <linuxvadapav% 40yahoogroups. com>

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

>

>  

>



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




      

    
    
        
         
        
        








        


        
        


      

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

Reply via email to