Solved

Command Line User & Root accounts

Posted on 2003-12-04
8
943 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
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…

839 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