Linux usernames with capital letters not working

Posted on in Categories , last updated November 28, 2006

Q. Why Linux usernames with capital letters are not working? When I run adduser command I get bad username or Use the `–force-badname’ message. I am using Debian Linux.

A. You should always try to avoid Linux usernames with capital letters in them. Many server program such as FTP server or sendmail makes no difference between a user name ‘Vivek’ and ‘vivek’. Further many windows clients such as OE or IE make no distinction between capital letters.

So ftp username ftp:[email protected] or ftp:[email protected] or email id [email protected] or [email protected] treated as same.

Hence most Linux distro will disable Linux usernames with capital letters in them via adduser or other gui tools such as redhat-config-users (fedora core/centos/RHEL).

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment