[Samba] ownership of smbfs mounts

Hidong Kim hkim at decode.com
Thu Dec 19 02:22:01 GMT 2002


Thanks!

Adding the uid and gid fixed it.






M. D. Chappell wrote:
> On Wed, 2002-12-18 at 21:04, Hidong Kim wrote:
> 
>>If I put the mount statement into 
>>/etc/fstab as
>>
>>//windows1/public /home/windows1 smbfs username=me,password=pass 0 0
>>
>>
>>and then do 'mount -a' as root, the ownership of /home/windows1 changes 
>>to root:root.  How can I put the mount command into /etc/fstab, and 
>>maintain me:users ownership of the mount point?  Thanks,
> 
> 
> Try 
> //windows1/public /home/windows1 smbfs
> username=me,password=pass,uid=uid,gid=gid 0 0
> 
> by uid & gid I mean the numbers not the names.
> 
> 
> Mark Chappell
> 






More information about the samba mailing list