Find the answer to your Linux question:
Results 1 to 3 of 3
hi guys iam trying to put a user tim that can run any command as root, but can not run commands any other users the file to look in is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    6

    add user to root in /etc/sudoers help


    hi guys iam trying to put a user tim that can run any command as root, but can not run commands any other users

    the file to look in is /etc/sudoers by running this cmd /usr/sbin/visudo

    root ALL=(ALL) ALL ...how would i change this for tim
    Last edited by whatsup1234; 03-20-2013 at 05:18 PM.

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    What's wrong with root, why you want to rename it? It can be done easily, but what's the benefit?

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by whatsup1234 View Post
    hi guys iam trying to put a user tim that can run any command as root, but can not run commands any other users

    the file to look in is /etc/sudoers by running this cmd /usr/sbin/visudo

    root ALL=(ALL) ALL ...how would i change this for tim
    First off you WOULD NOT change this!!!!!!!!!
    You would add Tim with the same ALL=(ALL) ALL. But then this defeats your objective of blocking Tim from running commands from any other user as now Tim has full rights to the whole system.

    A better thing to do would be to allow Tim to execute only the commands you want him to and not give him full root access speaking strictly from a security standpoint.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •