gksudo mousepad fails XUBUNTU

Asked by WacoJohn

I am trying to get firestarter to run when I boot up Xubuntu. I read the instructions at http://www.fs-security.com/docs/faq.php#trayicon as follows:

Giving the user permission to launch Firestarter without the root password
In order for a regular user to be able to launch Firestarter, the user must be given additional privileges. Edit your /etc/sudoers file in your favorite text editor and add the following line at the end:
username ALL= NOPASSWD: /usr/bin/firestarter
Simply replace username with whatever your login is.

I did that with gksudo mousepad the text editor in Xubuntu. Then there were other instructions on getting firestarter to run on boot up .. but they did not seem to apply. Instead, I put it in Settings Manager under Autostarted Aps .... "applications, settings, settings manager, autostarted apps

add
... then in the "command field" paste gksu /usr/sbin/firestarter
Put whatever you like in "name" and "description"
Press OK
Click Close

and it does not work. I would like to UNdo everything I did, .. but now, gksudo mousepad does not open mousepad .. just goes back to the terminal prompt. So, I cannot edit sudoers. Clicking on Firestarter from Applications button does nothing. No icon on main panel. Don't know if firestarter/firewall is running or not (there is a simple command to find out, but I forgot what it is). I do notice on BOOT, firewall - firestarter is getting loaded "OK".

Specifically, I need to know why gksudo mouspad does not open mouspad (privilaged) anymore, like it did the first time I edited sudoers. Want to fix 'that' and undo everything and try again.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
WacoJohn
Solved:
Last query:
Last reply:
Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#1

Hello, what about if you type sudo mousepad in terminal?

It's different between gksu and sudo

Revision history for this message
WacoJohn (johnbooth) said :
#2

thank you for the reply:

sudo mousepad
>>> sudoers file: syntax error, line 25 <<<
sudo: parse error in /etc/sudoers near line 25

I think I have somehow locked myself out when I edited sudoers with that one line. I can't do ANYTHING with sudoers now .. cannot CAT it, can't open it with any editor, can't enter a root password anywhere.

owner@ubuntu:/etc$ su
Password:
su: Authentication failure
owner@ubuntu:/etc$

don't seem to do any kind of root actions.

Revision history for this message
WacoJohn (johnbooth) said :
#3

when I first edited it, .. the file had some comments about moving the existing line down ... but I didn't, .. I just added the line per instructions. I think that might have something to do with it.

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#4

Ever you try to edit it with live cd?
Boot to live cd, such as ubuntu or xubuntu cd, and try to edit it ....

Thank you

Revision history for this message
WacoJohn (johnbooth) said :
#5

I had to do something ... have a timetable to get this computer presentable, .. I reinstalled Xubuntu. Thank you all for your contributions.