How to give users the root permission.

Posted on 2012-08-15
Last Modified: 2012-08-28
Hello all,
i would like to assign the user with root permission. However, I have googled it but could not find any helpful resource. Please give me some hints. thanksk
Question by:dongocdung
    LVL 10

    Expert Comment

    LVL 4

    Assisted Solution

    You can use:
    useradd -ou 0 <accountName>

    Open in new window

    This will add a user with a non-unique UID which you are specifying as UID 0 (root).

    As always, be careful as the root account isn't something that should be used often nor given out frequently due to its power.
    LVL 13

    Assisted Solution

    I don't recommend treating a user as root. Just place him in the sudoers file, then he gets enough permission to do everything. Root permissions are to much power.
    LVL 31

    Assisted Solution

    You should use sudo.  It is a bad idea to give root permissions to a user.  Theoretically, if you go on /etc/passwd  file and modify the UID to 0, it would make it act like root.
    LVL 34

    Assisted Solution

    by:Duncan Roe
    Having 2 entries with the same UID in /etc/passwd is an error. User 0 is root, end of story.
    You need to tell those users who need to know, what is the root password. Alternatively give them access via sudo if that will be acceptable to your organisation.
    LVL 19

    Accepted Solution

    You want to give a user root access!!?

    Tell them NO!

    or ask what they specifically want access to and only allow access to that after their manager has approved the access. You will need to modify /etc/sudoers carefully amd do not allow blanket sudo access or they might just sudo /bin/bash.

    You can assign users a list of commands to run, follow the examples in the link;

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    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…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    730 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

    15 Experts available now in Live!

    Get 1:1 Help Now