Solved

useradd command

Posted on 2006-11-30
6
977 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

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 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…
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now