liuyanjun0826
V2EX  ›  macOS

移动硬盘里的文件因为删除用户后新建用户没权限

  •  
  •   liuyanjun0826 · Apr 16, 2016 · 2878 views
    This topic created in 3871 days ago, the information mentioned may be changed or developed.
    每次写入都要提示输入密码,原来的文件权限里可读写权限里面是 fetching ,新文件权限里可读写权限里面是新用户。如何让这些文件的权限改回来。
    8 replies  •  2016-04-16 15:57:51 +08:00
    iAV
    iAV
    Apr 16, 2016
    1
    既然是移动硬盘,最好还是别用那些不带日志和权限管理的文件系统, exFAT 不挺好的么。。。。
    liuyanjun0826
    liuyanjun0826
    OP
    Apr 16, 2016
    2
    @iAV 我用的是 hfs ,好像 expat 速度慢
    liuyanjun0826
    liuyanjun0826
    OP
    Apr 16, 2016
    3
    @iAV 其实我挺喜欢权限管理的,我的想法是如何在我用的时候不提示密码写入删除,在别人用的时候提示密码写入删除,达到安全的目的。
    liuyanjun0826
    liuyanjun0826
    OP
    Apr 16, 2016
    4
    @iAV 我发现终端输入命令显示我是 502 ,而 ls -al 里面显示文件所有者是 501 。
    znoodl
    znoodl
    Apr 16, 2016
    5
    @liuyanjun0826 在 root 下就没用了吧
    liuyanjun0826
    liuyanjun0826
    OP
    Apr 16, 2016
    6
    @znoodl 是的,我新建一个账号又成 501 了,这种权限防君子不防小人啊
    xmgit
    xmgit
    Apr 16, 2016❤️1
    7
    ls -n 能显示 uid gid
    shily
    shily
    Apr 16, 2016 via Android❤️1
    8
    sudo chown -R <current user name>: *
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2028 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:30 · PVG 14:30 · LAX 22:30 · JFK 01:30
    ♥ Do have faith in what you're doing.