offer set user password on creation

This commit is contained in:
2026-03-19 16:13:48 +00:00
parent 1b8807010d
commit 6fbe5389c2
3 changed files with 68 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ The program:
- Checks `valid users` entries against local accounts.
- Offers to create missing local accounts with `useradd -M -s /usr/sbin/nologin <user>`.
- If user creation fails because admin rights are needed, explains the issue and offers to retry with `sudo`.
- After creating a user, offers to launch `smbpasswd -a <user>` immediately so the Samba password can be set right away.
- If saving the Samba config or its backup needs admin rights, explains the issue and offers to retry with `sudo`.
- Writes a timestamped backup before saving changes.