Jane Posted February 5 Share Posted February 5 There is a script that allows Unraid users to change their SMB passwords via ssh without involving the administrator: https://krefcom.eu/passwortaenderung-durch-unraid-smb-share-user-per-ssh-ermoeglichen/ 1 2 Quote Link to comment
JonathanM Posted February 7 Share Posted February 7 This makes no sense, since login via SSH requires root credentials, which by definition is the administrator. Quote Link to comment
Jane Posted February 7 Author Share Posted February 7 (edited) This is not true. ssh-login is by the users-id in this case. What is more the defined shell is the smbpasswd command, other commands are not possible. Take a look at the google translated configuration instructions: # 1. Store the script in /boot/config/allowsmbpwchange # 2. echo bash /boot/config/allowsmbpwchange >> /boot/config/go # 3. Activate in Unraid under Settings -> Management Access -> Use ssh # 4. Restart Unraid # 5. SMB password change e.g. from Windows with "ssh servername -l username", password see below. # # Configuration # # SMB minimum password length when changed by user. # If the value set here during the first execution is to be changed, # the file /tmp/.allowsmbpwchange_1strun is to be deleted. # MINPASSWORDLENGTH=8 # # Changed SMB passwords should be saved to the USB stick every how many minutes. # to be preserved in a reboot? This value also indicates how many minutes every # the SMB password change by user is activated for newly created users. # If the value set here during the first execution is to be changed, # the file /tmp/.allowsmbpwchange_1strun is to be deleted. # UPDATE INTERVAL=30 # # To change the SMB password, users log in via SSH with their name and the following password. # This password can also be empty, but this means that the user is # shown in the dashboard as "unprotected", which is irrelevant since they have an SMB password. # Of course, a new SMB password cannot be assigned without a current SMB password. That's why # it doesn't matter that the password defined here is the same for everyone. # PASSWORD="pwchg" Edited February 7 by Jane 1 Quote Link to comment
TerraF Posted February 10 Share Posted February 10 Got it working using the "shell in a box" (today call "command line") plugin as interface.😀 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.