Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


User names under redhat

Posted on 2002-07-20
Medium Priority
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.
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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 60 total points
ID: 7168984
I used the useradd utility.  To take the defaults:

useradd thisisalongname

Then run passwd to set the password.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

618 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