On 05 Mar 16:14, Mark Rogers wrote:
On 05/03/10 15:11, Brett Parker wrote:
OK - you don't want the uid/gid options, they will mess up the permissions to start with. Are the uid/gids on the fileserver the same as on the box that you're connecting with? Becuase otherwise you need to do some interesting mappings, which might be tricky.
Oh, and re-enable the unix cifs extensions.
OK, so now I have (in /etc/fstab): //10.0.0.14/projects /smb/projects cifs credentials=/smb/.credentials,dir_mode=0775 0 0
After umount/mount the files now appear (from my desktop) to have ownership of uid 500/501/etc and gid of 60003, which tally with the user and group names on the fileserver.
However I now only have read access to the shared directories and files from my desktop.
You've now hit on the fun bit of network filesystems, which means that the uids and gids need to match across the clients... I assume that the windows boxes are tied in via ldap/active directory type logins?
Either: a) Work out a way of doing uid->uid mapping on your client (can't see a way of doing this with the cifs module, but know that nfs's user based daemon allows it) b) Go round and map all the right users with uids on your client to match the fileserver, this would be the usual method, and a royal pain in the arse.
Apparently some of the issues can be got round using winbind, but I've not tried this, and haven't got time (at the moment) to look in to it (hey - it's Friday - it's time to meet people in the pub!), but might get a chance to look tomorrow.
Thanks,