NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jjcf89_2
Jan 01, 2019Tutor
RN314 samba custom username map
I just switched from a RN Ultra 4 running OS4 to a RN314 OS6. On the old NAS I was able to setup a custom samba username map so our multiple computers usernames would correctly map to the appropriate username on the NAS. However when I try to do this in OS6, the username map file keeps getting overwritten everytime the UI is saved. The file is located at /etc/frontview/samba/usermap.conf
Is there some way to provide a custom username map?
StephenB wrote:
jjcf89_2 wrote:
StephenB wrote:
jjcf89_2 wrote:
However, the boss of the company has several computers all with different usernames and he's the only one that uses the home folder feature.Just enter a single credential in the Windows Credential Manager on his PCs. Then there's no need to map anything for him on the NAS.
Hmm, that's a new one to me. I'll have to look that up and see what I can do. Thanks.
Just to clarify - the credential would be the username/password of his (single) NAS user account, and would be for NAS access from his PCs. If he accesses the NAS by both IP address and hostname, then you'd enter one credential for each.
Okay. I've had decent success at doing it this way. Note the method is a bit of a pain in the ass, mostly because Windows won't let you log in using a different account.
So my process so far has been:
- Log into PC
- Disconnect all mounted shares
- Open Credential Manage and on Windows Credential tab, remove any remembered credentials for NAS
- Log out and back in
- Access NAS to non-anonymous share and Enter correct credentials and check remember box. This usually errors out with "can't authenticate multiple accounts..."
- Log out and back in
- Access NAS to non-anonymous share and everything should be working. Windows did remember the password from last step even though it failed.
- Check credential manager again just to make sure username looks correct now.
- Setup mounted shares
- Repeat above steps for \\ipaddress if users are prone to accessing NAS via IP
Note: I usually
tail -f /var/log/samba/log.smbd
and watch to make sure I do see it correctly authenticating.
13 Replies
Replies have been turned off for this discussion
- schumakuGuru - Experienced User
Create user accounts for all the computer users, create a user group, and add all these users to this group. Grant the required access rights for the shared folders to the group.
- jjcf89_2Tutor
schumaku wrote:
Create user accounts for all the computer users, create a user group, and add all these users to this group. Grant the required access rights for the shared folders to the group.
Interesting workaround. Not ideal but may work for most users. However, the boss of the company has several computers all with different usernames and he's the only one that uses the home folder feature. If each computer had a different account then he wouldn't be able to access his home folder.
On a similar note, it came up this morning that symlinks weren't working over samba. I enabled them in the /etc/frontview/samba/smb.conf.defaults file but I'm unclear if this file will be overridden.
If symlinks can work then maybe I can use them to link each of the different home folders...
- StephenBGuru - Experienced User
jjcf89_2 wrote:
However, the boss of the company has several computers all with different usernames and he's the only one that uses the home folder feature.Just enter a single credential in the Windows Credential Manager on his PCs. Then there's no need to map anything for him on the NAS.
Related Content
- Nov 30, 2019Retired_Member
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!