Fwd: [Samba] mount read/write ntfs via samba

mashtin.bakir at gmail.com mashtin.bakir at gmail.com
Thu Jan 31 14:14:16 GMT 2008


---------- Forwarded message ----------
From: Michael Heydon <michaelh at jaswin.com.au>
Date: Jan 28, 2008 7:42 PM
Subject: Re: [Samba] mount read/write ntfs via samba
To: mashtin.bakir at gmail.com
Cc: samba at lists.samba.org


 Michael Heydon wrote:
> mashtin.bakir at gmail.com 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 *
> michaelh at jaswin.com.au <mailto:michaelh at jaswin.com.au>
>
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 *
michaelh at jaswin.com.au <mailto:michaelh at jaswin.com.au>

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.


More information about the samba mailing list