
A minimal setup for managing SUDO rules centrally on a directory server
On directory server, enable SUDO schema and create the following entities, the example sits under dc=vm,dc=net context and enables user test to run SUDO on any host:
dn: ou=SUDOers,dc=vm,dc=net objectClass: top objectClass: organizationalunit ou: SUDOersdn: cn=defaults,ou=SUDOers,dc=vm,dc=net
objectClass: top
objectClass: sudoRole
cn: defaults
description: Default sudoOption's go here
sudoOption: env_keep+=SSH_AUTH_SOCK
sudoOption: rootpwdn: cn=testrule,ou=SUDOers,dc=vm,dc=net
objectClass: top
objectClass: sudoRole
cn: testrule
sudoUser: test
sudoHost: ALL
sudoCommand: ALL
On directory client:
- Edit
/etc/nsswitch.confand add linesudoers: ldapinto it. The line instructs C standard library to look for SUDO policy via LDAP. - Edit
/etc/ldap.confto add the following lines:
host 127.0.0.1 base dc=vm,dc=net sudoers_base ou=SUDOers,dc=vm,dc=netThe configuration file contains LDAP client configuration for operating system components, not to be confused with `/etc/openldap2/ldap.conf`that has default configuration for applications.
Leave A minimal setup for managing SUDO rules centrally on a directory server to:
Read more #linux posts
Best Posts From Howard (Houzuo) Guo
We have not curated any of ghz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Howard (Houzuo) Guo
- Open Source: new features in laitos v3.1 - your personal web infrastructure and assistant over telephone/SMS/satellite terminals
- Howard (Houzuo) Guo | HZGL
- New Version! laitos v1.2 brings new enhancements to the only software solution that let you be in touch with your Linux computer at all times via telephone, SMS, and satellite terminals
- A minimal setup for managing SUDO rules centrally on a directory server
- Go: workaround to json.Unmarshal being incapable of deserialising into custom interface type
- Alter the system-wide default environment PATH and switch-user PATH on Solaris 10 and 11
- Tips for running CPAN in Solaris 11
- Remedy for PPTP VPN clients not able to browse several or any websites
- Install Broadcom BCM5786 Driver in Oracle Solaris 10
- Create a better world map (base map) for your Garmin Fenix