Find the answer to your Linux question:
Results 1 to 7 of 7
Hi all I have created a new user on my debian VPS so does the new user automatically have permission to do sudo stuff or if not how do I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    15

    Newbie Debian sudo


    Hi all

    I have created a new user on my debian VPS so does the new user automatically have permission to do sudo stuff or if not how do I give this permission? Is there a command which will verify that a user has the sudo permission?

    Thank you

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,649
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    15
    Quote Originally Posted by elija View Post
    You add them to the sudoers file.
    Ok thanks, does this mean that sudo is now working for this user: sudoers 5.jpg

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,439
    Seems so.
    You are aware, that this user is now effectively a root user?
    You must always face the curtain with a bow.

  6. #5
    Just Joined!
    Join Date
    Sep 2011
    Posts
    15
    Quote Originally Posted by Irithori View Post
    Seems so.
    You are aware, that this user is now effectively a root user?
    Yes I think the next thing is for me to limit this user to specific commands. Anyway can I only edit etc/sudoers if I am root? If so, what happens after I edit /etc/ssh/sshd_config to PermitRootLogin no for security reasons?

    Thanks

  7. #6
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,649
    Quote Originally Posted by Juc1 View Post
    Yes I think the next thing is for me to limit this user to specific commands.
    A good idea unless the user really needs full access

    Quote Originally Posted by Juc1 View Post
    Anyway can I only edit etc/sudoers if I am root?
    Yes

    Quote Originally Posted by Juc1 View Post
    If so, what happens after I edit /etc/ssh/sshd_config to PermitRootLogin no for security reasons?
    Add your user to the sudoers file as a full root user before you do that and use sudo when you want to edit it.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  8. #7
    Just Joined!
    Join Date
    Sep 2011
    Posts
    15
    Quote Originally Posted by elija View Post

    Add your user to the sudoers file as a full root user before you do that and use sudo when you want to edit it.
    Ok thanks but if I should specify particular commands to allow the user in /etc/sudoers, do I also need to specify the permission to edit files?

    So far my etc/sudoers looks like this:

    root ALL=(ALL) ALL
    josoap ALL=(ALL) ALL

    Thank you

Posting Permissions

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