Monday, March 7, 2011

User rights on smb mount

After mounting a smb share as root,
the normal user has only reading rights on the target directory.

Problem fixed wiht the following way of mounting:

mount -t smbfs -o  username=user,password="password",uid=1000,gid=1000,file_mode=0666,dir_mode=0770  //serverip/directory/share /targetdirectory

More information here: http://wiki.ubuntuusers.de/Samba_Client_cifs#Besitz-und-Zugriffsrechte