PDA

View Full Version : No Admin Priviledges


DrJ
March 10th, 2009, 02:37
I recently made a clean install of Gnome 2.24, xorg 7.4 (both from ports) and 7-STABLE (as an update of a 7.1-R disk) on an old, existing box. I have no access to Sysadmin functions (the menus are in gray). Usually installing gnomesu has rectified the problem, but not this time. How do I get this to work? Thanks!

SirDice
March 10th, 2009, 10:18
You need to be a member of the wheel group to be able to su.

DrJ
March 10th, 2009, 17:07
The user is a member of wheel. This is a gnome-only issue.

DrJ
March 10th, 2009, 17:57
Let me expand, since it seems I was not clear.

I am unable to access the commands in the System-> Administration menus because the items (in "Services" for example) are shown in gray. Commands from a terminal window (such as "su", "sudo" and "gnomesu") all work as they should. Setting the various options in rc.conf works, as you would expect.

It is simply that these items are not accessible from within Gnome. It would seem to be a permissions issue; in the past gnomesu would open a box requesting the root password. Once entered, the services (for example) could be selected from the menu. This appropriate behavior no longer happens.

I should add that this behavior has come and gone since I started using Gnome back in the 2.4 days. Usually installing gksu cured it, but not this time. Hence my question.

DrJ
March 13th, 2009, 02:55
To follow up on this post, it turns out the issue was the start-up daemons I used for Gnome. Traditionally I've not cared much for gdm, so I started all the other ones and invoked gnome from the console. That does not start a ConsoleKit session which is necessary for the admin functions.

Bottom line: if you want to use all of Gnome, use gdm through gnome_enable="YES" in rc.conf. Using the usual other daemons (avahi, hal dbus, etc) does not do it anymore.

SIFE
April 16th, 2009, 19:58
add this line to sudoers :
yuorname ALL=(root) ALL
where yourname is your USER .

DrJ
April 16th, 2009, 20:03
sudoers was set up to allow all wheel group members to be su. I'm a member of wheel.

SirDice
April 16th, 2009, 21:28
sudoers was set up to allow all wheel group members to be su. I'm a member of wheel.

Sudoers has nothing to do with su.

DrJ
April 16th, 2009, 21:30
Well, yeah, but I tend to treat them the same. Yes, I know the difference.