On Thu, Jun 10, 2010 at 11:19 AM, Arpit Tolani <arpittol...@gmail.com>wrote:

>
>
> I have a NFS Server which is mounted in network with no_root_squash option
> &
> linux users use their root users from their machines to work on shared
> directories. That folder is also shared using samba in which a user one
> user
> <developer> is used from multiple machines.
> when a user create a new file using NFS it is owned by root, How can i set
> something so that every machine in that folder is owned by developer and
> group is apache.
>
> Thanking you.
>
> Regards
> --
> Arpit Tolani
> Follow me @ www.twitter.com/arpittolani
>
> [Non-text portions of this message have been removed]
>
>  
>


Hi Arpit,

If you have a user with name "developer" in your linux box, then you just
need to add anonuid=developer uid and anongid=developer gid in /etc/exports

for example ;
in /etc/exports

/data * (rsync,anonuid=501,anongid=501)
At the remote machine where you are mounting this through NFS make the
directory owner and group to developer. Then mount it now try to create any
file and check it should be created with developer owner.


Have a nice time,
Gourav Joshi
Visit me at www.allaboutlinux.info


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



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/linuxvadapav/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/linuxvadapav/join
    (Yahoo! ID required)

<*> To change settings via email:
    linuxvadapav-dig...@yahoogroups.com 
    linuxvadapav-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    linuxvadapav-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to