freebsd sudo配置使用
2015-02-02 16:03
351 查看
首先第一步当然是安装sudo
安装好了之后会产生一个sudoers文件如果你的sudo安装在/usr/bin/sudo下面的话,sudoers文件可能就在/etc/下面如果你的sudo安装在/usr/local/bin/sudo下面,sudoers文件在/usr/local/etc/下面
把sudo配置成所有的wheel组可以使用
# 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
# Uncomment if needed to preserve environmental variables related to the
# FreeBSD pkg_* utilities and fetch.
#Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
# Additionally uncomment if needed to preserve environmental variables
# related to portupgrade.
#Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
# Runas alias specification
# User privilege specification
安装好了之后会产生一个sudoers文件如果你的sudo安装在/usr/bin/sudo下面的话,sudoers文件可能就在/etc/下面如果你的sudo安装在/usr/local/bin/sudo下面,sudoers文件在/usr/local/etc/下面
把sudo配置成所有的wheel组可以使用
# 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
# Uncomment if needed to preserve environmental variables related to the
# FreeBSD pkg_* utilities and fetch.
#Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
# Additionally uncomment if needed to preserve environmental variables
# related to portupgrade.
#Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
# Runas alias specification
# User privilege specification
相关文章推荐
- freebsd sudo配置使用
- freebsd ports 使用举例:安装 mysql
- FreeBSD6.2安装配置记录
- freebsd pf配置文件
- freebsd vi使用
- Vsftpd的虚拟用户配置:PAM + PgSQL + FreeBSD-4
- freebsd ports安装 nginx+php+mysql+fastcgi配置记录
- FreeBSD+nginx+php+fcgi配置步骤
- freebsd SSH配置详解
- FreeBSD之配置DNS的rndc
- FreeBSD Slackare使用手册
- FreeBSD7.0Release中文桌面(Gnome)安装配置
- freebsd6.3 hobbit 配置
- FreeBSD SSH配置详解
- FreeBSD snmptrapd.conf配置详解
- FreeBSD5.4内核配置文件(服务器专用)
- Freebsd6.2 使用 apache2 + rewrite
- vsftpd如何配置虚拟用户:PAM + PgSQL + FreeBSD-4
- Freebsd8.1下配置SVN服务器
- mysql主从配置(freebsd+mysql5.5.13)