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 appropriat...
- Feb 11, 2019
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.
schumaku
Jan 01, 2019Guru - 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_2
Jan 02, 2019Tutor
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...
- StephenBJan 02, 2019Guru - 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.
- jjcf89_2Jan 02, 2019Tutor
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.
- StephenBJan 02, 2019Guru - Experienced User
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.
Security for this depends on his Windows log on - if he leaves one (or more) of his PC desktops open, then someone could access the NAS (including his home folder) from that PC.
- schumakuJan 02, 2019Guru - Experienced User
jjcf89_2 wrote:
Interesting workaround. Not ideal but may work for most users. ... If each computer had a different account then he wouldn't be able to access his home folder.
The home folder is mapped based on the first username accessing the NAS. Of course, the idea does not work for the home share.
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.
Every user must have one identity - one passport, one ID, one business card, one person. Time to streamline the boss computer behaviours for 2019.
- jjcf89_2Jan 02, 2019Tutor
schumaku wrote:
jjcf89_2 wrote:
Interesting workaround. Not ideal but may work for most users. ... If each computer had a different account then he wouldn't be able to access his home folder.
The home folder is mapped based on the first username accessing the NAS. Of course, the idea does not work for the home share.
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.
Every user must have one identity - one passport, one ID, one business card, one person. Time to streamline the boss computer behaviours for 2019.
That is an overly simplistic view of things. The most pressing example of that would be the computers that have normal windows local accounts vs those that use the new Microsoft online accounts. The online accounts all use the email address as the username instead of just the user part of the address.
Though I agree there are certainly several local accounts that should have their usernames unified...
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!