Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Allow users to change their SMB passwords on their own via SSH

Featured Replies

This makes no sense, since login via SSH requires root credentials, which by definition is the administrator.

  • Author

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 by Jane

Got it working using the "shell in a box" (today call "command line") plugin as interface.😀

 

 

smb.jpg

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.