David Fitch was once rumoured to have said: > On Mon, Mar 11, 2002 at 09:32:51PM +1100, Jeff Waugh wrote: > > <quote who="David Fitch"> > > > I have a directory shared/exported by samba and mounted on another (linux) > > > machine. The problem is when mounted on the second machine all the files > > > and dirs in there are owned by root:root and rwxr-xr-x. This is despite > > > me mounting it by specifying a username and entering my passwd. This > > > means of course I can't write to anything under there unless I'm root. An > > > M$ machine can write to it ok. So what can I set in the smb.conf file to > > > fix it? (it's not apparent to me from scanning the doco in > > > /usr/doc/samba-doc.) > > > > You want to add the uid and gid parameters to your mount command on the > > client machine. > > ta that works! it makes everything under there that uid/gid though, which > is better than root, but not what they really are. So does that mean to > preserve the real ownerships of files/dirs I need one of the distributed > username schemes like nis?
No, you need to use a protocol that can deal with the concept of unix (numerical) user IDs. NFS is still generally the only thing that actually works in this category. I've heard allegations that SFS (Secure Filesystem?) also works. We use a mix of AFS (Andrew Filesystem - see openafs.org) and NFS here, but the AFS is about to be shutdown. (AFS has a huge administrative overhead - and I have too many obscure architecture systems). Of course, you do need to have your UID/GID space unified for NFS or other systems to work, or you need to build mapping tables and use the UID/GID remapping tools. *ugh*. NIS/NFS works out much easier in the long run. C. -- --==============================================-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==============================================-- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
