Commit Graph
3 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 580522125f users: Fix checking username in retrieving SSH key
When using username containing malicious the following method should be
safe:

- pwd.getpwnam()
- shutil.chown()
- mkhomedir_helper()
2016-06-04 12:57:56 -04:00
Sunil Mohan Adapa 506bff5c7b users: Multiple SSH keys and better home creation
- Allow setting multiple SSH keys one per line (which is already
  allowed, but advertise it better).

- Use mkhomedir_helper to create the user's home directory.  Avoid
  security and accuracy complexities of creating a home directory.

- Allow homes that don't exist in /home.
2016-01-30 15:30:52 +05:30
James Valleroy ad7d6db968 users: Add field to set user's SSH key. 2016-01-30 15:30:32 +05:30