---------- Forwarded message ---------- From: Michael Heydon <[EMAIL PROTECTED]> Date: Jan 28, 2008 7:42 PM Subject: Re: [Samba] mount read/write ntfs via samba To: [EMAIL PROTECTED] Cc: [email protected]
Michael Heydon wrote: > [EMAIL PROTECTED] wrote: >> ... Now we'd like to go the other way >> ie mount >> on the linux side our PC files. Using >> >> mount -t smbfs -username=administrator //pc-server/users /PCuser >> >> works but all files appear to be owned by root so users can't write to >> their own files. >> >> ... > > Assuming that you have matching UID's across the servers (infact even > if you don't) you should use CIFS. With CIFS you will be able to make > use of the unix extensions so files will have the same owner and > permissions on the client as they do on the server (this is where the > matching UIDs comes in). SMB is pretty much depreciated so even if you > can't or won't use the unix extensions, you should still use CIFS. > > *Michael Heydon - IT Administrator * > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Sorry, I might try that again since I just realised it is a Windows server you are talking about mounting. You should still use CIFS, but you won't get the unix extensions. I believe you have to mount a share rather than a directory inside a share (//pc-server/user as opposed to //pc-server/user/smith). I think there is a PAM module you can use to auto mount things at logon. *Michael Heydon - IT Administrator * [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Thanks. That got me going. I wrote a wrapper script on linux that takes $LOGNAME and $HOME, tests for existance of a mount point in the users homedir, creates it if it doesn't exist then runs mount.cifs with sec=lanman,rw. So now our users can mount the windows fileset themselves, have rw access to their files but not anyone elses. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
