create user needs sudo

This commit is contained in:
2026-03-19 15:42:41 +00:00
parent cd7d2fcf61
commit 0b34f8cc3e
3 changed files with 50 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ The program:
- Prompts to add, edit, or delete a share.
- 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`.
- 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: