# 先获得用户的uid [ff@test-4 ~]$ id ff uid=1091(ff) gid=1091(ff) groups=1091(ff) [ff@test-4 ~]$ sudo mount -t cifs -o rw,uid=1091,gid=1091,username=fairyfar,password=123 //192.168.0.200/shared /mnt/ff/shared # 可以看到,目录用户所有者是ff [ff@test-4 ~]$ ll /mnt/ff/ drwxr-xr-x 2 ff ff 0 Nov 12 14:30 shared