echo AA19 >/tmp/ethdbg -sh: /tmp/ethdbg: Permission denied
时间: 2023-09-30 08:05:13 浏览: 43
As an AI language model, I do not have the capability to change permissions or access to files on a system. However, this error message indicates that the user attempting to execute the command does not have the necessary permissions to access or modify the file located at /tmp/ethdbg. The user may need to use the sudo command to gain elevated privileges or check the file permissions to ensure they have the necessary permissions to access the file.
相关问题
opt/module/hadoop-3.3.4/libexec/hadoop-functions.sh:line1848:/tmp/hadoop-wyg-namenode.pid: Permission denied wyq: ERROR: Cannot write namenode pid/tmp/hadoop-wuy-namenode.pid.
这个错误是因为你的用户没有权限在/tmp目录下创建文件。可能是因为/tmp目录的权限设置为了只读模式。你可以尝试使用sudo命令以超级用户权限运行脚本,或者修改/tmp目录的权限。
可以使用以下命令为/tmp目录添加写权限:
```
sudo chmod a+w /tmp
```
如果你不想为所有用户添加写权限,可以使用以下命令为当前用户添加写权限:
```
chmod u+w /tmp
```
然后重新运行脚本即可。
执行 echo "0" > /sys/devices/system/cpu/offline指令-sh: /sys/devices/system/cpu/offline: Permission denied
如果在执行 `echo "0" > /sys/devices/system/cpu/offline` 命令时出现 `Permission denied` 错误,说明你没有足够的权限来修改 `/sys/devices/system/cpu/offline` 文件。这是因为 `/sys` 目录下的文件都是虚拟文件,需要 root 权限才能修改。
你可以尝试使用 `sudo` 命令来获取 root 权限,例如:
```
sudo echo "0" > /sys/devices/system/cpu/offline
```
如果你的用户帐户没有 sudo 权限,则需要使用 root 帐户或向系统管理员请求帮助。但需要注意的是,修改 CPU 核心的在线状态可能会对系统稳定性和性能造成影响,因此在进行此类操作时应该谨慎。