Merge pull request #779 from slash3b/slash3b

visudo and getent were added
This commit is contained in:
Waldir Pimenta 2016-02-21 21:52:57 +00:00
commit 4b1f1f476a
2 changed files with 34 additions and 0 deletions

11
pages/common/visudo.md Normal file
View File

@ -0,0 +1,11 @@
# visudo
> Safely edit the sudoers file.
- Edit sudoers file:
`sudo visudo`
- Check sudoers file for errors:
`sudo visudo -c`

23
pages/linux/getent.md Normal file
View File

@ -0,0 +1,23 @@
# getent
> Get entries from Name Service Switch libraries.
- Get list of all groups:
`getent group`
- See the members of a group:
`getenet group {{group_name}}`
- Get list of all services:
`getent services`
- Find a username by UID:
`getent passwd 1000`
- Perform a reverse DNS lookup:
`getent hosts {{host}}`