Uppercase user Names

Strip

Cadet
Joined
Jan 20, 2024
Messages
2
TrueNAS-SCALE-23.10.1

Users with Uppercase login can't access their home folders.

Lets say I create two users with login "Anders" and "tommy". While tommy has no problems at all accessing his files via SMB, Anders can't access his home folder -just getting an error message.
Now, if I SSH to the server (as root) and change the folder name for
Code:
/mnt/Spinners01/user_homes/Anders/
to
Code:
/mnt/.../anders/
, then everything works fine.


Is this a bug, a feature, or just me doing something wrong?
 

gdreade

Dabbler
Joined
Mar 11, 2015
Messages
34
I run core rather than scale, so I'm not going to answer this specifically for Scale (or even TrueNAS), but in general. Nor should you consider this answer as snarky.

Speaking as someone who has been using UNIX systems for decades, yes, I would consider it to be doing something wrong. Mixed case usernames are like using spaces and (most) special characters in filenames: They are both ways to shoot yourself in the foot; although they can be made to work, they are not worth the hassle. In the case of usernames, there are a lot of programs out there that depend on them in one form or another, and for some they are case sensitive and for others they are not. I'd suggest that you stick to the convention, and only ever use lower case usernames. There are better places to expend your effort.

Edit for clarification: TrueNAS is perfectly happy to act as a file server using whatever (legal) characters the user wants to use in their filenames, and MacOS/Windows clients being served files aren't going to care. My comment about spaces and special chars in filenames is in the context of referencing them from the UNIX shell, or in shell scripts, etc. You can do it, but you have to be careful.
 

Strip

Cadet
Joined
Jan 20, 2024
Messages
2
Thank you for your reply, @gdreade!
You're right, of course. But I come from Windows, so I'd still call this a bug :)
Well, samba seems to handle capitals just fine everywhere else - just not in theese "Home folders". Workaraound executed.
 
Top