Change adduser-Restriction


Recommended Posts

Hello Programmers.
I'd like to see if you can change the restrictions for adding new users. ATM it's not possible to add users with dots
for example max.mustermann
The advantage is, that you can use your windows-credentials for logging in to shares from UnRaid if username and password matches.

In our Company and also on my home-computers i use dots in usernames for a long time in my old nas-system OpenMediaVault with no
problems, also every windows-machine will allow that. It would be fine if UnRaid will do so, too 🙂

 

Link to comment

There's a work around you can use if its acceptable to you: samba has username mapping

 

merge this into /boot/config/smb-extra.conf (\\tower\flash\config\smb-extra.conf) - you create the file if it doesn't exist or you add the username map line under the [global] section

[global]
    username map = /boot/config/smb-users.map

then create /boot/config/smb-users.map (\\tower\flash\config\smb-users.map)

user_name = user.name

user_name is the name you have created in Unraid

user.name is the name you have in the windows machines

So two clients with both usernames  will  be treated as the same user (same password and permissions <- this is if acceptable to you.

 

This should take effect immediately, or by restarting the samba service (/etc/rc.d/rc.samba restart) or by stopping and starting the array

Edited by ken-ji
Link to comment
  • 2 weeks later...
  • 3 weeks later...

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.