User names under redhat

Posted on 2002-07-20
Last Modified: 2013-12-15
Help, How can I add user name with more than 8 characters
Question by:mphiri
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 7166889
What Linux are you running?  At least under 7.1, I just added a user with the name thisisalongname with no problem.
LVL 19

Expert Comment

ID: 7167655
I think you may find that only the first 8 chars are recognised. I think this is the same with other *nix platforms as well.


Expert Comment

ID: 7167669
thisisalongname user account is stored with this name in the /etc/passwd file and the entire name is used to login (per my previous comment).  Still would like to know what Unix mphiri is using.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

LVL 19

Expert Comment

ID: 7167688
OK, it has been a long time since I did anything with userid anyway.

mphiri may be using an older version of unix (login) that only looks at the first 8 chars but as you say, knowing what they use will help.

Author Comment

ID: 7168708
I am running redhat 7.2. dkloes seems to be on the right track. do I need to edit /etc/passwd to add these long file names?

Accepted Solution

dkloes earned 20 total points
ID: 7168984
I used the useradd utility.  To take the defaults:

useradd thisisalongname

Then run passwd to set the password.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question