免费注册 查看新帖 |

Chinaunix

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

[新手入门] aix 5.3 SUDO问题,请高手帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-08-28 18:04 |只看该作者 |倒序浏览
本人新手,今天登录一台aix 5.3的主机,使用aiuap的用户想加一个用户,用sudo命令时提示not found,请高手帮忙,谢谢。

<<< Log from 10.220.66.25 started 八月 28, 2015, 17:50:43 >>>
db2:/#>sudo -V                                                                  
Sudo version 1.6.9p15                                                           

Sudoers path: /etc/sudoers                                                      
Authentication methods: 'aixauth'                                               
Syslog facility if syslog is being used for logging: auth                       
Syslog priority to use when user authenticates successfully: notice            
Syslog priority to use when user authenticates unsuccessfully: alert            
Ignore '.' in $PATH                                                            
Send mail if the user is not in sudoers                                         
Use a separate timestamp for each user/tty combo                                
Lecture user the first time they run sudo                                       
Require users to authenticate by default                                       
Root may run sudo                                                               
Allow some information gathering to give useful error messages                  
Visudo will honor the EDITOR environment variable                              
Set the LOGNAME and USER environment variables                                 
Length at which to wrap log file lines (0 for no wrap): 80                     
Authentication timestamp timeout: 5 minutes                                    
Password prompt timeout: 5 minutes                                             
Number of tries to enter a password: 3                                          
Umask to use or 0777 to use user's: 022                                         
Path to mail program: /usr/sbin/sendmail                                       
Flags for mail program: -t                                                      
Address to send mail to: root                                                   
Subject line for mail messages: *** SECURITY information for %h ***            
Incorrect password message: Sorry, try again.                                   
Path to authentication timestamp dir: /var/run/sudo                             
Default password prompt: Password:                                             
Default user to run commands as: root                                          
Path to the editor for use by visudo: /usr/bin/vi                              
When to require a password for 'list' pseudocommand: any                        
When to require a password for 'verify' pseudocommand: all                     
File containing dummy exec functions: /opt/freeware/libexec/sudo_noexec.so      
Reset the environment to a default set of variables                             
Environment variables to check for sanity:                                      
        TERM                                                                    
        LINGUAS                                                                 
        LC_*                                                                    
        LANGUAGE                                                               
        LANG                                                                    
        COLORTERM                                                               
Environment variables to remove:                                                
        RUBYOPT                                                                 
        RUBYLIB                                                                 
        PYTHONINSPECT                                                           
        PYTHONPATH                                                              
        PYTHONHOME                                                              
        TMPPREFIX                                                               
        ZDOTDIR                                                                 
        READNULLCMD                                                            
        NULLCMD                                                                 
        FPATH                                                                  
        PERL5DB                                                                 
        PERL5OPT                                                               
        PERL5LIB                                                               
        PERLLIB                                                                 
        PERLIO_DEBUG                                                            
        JAVA_TOOL_OPTIONS                                                      
        SHELLOPTS                                                               
        GLOBIGNORE                                                              
        PS4                                                                     
        BASH_ENV                                                               
        ENV                                                                     
        TERMCAP                                                                 
        TERMPATH                                                               
        TERMINFO_DIRS                                                           
        TERMINFO                                                               
        LIBPATH                                                                 
        LDR_*                                                                  
        _RLD*                                                                  
        LD_*                                                                    
        PATH_LOCALE                                                            
        NLSPATH                                                                 
        HOSTALIASES                                                            
        RES_OPTIONS                                                            
        LOCALDOMAIN                                                            
        CDPATH                                                                  
        IFS                                                                     
Environment variables to preserve:                                             
        XAUTHORIZATION                                                         
        XAUTHORITY                                                              
        TZ                                                                     
        PS2                                                                     
        PS1                                                                     
        PATH                                                                    
        MAIL                                                                    
        LS_COLORS                                                               
        KRB5CCNAME                                                              
        HOSTNAME                                                               
        HOME                                                                    
        DISPLAY                                                                 
        COLORS                                                                  
Local IP address and netmask pairs:                                             
        10.220.3.14 / 255.255.255.224                                          
        192.168.200.4 / 255.255.255.224                                         
        10.10.10.9 / 255.255.255.0                                             
                                                            
db2:/#>sudo cat /etc/sudoers                                                   
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# 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

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL
aiuap   db2=NOPASSWD: /usr/bin/mkuser,/usr/sbin/rmuser,/usr/bin/chuser,/usr/bin/passwd,/usr/bin/mkgroup,/usr/sbin/rmgroup,/usr/bin/cat,/usr/sbin/lsuser,/usr/bin/pwdadm
# 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

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP