我用sudo授权一个用户具有kill权限,在执行sudo kill -9命令时出现以下提示: We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. 我的英语水平低,谁能帮我翻译一下,解释的详细更好!!
by shenglqlcsd - 系统管理 - 2006-06-30 15:26:46 阅读(1430) 回复(3)
sudo 常用方式: sudo sudo命令详解: 功能说明:以其他身份来执行指令。 语 法:sudo [-bhHpV][-s ][-u ][指令] 或 sudo [-klv] 补充说明:sudo可让用户以其他的身份来执行指定的指令,预设的身份为root。在/etc/sudoers中设置了可执行sudo指令的用户。若其未经授权的用户企图使用sudo,则会发出警告的邮件给管理员。用户使用sudo时,必须先输入密码,之后有5分钟的有效期限,超过期限则必须重新输入密码。 ...
sudo是允许系统管理员让普通用户执行一些或者全部的root命令的一个工具,如halt,reboot,su等等。这样不仅减少了root用户的登陆和管理时间,同样也提高了安全性。sudo不是对shell的一个代替,它是面向每个命令的。它的特性主要有这样几点: § sudo能够限制用户只在某台主机上运行某些命令。 § sudo提供了丰富的日志,详细地记录了每个用户干了什么。它能够将日志传到中心主机或者日志服务器。 § sudo使用时间戳文件来执行...
1. 安装sudo # cd /usr/ports/security/sudo # make install clean 2. 添加sudoers # visudo -f /usr/local/etc/sudoers 添加 %wheel ALL=(ALL) NOPASSWD: ALL Defaults syslog=auth Defaults logfile=/var/log/sudo.log Cmnd_Alias SHUTDOWN=/sbin/halt,/sbin/shutdown 这样设置就是允许wheel组的用户可以执行任何命令而不需要密码 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2326/showart_306765....
[osx@rhas ~]# sudo -l >>> sudoers file: syntax error, line 27 <<< sudo: no passwd entry for root! [osx@rhas ~]# 出现上面的提示, 该如何做,我是想用别名功能 [osx@rhas ~]# cat -n /etc/sudoers 1 # sudoers file. 2 # 3 # This file MUST be edited with the 'visudo' command as root. 4 # 5 # See the sudoers man page for the details on how to write a sudoers file. 6 # ...
不知道误操作了什么,sudo出现问题 当我执行sudo时报错: sudo: must be setuid root 请问是怎么回事? /usr/bin/sudo 现在是 -rwxr-xr-x 1 root root 94548 2006-03-02 11:30 sudo 原来是 -rwsr-xr-x 1 root root 94548 2006-03-02 11:30 sudo 我怎么改回去呢? r -4 w -2 x - 1 s 是多少? [ 本帖最后由 chzht001 于 2006-9-6 16:43 编辑 ]