[Samba] Username case mangling: Linux username is mixed-case,
Samba returns lower-case
Chris Smith
smb23 at realcomputerguy.com
Mon Mar 31 20:55:09 GMT 2008
On Monday 31 March 2008, Steve Briggs wrote:
> I see I'm not the first to observe this change:
> http://www.mail-archive.com/samba@lists.samba.org/msg85076.html
That's my post and was resolved as I stated - but that server uses
winbind to authenticate to an NT PDC. And despite the initial problem
it was probably for the best as with Windows not being case sensitive
in regards to usernames the user may have logged on with different case
models causing multiple directories to be made and not having access to
the ones made under the other "spellings".
> Certainly, standard
> tools let you create mixed-case usernames without complaint.
Not all standard tools will allow for mixed-case usernames.
From Gentoo's "man useradd":
==============================================
CAVEATS
<snip>
Usernames must begin with a lower case letter or an underscore, and only
lower case letters, underscores, dashes, and dollar signs may follow.
In regular expression terms: [a-z_][a-z0-9_-]*[$]
==============================================
Gentoo's useradd script will not allow the creation of a username
beginning with an uppercase letter, although it can clearly be done the
manual way by editing the proper files.
Although Debian, and others do not adhere to this same strictness. And
their same-named standard tools will allow for mixed-case usernames.
It seems that with Windows usernames the conversion of %U to small case
is quite helpful but with Linux usernames it can be a problem.
It appears that possibly the "username level" parameter might help in
your case. From smb.conf: "This parameter is needed only on UNIX
systems that have case sensitive usernames", although it does seem
badly worded (as UNIX systems, AFAIK, do have case sensitive usernames)
and maybe should be written as "This parameter is needed only on UNIX
systems that have mixed-case usernames".
--
Chris
More information about the samba
mailing list