小编zey*_*yue的帖子

为什么我不能在我已经加入的那个组中获得许可?

我已经是“aid_sdcard_rw”组的成员:

android@localhost:~$ whoami
android
android@localhost:~$ groups
android aid_radio ...... aid_sdcard_rw ......
Run Code Online (Sandbox Code Playgroud)

你可以看到我已经在aid_sdcard_rw组中了。然后,当我访问目录 /storage/sdcard0 时:

android@localhost:~$ ls /storage/sdcard0/
ls: cannot open directory '/storage/sdcard0/': Permission denied
Run Code Online (Sandbox Code Playgroud)

但:

android@localhost:~$ ls -l /storage/
total 8
d---rwxr-x 17 android aid_sdcard_rw 8192 1?   1  1970 sdcard0
Run Code Online (Sandbox Code Playgroud)

组“aid_sdcard_rw”成员没有读取权限吗?为什么这个权限被拒绝发生?


我运行的系统是 ubuntu 16.04 并使用名为 Linux Deploy 的应用程序在我的 android 手机中运行,并且我的手机插入了外部 sd 卡:

Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.4.5 armv7l)

 * Documentation:  https://help.ubuntu.com/
Ubuntu 16.04 LTS [running via Linux Deploy]
Run Code Online (Sandbox Code Playgroud)

目录 /storage/sdcard0 是我的外部 sd 卡挂载目录(请参阅下面的最后一行):

android@localhost:~$ cat /etc/mtab
/dev/loop1 / …
Run Code Online (Sandbox Code Playgroud)

ubuntu permissions mount

4
推荐指数
2
解决办法
612
查看次数

标签 统计

mount ×1

permissions ×1

ubuntu ×1