Solved

useradd command

Posted on 2006-11-30
6
979 Views
Last Modified: 2013-12-16
We have linux machine as a mail server.. and we are using windows XP as a client machine..(Outlook express)
i want to create a new user..with hyphen like "abc_d"
so that we can use this id as                     abc_d@domain.com

please advise me what is command to create the id..

i am using some other id like with out any hyphens.. it is ok.. but i want to create user with having hyphens..

this is command what iam using with out hyphens.. user id  "abc"

# useradd -c "staff" -u 123 -g 500 -m abc -d /home/abc -s /bin/bash

but i want to create the user with "abc_d"



0
Comment
Question by:expertblr
6 Comments
 
LVL 3

Accepted Solution

by:
bryanlloydharris earned 84 total points
ID: 18047838
What about the adduser command?  Just type adduser by itself and see if you have it.  If you have it, just answer the questions and it will add your user.
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 83 total points
ID: 18052260
I'm sorry - I don;t understand Your problem.
Just use the username "abc_d". Hint: don't use -u option.
bryanlloydharris: what brand of Linux You use - mine useradd is not asking for anything?
0
 
LVL 3

Assisted Solution

by:windbringer
windbringer earned 83 total points
ID: 18065061
The question is a little bit intriguing for me.
First for me hyphen is something like this - not like this _ so the user would be abc-d not abc_d.
Second it would help  if you tell the problem with useradd command. Meanining what command did  you give and what error did you get.
Anyway it is good to check if that user id you want to create exists (the user-id is from the -u option and you can check it looking at the /etc/passwd and /etc/shadow files).  And if the username is not accepted you can try using single quote around the username which prevents that the username to be interpreted as an option.
ravenpl: I use Slackware and there adduser it is a script which asks you different options you want for the user.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error Message during CentOS 7 Minimal Install 3 43
Securing Azure Oracle instance of Linux VM 4 58
CENTOS DHCP Server / PXE/TFTP 14 77
error log using ftp 7 41
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

777 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