• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2246
  • Last Modified:

Red Hat Enterprise Linux 5 Adding Users

Hello Everyone,

I am very new to RHEL 5.  How do i add local users and assign rights?

Thanks
0
deklinm
Asked:
deklinm
  • 2
2 Solutions
 
TintinCommented:
Depends whether you want to use the GUI or command line.

From the command line, you use useradd, eg:

useradd -m -c "Name of User" username

If you type in

man useradd

you'll see the various options available.
0
 
Deepak KosarajuDevOps EngineerCommented:
you can user simple command as
useradd
if you would like to add this use to diff group other then default group created as username
usermod -G  
If u like to do the same during adding of user then following command
useradd -g  -G  
to add group we use groupadd command
Folllowing are examples

To get more control on user access follow ACL, Attached document contains more details on ACL.

#groupadd test1
#groupadd test2
#useradd user1
(or)
#useradd -g test1 -G test2 user1
 
#If you would like to change after user is added:
#usermod -g test1 -G test2 user1

Open in new window

fs-acl-en.pdf
0
 
TintinCommented:
Recommend points split between myself and kosarajudeepak
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now