Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Command Line User & Root accounts

Posted on 2003-12-04
8
Medium Priority
?
949 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 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.
Suggested Courses

926 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