gksu with multiple users

Questions about applications and software
Forum rules
Before you post please read this

gksu with multiple users

Postby muffin on Sun Mar 24, 2013 9:49 am

Hello,

I'm having trouble setting up a new user with full administrative rights. (This is on a fresh install of LMDE 201303 Cinnamon 64-bit.) The user is a member of the sudo and adm groups.

The problem seems to boil down to the fact that gksudo and sudo ask for the user's password (which works fine), but gksu asks for "the administrator password" and only works with the password of user 1000. This means that...
- the first user, uid 1000, can run everything just fine.
- the new user, uid 1001, CAN use sudo and gksudo to escalate privileges, eg. within a terminal. All of these work fine, asking for the user's password:
Code: Select all
$ sudo su
$ sudo gufw
$ gksudo gufw

- BUT, the new user CANNOT run Software Manager or Root Terminal (which is called with gksu). To prove that it's gksu/gksudo that's the problem, this:
Code: Select all
$ gksu gufw

...asks for "the administrative password", but I would expect it to ask for the user's password. Especially as gksudo is symlinked to gksu!

What am I missing? Is there any way to get gksu to accept the new user's password, or else can I edit the Cinnamon menu to call Software Manager with gksudo instead? (I guess as a followup question - how do I edit the 'Administration' sub-menu, as it doesn't show up if I right-click Menu > Edit Menu?)

Thanks in advance....

- m
muffin
Level 1
Level 1
 
Posts: 6
Joined: Wed Dec 26, 2012 4:45 pm

Linux Mint is funded by ads and donations.
 

Re: gksu with multiple users

Postby renatov on Wed Mar 27, 2013 1:30 am

Is the user in sudo group and is /etc/sudoers properly configured to concede privilege to all users in sudo's group? If yes, I know it's not a definitive sollution, but other users will be able to run administrative programs using sudo command in terminal - at least while you manage to fix the problem. For example:

Code: Select all
$ sudo synaptic
User avatar
renatov
Level 2
Level 2
 
Posts: 62
Joined: Mon Mar 25, 2013 8:45 am

Re: gksu with multiple users

Postby muffin on Tue Apr 02, 2013 1:15 pm

Thanks for your post renatov; sudo is configured correctly (and the user can sudo as you suggest), but it's just gksu that behaves differently.

The trouble is I need a desktop which I can distribute to people a fair distance away, which they can administer without my support - so whilst the workaround would be ok for a single-user PC, it doesn't really work in my case. That means I either need gksu to work properly and accept the *user* password, OR edit the menu to call mintinstall using gksudo instead. But I don't seem to be able to do either of those with LMDE.

I can't replicate the issue on the main, LTS edition (Maya MATE, haven't had a chance to test Nadia or Cinnamon yet), so I'm guessing this is LMDE-specific behaviour...
muffin
Level 1
Level 1
 
Posts: 6
Joined: Wed Dec 26, 2012 4:45 pm

Re: gksu with multiple users

Postby DrHu on Tue Apr 02, 2013 1:54 pm

Ok, so what comes immediately to mind is an edit of the /etc/sudoers file to include permission to run that program for those other users
https://help.ubuntu.com/community/Sudoers
--perhaps aliases, command or other! will manage it
User avatar
DrHu
Level 16
Level 16
 
Posts: 6710
Joined: Wed Jun 17, 2009 8:20 pm


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 4 guests