On Mon, Jun 14, 2010 at 10:38 AM, Gourav Joshi <gouravjo...@gmail.com>wrote:
> 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 > > Thanks Gaurav Sir.. It worked.. -- Arpit Tolani Follow me @ www.twitter.com/arpittolani [Non-text portions of this message have been removed]