Documentation
¶
Index ¶
- func AuthorizedKeys(username string) ([]string, error)
- func Create(username, shell string) error
- func Delete(username string, removeHomedir bool) error
- func HasSudo(username string) (bool, error)
- func List() (map[string]Details, error)
- func RemoveSudo(username string) error
- func UpdateAuthorizedKeys(username string, keys []string) error
- func UpdateSudo(username string, admin bool) error
- func ValidAuthorizedKey(key string) bool
- type Details
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizedKeys ¶
AuthorizedKeys gets the SSH authorized keys for the given Linux user
func RemoveSudo ¶
RemoveSudo removes sudo privileges (if set) for a user without checking that user actually exists
func UpdateAuthorizedKeys ¶
UpdateAuthorizedKeys updates the SSH authorized keys for the given Linux user
func UpdateSudo ¶
UpdateSudo enables or disables sudo privileges for the given Linux user
func ValidAuthorizedKey ¶
ValidAuthorizedKey returns true if the specified key is a valid SSH public key
Types ¶
Click to show internal directories.
Click to hide internal directories.