Android shell chown u0_49

标签 android linux chown android-shell

我在更改 Android 外壳中的所有者时遇到了一些问题。我正在尝试更改文件的所有者和组以匹配目录中的另一个文件。当我 ls -l 时,其他文件的所有者为 u0_a49 我尝试 su chown u0_a49:u0_49 当我尝试时,我收到了错误tmp-mksh: u0_a49:u0_a49: not found 我也用 u0_a49.u0_a49 尝试过,但没有成功。知道为什么我无法设置此权限吗?

最佳答案

当前执行chown的用户的ID是什么?您只能在 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

关于Android shell chown u0_49,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37781417/

相关文章:

android - 如何从 Overlay onTap 方法将按下的位置返回到 MapActivity

android - 更改 Android Play/Market 中现有应用的过滤器和要求的副作用

c++ - 动态链接库 - 构建可执行文件时成功,创建另一个 .so 时相同的设置失败

linux - 如何自动更改目录中每个文件的所有权

Dockerfile "RUN chmod"未生效

linux - chown 用户目录,没有用户存在

Android Studio - Maps.me 设置

c - 文件 I/O 减慢了我的 C 循环

linux - 服务器端口状态检查监控配置

android - 在 Android 上使用 Smack 4.1 时出现初始化异常 "NoClassDefFoundError: javax.naming.directory.InitialDirContext"