[Samba] File permissions
nirs at exanet.com
Wed Aug 21 19:36:00 GMT 2002
Just make sure it's the same file system, otherwise things might get
funny. mv in the same filesystem simply changes the directory entries.
mv between filesystems does a cp&rm combo. It'll change the inode, and
might screw up the filehandle.
Nir Soffer -=- Software Engineer, Exanet Inc. -=-
"Father, why are all the children weeping? / They are merely crying son
O, are they merely crying, father? / Yes, true weeping is yet to come"
-- Nick Cave and the Bad Seeds, The Weeping Song
> -----Original Message-----
> From: Joel Hammer [mailto:Joel at HammersHome.com]
> Sent: Tuesday, August 20, 2002 6:57 PM
> To: David Brodbeck; samba at lists.samba.org
> Subject: Re: [Samba] File permissions
> Well, it sounds like mv might be the solution to this
> problem. As soon as the file
> shows up in the share, mv it to a directory that the users
> can't get to. I
> tried mv'ing a file, and it maintained the same permissions
> as the original
> user, which means, hopefully, that the user can keep saving
> even if the file
> is not done when it is mv'ed and it is in a different directory.
> On Tue, Aug 20, 2002 at 12:41:44PM -0400, David Brodbeck wrote:
> > Thought it might. I learned this when I tried to rotate
> some logfiles by
> > mv'ing them. The old file just keeps growing under the new
> name, until the
> > server's forced to close the file handle. ;)
> > > -----Original Message-----
> > > From: Joel Hammer [mailto:Joel at HammersHome.com]
> > > Sent: Tuesday, August 20, 2002 12:41 PM
> > > To: David Brodbeck; samba at lists.samba.org
> > > Subject: Re: [Samba] File permissions
> > >
> > >
> > > I tried mv, and like you predicted, that works fine. The
> > > piped output keeps
> > > flowing right to that file.
> > > Now, I wonder about permissions....
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba