Red Hat Bugzilla – Bug 59627
Usernames with spaces cause user-visible error on login
Last modified: 2014-03-16 22:25:31 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104
Description of problem:
/etc/profile contains a number of places where variable expansion - particularly
of user and group names - with spaces cause error messages.
This was exposed using winbind and the latest samba packages.
Adding extra "'s around `id *` calls fixes this.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 14 ]; then
(Just a bugzilla report against a message I read on the samba list)
As an extension to this, including files from /etc/profile.d/ doesn't look
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Setup a user name with a space
Actual Results: Doesn't reset the umask correctly.
Expected Results: It should
Usernames with spaces are generally discouraged.
Fixed in 2.5.8-1