Red Hat Enterprise Linux 5 Adding Users

Posted on 2008-11-11
Last Modified: 2013-12-16
Hello Everyone,

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

Question by:deklinm
    LVL 48

    Accepted Solution

    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.
    LVL 14

    Assisted Solution

    by:Deepak Kosaraju
    you can user simple command as
    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
    #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

    LVL 48

    Expert Comment

    Recommend points split between myself and kosarajudeepak

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    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…

    761 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

    9 Experts available now in Live!

    Get 1:1 Help Now