【发布时间】:2014-09-18 09:25:49
【问题描述】:
我使用的是 Linux 系统,当我运行任何命令时,命令都会被记录,但没有 root 权限,我的命令中会出现以下错误
VD 平台是:X14 KERNELARCH:arm chmod:更改权限
/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-cp.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-cp.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-cp.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-cp.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-cp.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-cp.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': Operation not allowed chmod: 更改权限/var/log/USER_LOGS/09-18-14-make.txt': Operation not permitted chmod: changing permissions of/var/log/USER_LOGS/09-18-14-make.txt': 不允许操作
我想停止保存日志。我尝试了以下但没有用
-bash-4.1$ sudo service rsyslog stop
Shutting down system logger: [OK]
请帮忙,我怎样才能停止记录命令。
【问题讨论】:
-
你可以使用 su(使用 root)或 sudo chmod +x 777 文件名