码迷,mamicode.com
首页 > 其他好文 > 详细

freebsd sudo配置使用

时间:2015-02-02 20:07:17      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:permission   running   command   details   errors   

首先第一步当然是安装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


本文出自 “享受编程” 博客,请务必保留此出处http://kure6.blog.51cto.com/2398286/1610737

freebsd sudo配置使用

标签:permission   running   command   details   errors   

原文地址:http://kure6.blog.51cto.com/2398286/1610737

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!