mokeyjay
V2EX  ›  问与答

VMware 虚拟机的共享文件夹如何设置 755 权限呢?

  •  
  •   mokeyjay · Jan 30, 2018 · 4766 views
    This topic created in 3122 days ago, the information mentioned may be changed or developed.

    宿主机 Windows10、虚拟机 CentOS 7。VMware Pro 14

    安装 VMTools 后,设置了一个共享文件夹,在 /mnt/hgfs/xxx ,但所属组和用户都为 root,且权限为 777,试了 chmodchown 都无法修改,给我造成了一些麻烦

    请问有没有什么办法可以修改所属用户、权限呢?已经 Google/百度,没有找到

    或者,有没有更好的能够在 Win/Linux 间实时同步 /共享文件的方案呢?
    (我希望在 Win 下撸代码、Linux 下运行)

    3 replies    2018-01-30 15:15:46 +08:00
    HughRyu
        1
    HughRyu  
       Jan 30, 2018
    非得用 VMware 映射的干嘛.那个只能 root 权限,除非改 VMware Tools.
    Win 下开共享
    Linux mount -t cifs -o username=XXX,password=YYY,dir_mode=0755,file_mode=0755 //IP.Addr/Dir /mountpoint
    ixinshang
        2
    ixinshang  
       Jan 30, 2018 via Android
    泷霆要搞大事情?
    mokeyjay
        3
    mokeyjay  
    OP
       Jan 30, 2018
    @HughRyu #1 感谢解答,我先试试别人安利的 smb
    @ixinshang #2 蜜汁现在还有人叫我龙霆 我只是部署运行环境而已
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4661 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 116ms · UTC 04:04 · PVG 12:04 · LAX 21:04 · JFK 00:04
    ♥ Do have faith in what you're doing.