smbmount and group ownership
I had a problem with group permissions on smbmounts. I'd heard that to set the permissions needed, you simply modified the permissions on the mount point. However, as soon as the mount point was actually mounted, the permissions (Both user and group) would change to the user who actually did the mounting. Since only root can use the mount command, the mount ownership would change to user=root and group=root, so no other user could write to any of the files on the samba mount.
At the time, I had been using the following mounting syntax:
mount -t smbfs -o username=me,workgroup=NTDomain //NTServer/sharename /mnt/mountpoint
I found that didn't work right. After doing a bunch of research, I finally found that I had left out a few optional parameters that take care of this problem:
mount -t smbfs -o username=me,workgroup=NTDomain,gid=LinuxGroup,rw,dmask=770,fmask=770 //NTServer/share /mnt/mountpoint
----- explanation of command line --------
username=me - The Samba/NT user name to use to connect
workgroup=NTDomain - the NT domain name to use to connect
gid=LinuxGroup - the Linux group to own the mountpoint
rw - Mount read/write (This may not be needed, as it is the default)
dmask=770 - the chmod syntax for owner=rwx, group=rwx, other=none for directories
fmask=770 - The syntax for o=rwx,g=rwx,other=none (If you don't put this in, then it seems kind of random whether you will be able to create new files)
Hope this helps someone, it sure had me scratching my head! :)
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: http://www.law.cornell.edu/uscode/17/107.shtml
. If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.