YunoHost-Apps / samba_ynh

Samba package for YunoHost
GNU Affero General Public License v3.0
1 stars 5 forks source link

old users are missing from smbpasswd #20

Open Hemi03 opened 4 months ago

Hemi03 commented 4 months ago

Describe the bug

Samba uses its own password hash, so every user has to be added using smbpasswd. This only happens automatically for users that are created after the installation of the samba app. The problem is that existing users are not added during install, but only new users threw the post_install hook.

Context

Steps to reproduce

  1. add a user to yunohost
  2. install the samba app
  3. crate a new user
  4. show all users in samba password store sudo pdbedit -L -v

Expected behavior

If a user installs the Samba app, they would expect every user to be able to access the samba /share.

Manual workaround

log into your ssh and run

sudo smbpasswd -a user_name

give the same password as the user has in yunohost.

Hemi03 commented 4 months ago

11 is a result of this issue