Linux usernames with capital letters not working

last updated in Categories ,

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://vivek@ftp.box.com or ftp://Vivek@ftp.box or email id Vivek@box.com or vivek@box.com 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, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):