Find the answer to your Linux question:
Results 1 to 4 of 4
i have debian 4.0 installed in qemu, and i installed sudo using aptitude. but when i go to use sudo for example: Code: cody@cody-debian:~$ sudo aptitude update I get this: ...
  1. #1
    Linux Newbie thesimplecreator's Avatar
    Join Date
    Jun 2007
    Location
    washington , USA
    Posts
    229

    [SOLVED] help setting up sudo



    i have debian 4.0 installed in qemu, and i installed sudo using aptitude.
    but when i go to use sudo
    for example:
    Code:
    cody@cody-debian:~$ sudo aptitude update
    I get this:
    Code:
    cody is not in the sudoers file. This incident will be reported.
    How do i add the user cody to the "sudoers file"?

    thanks
    Microsoft isn't evil, they just make really crappy operating systems.
    Linus Torvalds

    Personal and politically centrist blog.--->
    http://www.deathnerd.com

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,905
    Did you try something like this?

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Execute this
    Code:
    su -
    echo "cody ALL=(ALL)  ALL" >> /etc/sudoers
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Newbie thesimplecreator's Avatar
    Join Date
    Jun 2007
    Location
    washington , USA
    Posts
    229
    Thank you guys, it is now working
    Microsoft isn't evil, they just make really crappy operating systems.
    Linus Torvalds

    Personal and politically centrist blog.--->
    http://www.deathnerd.com

Posting Permissions

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