0

我在我的 android 的 shell 中更改所有者时遇到了一些麻烦。我正在尝试更改文件的所有者和组以匹配目录中的另一个文件。当我尝试ls -l其他文件的所有者时,当我尝试得到错误时,我也尝试了它,但没有运气。知道为什么我不能设置此权限吗?u0_a49su chown u0_a49:u0_49tmp-mksh: u0_a49:u0_a49: not foundu0_a49.u0_a49

4

1 回答 1

1

您当前执行的用户的 id 是什么chown?您只能在 Android 中将所有权更改为您自己的用户 ID 和组 ID。

$ id
uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
$ chown shell.shell file
$ chown 2000.2000 file # use the gid.uid style
于 2016-06-13T04:49:34.503 回答