Solved

Command Line User & Root accounts

Posted on 2003-12-04
8
942 Views
Last Modified: 2013-12-27
What is the syntax for adding generic users and Root access users accounts at the command line?
0
Comment
Question by:CMILLER
  • 5
  • 3
8 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9876509
useradd
0
 

Author Comment

by:CMILLER
ID: 9876516
can you give me a example for both
0
 
LVL 24

Accepted Solution

by:
shivsa earned 250 total points
ID: 9876529
useradd -c "User comment" -d /home/newuser -g group -m -k /etc/skel -s /bin/sh newuser

/etc/skel contains standard profiles etc - you can set one of these up for each user type - eg:

/etc/skel/finance/
/etc/skel/admin/

similar things can be done with usermod for existing users.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 24

Expert Comment

by:shivsa
ID: 9876545
for  root access user account.

useradd -u 1 -o -g 0 -d / -s /bin/csh su2    (this command will create a user su2 whose user id is 1.He is not exactly the su , but have root access - above all users except su.)
0
 

Author Comment

by:CMILLER
ID: 9876600
useradd -c "User comment" -d /home/newuser -g group -m -k /etc/skel -s /bin/sh newuser

in the -g group, what do I need to replace group with or what are all the standard groups
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9876648
cat /etc/group
will list all the groups avaiable on your system.
u can add your users to a specific group.
like if u have stuff group u can put all the users to that group.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9876655
groupadd is command to add a new group, if u want to a new group too.
0
 

Author Comment

by:CMILLER
ID: 9877223
Thanks
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

821 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