床护栏厂家
免费服务热线

Free service

hotline

010-00000000
床护栏厂家
热门搜索:
技术资讯
当前位置:首页 > 技术资讯

图sudosudo安扎克兰多夫装配置和应用-【xinwen】

发布时间:2021-10-12 09:54:57 阅读: 来源:床护栏厂家

sudo安装、配置和应用sudo是允许系统管理员让普通用户执行一些或者全部的root命令的一个工具,如halt,reboot,su等等。 --with-sudoers-uid sudoers配置文件的所有者id,默认为0 --with-sudoers-gid sudoers配置文件的所有者的组id,默认为0 --without-passwd 用户认证无须密码。 --with-logging=TYPE 日志类型,可以选择’syslog’、’file’或者两种都可以。 --with-logpath=path 日志存放的路径和文件名,默认为/var/log/sudo.log --with-umask 在运行root命令是用umask,默认的umask是0022 --with-passwd-tries=tries sudo写进log日志条件示输进密码的次数,默认为3次。 --with-timeout=minutes sudo提示输进密码之前的时间,默认为5分钟 --with-password-timeout=minutes 密码的有效期,默认为5分钟,0表现密码永远有效。 --without-lecture 第一次运行sudo不打印lecture信息 --disable-root-sudo root用户不能运行sudo。 --enable-log-host 记录主机host到日志文件 --disable-path-info 出错时,不显示sudo的路径。 如 输进:./configure --with-timeout=10 --without-lecture --disable-root-sudo --disable-path-info --sysconfdir=/home/config/ --bindir=/bin --sbindir=/sbin 7) make 8) make install >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 二,配置编纂配置文件命令:visudo默认配置文件地位:/etc/sudoers# 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# Runas alias specification# User privilege specificationroot 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#可以用visudo编纂sudoers配置文件,不过也可以直接通过修正sudoers文件实现,不过编纂之前最好看一下它的sample.sudoers文件,里面有一个相当具体的例子可以参考。#第一部分:用户定义,将用户分为FULLTIMERS、PARTTIMERS和WEBMASTERS三类。 User_Alias FULLTIMERS = millert, mikef, dowdy User_Alias PARTTIMERS = bostley, jwfox, crawl User_Alias WEBMASTERS = will, wendy, wim #第二部分,将把持类型分类。 Runas_Alias OP = root, operator Runas_Alias DB = oracle, sybase #第三部分,将主机分类。这些都是随便分得,目标是为了更好地治理。 Host_Alias SPARC = bigtime, eclipse, moet, anchor :\ SGI = grolsch, dandelion, black :\ ALPHA = widget, thalamus, foobar :\ HPPA = boa, nag, python Host_Alias CUNETS = 128.138.0.0/255.255.0.0 Host_Alias CSNETS = 128.138.243.0, 128.138.204.0/24, 128.138.242.

中国干细胞医院

北京301nk免疫治疗贵吗

北京最好的肿瘤医院

北联NK免疫疗法有什么作用