博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[CENTOS7] 将域群组加入到Sudoer里
阅读量:7077 次
发布时间:2019-06-28

本文共 1558 字,大约阅读时间需要 5 分钟。

文章来源:https://derflounder.wordpress.com/2012/12/14/adding-ad-domain-groups-to-etcsudoers/

Adding AD domain groups to /etc/sudoers

December 14, 2012
 

A  focused around how to give members of Active Directory groups the ability to run commands as root using the  command-line utility. This would allow the users in those groups the ability to run some or all commands with root privileges in Terminal without having to give those accounts administrative privileges on the Mac in question.

To do this, you would need to add an entry to the /etc/sudoers file. /etc/sudoers gives listed users or groups the ability to execute commands while having the privileges of the root user.

Editing /etc/sudoers

To edit /etc/sudoers safely, make sure to use the . This application will do a sanity check on your changes to /etc/sudoers before putting them into production.

visudo uses vi as its editor. If you haven’t used vi previously, I recommend   before launching visudo.

Adding entries to /etc/sudoers

Adding the following entry to /etc/sudoers would allow you to give full sudo permissions to an AD group named ITadmins:

 

1
%DOMAIN\\ITadmins      ALL=(ALL) ALL

 

Because a number of AD groups have spaces in the names, you’ll need to escape the spaces using backslashes. For example. adding the following entry to /etc/sudoers would allow you to give full sudo permissions to an AD group named Group Name With Spaces:

 

1
%DOMAIN\\Group\ Name\ With\ Spaces       ALL=(ALL) ALL

 

In both cases, replace DOMAIN with your AD domain’s name.

转载于:https://www.cnblogs.com/lionetchen/p/8135672.html

你可能感兴趣的文章
volatile 可见性的模拟分析示例
查看>>
2016.04.22-2016.04.28这周工作时间和内容
查看>>
jSignature签字板保存为图片
查看>>
node.js学习笔记--day1
查看>>
Delphi中Move、CopyMemory操作
查看>>
九、sparkStream的scala示例
查看>>
七、并发容器ConcurrentHashMap
查看>>
CentOS 6.4 yum快速搭建Zabbix 2.2版本(中文)
查看>>
MySQL密码丢失,解决方法
查看>>
20135306黄韧[2.72 2.77 3.70](http://i.cnblogs.com/EditPosts.aspx?opt=1)
查看>>
配置Redis客户端
查看>>
easyui datagrid 相关取数据总结
查看>>
LeetCode:Reverse LinkedList
查看>>
xshell中复制快捷键的设置
查看>>
Problem A: 字符的变化
查看>>
Leveldb -转
查看>>
列表与元组的区别
查看>>
4月13
查看>>
Daily Scrum: 2012/11/12
查看>>
日志详解
查看>>