client flow

This commit is contained in:
2026-03-19 19:40:45 +00:00
parent 8c00a42663
commit 93527bb725
5 changed files with 377 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ The program:
- Prompts to add, edit, or delete a share.
- Includes a user-management menu to verify all share accounts exist and to remove obviously unused share-style accounts.
- Includes a user-management menu to change a Samba user's password.
- Includes a client-mount workflow for connecting this computer to a share on another server with `cifs-utils`.
- 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`.
@@ -32,6 +33,7 @@ The program:
- Before saving, offers to adjust share-folder ownership and permissions so connected users can actually read and write files.
- 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.
- Can append a CIFS mount entry to `/etc/fstab`, including an inline username and password if that is the setup you want.
If you create a local account for a Samba-authenticated share, you may still need to add the Samba password separately: