CIFS用特定用户和权限挂载远程目录
#Mount Examples
#CIFS Mount with specific UID&GID
sudo mount -t cifs -o username=xtp,password=xtp,uid=33,gid=33,rw,dir_mode=0775,forceuid,forcegid //example.com/xtp/repository /mnt/repository/
sshfs -o umask=002,uid=33,gid=33 [email protected]:/repository /mnt/repository/
#NFS Mount
mount -t nfs example.com:/volume3/xtp/repository /mnt/repository/ -vv
#/etc/fstab
//example.com/xtp/repository /ext cifs username=xtp,password=xtp,uid=33,gid=33,iocharset=utf8,file_mode=0775,dir_mode=0775 0 0
评论已关闭