Solved

User names under redhat

Posted on 2002-07-20
6
207 Views
Last Modified: 2013-12-15
Help, How can I add user name with more than 8 characters
0
Comment
Question by:mphiri
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

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

Expert Comment

by:jools
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.

J
0
 
LVL 1

Expert Comment

by:dkloes
ID: 7167669
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 19

Expert Comment

by:jools
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.
0
 

Author Comment

by:mphiri
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?
0
 
LVL 1

Accepted Solution

by:
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.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 68
cannot connect to openvpn server 9 74
nagios alerts 3 44
Adding more CPU cores to a Linux VM 5 94
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…

776 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