LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo command not working. (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-command-not-working-624219/)

rock.k 02-27-2008 08:43 AM

sudo command not working.
 
Hi
I have Fedora 8 installed on my machine and I'm new to the Linux environment. I tried to modify and add my username to the sudoers list
using this command...

echo 'plain_loginname ALL=(ALL) ALL’ >> /etc/sudoers

Now whenever I use sudo command it gives me syntax error at line 94 in /etc/sudoers.

Please help me recovering the command.

mahmoud 02-27-2008 09:03 AM

edit /etc/sudoers add
username ALL=(ALL) NOPASSWD:ALL
you will see # %sudo ALL=NOPASSWD: ALL add it under it
the nopasswd is if you dont want to be asked to provide a password anytime you use sudo

rock.k 02-27-2008 08:26 PM

Thanks...but few more questions.
 
Hi
Thank you for helping me.
But I have few more questions

1.Every time I update Fedora or install something from repoitory, it tells me to insert fedora dvd. How can I avoid that?

2.How do u install tar.gz files??


All times are GMT -5. The time now is 09:33 AM.