nomenclature question - interpreting an instruction
I installed a new program, we'll call it "newprogram", and in the instructions for a separate graphical interface, I read this:
You need root privileges to run NewProgram hence it is recomend to enter the following line into sudoers: %newprogram ALL=(root)NOPASWD:/usr/bin/newprogram Simple, I'm sure, but it's greek to me. Here's my questions: 1. Do I have root privileges? I installed the Linux and I'm the only user. 2. How do you "enter a line into sudoers". Or, what is sudoers? 3. In the actual line, do I actually type "%", or is that supposed to mean something else? 4. I tried to type this exact line, but now I get an error every time I try to run the graphical interface because of the "(". 4a. What should it have been instead of (root)? 4b. Do I have to edit a file to get rid of the error, or will typing the line correctly correct the error? 5. What is the correct way to type this line? Sorry if these questions are so fundamental, but it's only been one day since I installed Linux. The "distro" is Pinguy based on Ubuntu. |
Don't do it!
You are being asked to give anybody authority to run "newprogram" with rights to change/delete anything on your PC. Why not just type Code:
sudo newprogram You shouldn't need to be running programs with administrator rights from a GUI. |
It's not that bad.
Code:
%newprogram ALL=(root)NOPASWD:/usr/bin/newprogram You edit the sudoers file by running visudo (as root), which will bring up that file in an editor (/bin/vi by default) and check that whatever you enter is syntactically valid before updating the /etc/sudoers file. |
Would setuid work here?
|
Quote:
|
Quote:
[no:/home/no] $ sudo newprogram [sudo] password for no: /usr/bin/newprogram: 1: /usr/bin/newprogram: Syntax error: "(" unexpected I've tried uninstalling the program and reinstalling it, but this error still occurs. Where can I find and edit/remove the "("? |
Quote:
visudo: /etc/sudoers: Permission denied Really? |
Quote:
|
Quote:
I think I don't know how to change to root. I assume it's not Cd (root). I'll try the sudo visudo. |
Problem solved! Well, I got the program working. It turned out I had a faulty download and the installation was screwed.
So now the program works perfectly, and without a GUI! I'll start reading a bit more now that I have the setup I was hoping for, because I have much to learn. Grasshopper (aka Rooting) |
This is a good intro to the cmd line http://rute.2038bug.com/index.html.gz
|
Quote:
|
All times are GMT -5. The time now is 05:59 AM. |