wrtie config needs sudo usually

This commit is contained in:
2026-03-19 15:46:22 +00:00
parent 0b34f8cc3e
commit 1b8807010d
3 changed files with 76 additions and 5 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`.
- 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.
If you create a local account for a Samba-authenticated share, you may still need to add the Samba password separately: