45Drives / cockpit-file-sharing

A Cockpit plugin to easily manage samba and NFS file sharing.
GNU General Public License v3.0
598 stars 32 forks source link

where to setting the samba user password? #41

Closed Omoinemie closed 2 years ago

Omoinemie commented 2 years ago

`root@5005U-Linux:~# testparm Load smb config files from /etc/samba/smb.conf Loaded services file OK. Weak crypto is allowed Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

Global parameters

[global] log file = /var/log/samba/log.%m logging = file map to guest = Bad User max log size = 1000 obey pam restrictions = Yes pam password change = Yes panic action = /usr/share/samba/panic-action %d passwd chat = Enter\snew\s\spassword: %n\n Retype\snew\s\spassword: %n\n password\supdated\ssuccessfully . passwd program = /usr/bin/passwd %u registry shares = Yes server role = standalone server unix password sync = Yes usershare allow guests = Yes idmap config * : backend = tdb

[文件] path = /mnt/文件 read only = No valid users = @ilove ilove `

image image

Omoinemie commented 2 years ago

root@5005U-Linux:~# smbpasswd -e ilove Failed to find user ilove in passdb backend. root@5005U-Linux:~# smbpasswd -n ilove Failed to find entry for user ilove.

joshuaboud commented 2 years ago

Hi, I see that this is closed but will comment here anyway for other people who find this. Samba user management is now done through cockpit-identities, and you can set the smbpasswd through the user editor in that plugin.