Owen Davies wrote:
Thanks.  I took a look and that is exactly what I was looking for.  Of course I 
have since just reset all the permissions on all my shares but it seems that 
the proper way to swap UIDs for users with permissions on CIFS shares is to:

Edit /etc/passwd
Edit /var/smb/smbpasswd

And to change GIDs for groups used on CIFS shares you need to both:

Edit /etc/group
Edit /var/smb/smbgroup.db

Is there a better way to do this than manually editing each file (or db)?
I've just started reading the CIFS docs recently, so I could be wrong....

But I think the smb files were populated when you added the mappings (back when /etc/passwd and /etc/group were wrong.) I bet, if you removed the mappings, fixed the UNIX files, and recreated the mappings then the SMB files would be 'fixed'.

It may not be easier, but it probably is better in the case that there are other housekeeping things the map commands do.

  -Kyle


 I don't think there is much of this sort of integration yet so that tools 
update things in a consistent way on both the UNIX side and the CIFS side.

Thanks,
Owen Davies

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to