Add tooltip warning users to avoid using uppercase usernames when creating an SMB home share
Using FreeNAS 11.2 BETA2 it seems like the full path to a user home directory need to be lowercase. Adding any capital letters seems to brake things - even though the path selected on the "edit user" page does save the path with capital letters.
I experienced this error when I...
Created a user called Matt, with no home directory set
Created a unix dataset called "homes"
Created a Windows dataset called "Matt" underneath "homes"
Set owner user and group to "Matt" for this new dataset
Edited the Matt user and set the home directory to "/mnt/vol/homes/Matt"
Created an SMB share called homes and set it as a home share
Restarted SMB service
Tried to navigate to \\FREENAS\Matt in Windows (path not found error)
Look at /var/log/samba4/log.smbd and you can see samba was trying to access "/mnt/vol/homes/matt"
As you can see, for some reason Samba is trying to access the correct home path, but with all lowercase characters.
If this can't be changed, then an error message when selecting the user home directory would be helpful.
#8 Updated by Andrew Walker over 1 year ago
When we configure home directories in samba on freenas, we use the following path syntax
path = "/mnt/dozer/SMB/%U"
Note the %U. This is a macro that expands to a sanitized form of the session's username. One step of the sanitization process is to convert it to lower case.
Unfortunately, there's not much we can do to change this behavior without risking breaking things for current users (changing the macro to something like %H) or breaking samba (by changing sanitization methods for %U).
#10 Updated by Andrew Walker over 1 year ago
Matt Bunce wrote:
To be honest, if there had been a warning about this on the field where you set the user home directory that would have been enough to save me a couple of hours of head scratching.
If it's clearly signposted it really isn't much of a problem.
A warning sounds reasonable, but it should probably be during user account creation if the specified account name is uppercase or mixed-case. Lower-case usernames have been the convention for long enough it's better to not deviate.
#23 Updated by Jeff Ervin over 1 year ago
- File Screen Shot 2018-10-29 at 1.21.04 PM (2).png Screen Shot 2018-10-29 at 1.21.04 PM (2).png added
- File Screen Shot 2018-10-29 at 1.21.47 PM.png Screen Shot 2018-10-29 at 1.21.47 PM.png added
- Status changed from Ready for Testing to Failed Testing
Test Failed FreeNAS-11.2-INTERNAL30 (30 created 10/29/18)
#26 Updated by Jeff Ervin over 1 year ago
- File Screen Shot 2018-10-29 at 2.08.02 PM.png Screen Shot 2018-10-29 at 2.08.02 PM.png added
- Status changed from Failed Testing to Passed Testing
- Needs QA changed from Yes to No
Test Passed FreeNAS-11.2-INTERNAL30
After speaking with Dru, this is where the tooltip is supposed to be.