免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2208 | 回复: 2
打印 上一主题 下一主题

[桌面系统] =======About sudoers !!!====== [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-15 01:18 |只看该作者 |倒序浏览
谁熟悉这个????
================================================================================
[plbb18@ABC tmp]$ id
uid=500(plbb1 gid=500(plbb1 groups=500(plbb1
[plbb18@ABC tmp]$ uname -a
Linux ABC 2.4.20-8 #1 Thu Mar 13 17:54:28 ABC 2003 i686 i686 i386 GNU/Linux
[plbb18@ABC tmp]$ ls
vuln  vuln.c
[plbb18@ABC tmp]$ ls -l vuln
-rwxrwxr-x    1 plbb18 plbb18    11541  1?? 13 17:18 vuln
[plbb18@ABC tmp]$ cat vuln.c
int main(int argc, char *argv[])
{
    char buffer[500];
    strcpy(buffer,argv[1]);
    return 0;
}
[plbb18@ABC tmp]$ sudo chown root vuln
Password:
plbb18 is not in the sudoers file.  This incident will be reported.
[plbb18@ABC tmp]$ sudo chmod +s vuln
plbb18 is not in the sudoers file.  This incident will be reported.
[plbb18@ABC tmp]$ cat /etc/sudoers:权限不够
......
================================================================================
[root@ABC root]# id plbb18
uid=500(plbb1 gid=500(plbb1 groups=500(plbb1
[root@ABC root]# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
                                                                                
# Host alias specification
                                                                                
# User alias specification
                                                                                
# Cmnd alias specification
                                                                                
# Defaults specification
                                                                                
# User privilege specification
root    ALL=(ALL) ALL
                                                                                
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL
                                                                                
# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

[root@ABC root]#

================================================================================

哪位朋友熟悉这个?

[ 本帖最后由 plbb18 于 2007-1-17 11:53 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-01-15 09:04 |只看该作者
plbb18 is not in the sudoers file.

已经讲明了,你不是sudoer。

论坛徽章:
0
3 [报告]
发表于 2007-01-15 16:41 |只看该作者
是的, plbb18不是sudoer,所以没有权限.

如果没有机会使用root权限的帐户编辑sudoers文件,怎么样才能突破这个限制呢?

假设我们得到的是一个远程系统的普通帐号plbb18,
目标是突破远程系统的安全设置,使plbb18可以具有sudo权限.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP