2017年4月10日 星期一

CIFS: mounted for specified user

REF: http://unix.stackexchange.com/questions/68079/mount-cifs-network-drive-write-permissions-and-chown

Specify the user and group ID that the mounted network share should used, this would allow that particular user and potentially group to write to the share. Add the following options to your mount: uid=,gid= and replace  and  respectively by your own user and default group.
sudo mount -t cifs -o username=${USER},password=${PASSWORD},uid=,gid= //server-address/folder /mount/path/on/ubuntu

沒有留言:

張貼留言