对文件夹的写权限

对文件夹的写权限

我有以下文件夹:

$ ls -ahl /mnt/smrtanalysis/
total 16K
drwxr-xr-x  4 smrtanalysis smrtanalysis 4.0K Jul 25 01:52 .
drwxr-xr-x  6 root         root         4.0K Jul 25 01:46 ..
lrwxrwxrwx  1 smrtanalysis smrtanalysis   13 Jul 25 01:52 admin -> current/admin
lrwxrwxrwx  1 smrtanalysis smrtanalysis   33 Jul 25 01:48 current -> install/smrtanalysis_2.3.0.140936
drwxrwxr-x  4 smrtanalysis smrtanalysis 4.0K Jul 25 01:48 install
lrwxrwxrwx  1 smrtanalysis smrtanalysis   16 Jul 25 01:52 smrtcmds -> current/smrtcmds
lrwxrwxrwx  1 smrtanalysis smrtanalysis   17 Jul 25 01:52 tmpdir -> /tmp/smrtanalysis
drwxrwxr-x 13 smrtanalysis smrtanalysis 4.0K Jul 25 01:52 user data

我希望作为用户 ( ubuntu) 能够写入它:

ubuntu@waterhouse-1:~$ groups
ubuntu smrtanalysis

ubuntu用户在组中smrtanalysis,但我仍然无法写入/mnt/smrtanalysis/

我做错了什么?

答案1

权限

755 (rwxr-xr-x)在 dir 上有of ,如输出/mnt/smrtanalysis/所示。 ubuntu 是组的一部分,但组只需要您授予组写访问权限。.lsowner:groupsmrtanalysis:smrtanalysissmrtanalysisr-xsudo chmod g+w /mnt/smrtanalysis/

相关内容