• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

User names under redhat

Help, How can I add user name with more than 8 characters
0
mphiri
Asked:
mphiri
  • 3
  • 2
1 Solution
 
dkloesCommented:
What Linux are you running?  At least under 7.1, I just added a user with the name thisisalongname with no problem.
0
 
joolsCommented:
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.

J
0
 
dkloesCommented:
jools:
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.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
joolsCommented:
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.
0
 
mphiriAuthor Commented:
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?
0
 
dkloesCommented:
I used the useradd utility.  To take the defaults:

useradd thisisalongname

Then run passwd to set the password.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now