LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 12-14-2010, 12:54 PM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Rep: Reputation: 34
Don't have root priveliges as system administrator


Hello forum

I am running Gentoo kernel version 2.6.35-r12 (and the latest stage 3 tarball as of this writing) and Gnome 2.30.2 (full install) on my Intel based laptop. I have created myself as a user with administrative privileges but I can't access any of my programs that require root access such as users and groups, and can't even set the time. I keep getting a message that says I (the user) am not allowed to access the system configuration. It treats me as if I were just a regular desktop user, not the administrator. I can launch these programs in a terminal using the gksu command (asking for my root password) but I don't want to use a terminal to launch my programs. If I log into Gnome as root instead of as myself, I have total access to everything.

This is a fresh install with the latest software and I am thinking it might be a new bug that hasn't been discovered by many people yet.

Can anyone help me?

Thanks in advance,
Roy

Last edited by rrrssssss; 12-15-2010 at 04:04 PM.
 
Old 12-15-2010, 02:57 AM   #2
lunitix
LQ Newbie
 
Registered: Apr 2010
Distribution: Debian
Posts: 16

Rep: Reputation: 2
Hi there,

What do you mean , you created yourself with administrator privileges ? Anyway you can use sudo to launch whatever application you need.Edit the /etc/sudoers file and add your account :

something like
your_username ALL=(ALL) ALL

For more check out here http://www.sudo.ws/
 
1 members found this post helpful.
Old 12-15-2010, 05:59 AM   #3
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
Hello lunitix

I made myself the user with administrator privileges by using the following command as root before I installed Gnome:

Quote:
useradd -m -G users,audio,cdrom,games,portage,usb,plugdev,video,wheel -s /bin/bash roy
After I installed Gnome I logged into Gnome as a root user and opened the "users and groups" program under Administration, clicked on Advanced Settings, clicked on the "User Privileges" tab, and put a check mark where it said "Administer the system".

But anyway, I tried putting in the line you suggested in the sudoers file, but it did not work:

Quote:
roy ALL=(ALL) ALL
I *think* my problem is that I need a password prompt to pop up whenever I try to open a program that needs to be ran as root. That way I can put in my root password and the program should launch. If this is the case, how can I accomplish that?

Or maybe I need to emerge a package.

I'll keep trying.

Any help will still be appreciated.

Roy

Last edited by rrrssssss; 12-15-2010 at 06:14 AM.
 
Old 12-15-2010, 06:17 AM   #4
Barry1
LQ Newbie
 
Registered: Dec 2010
Location: Germany
Distribution: Debian GNU/Linux, Fedora Project and OpenSUSE LINUX
Posts: 22

Rep: Reputation: 1
Quote:
Originally Posted by rrrssssss View Post
But anyway, I tried putting in the line you suggested in the sudoers file, but it did not work:
Hi,

what in detail did not work?
Try a command like "sudo mount ***"
Good luck and greets

Barry1
 
Old 12-15-2010, 06:52 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What is the supposed/usual effect of checking "Administer the system"?
 
Old 12-15-2010, 06:55 AM   #6
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
What I meant with I said "it still did not work" is that after I put that line in the sudoers file (roy ALL=(ALL) ALL), the original problem did not go away, which is I can not open a program that requires root access and I can't even mount any partitions because that requires root access. I get a message saying I do not have administrative privileges.

But I ran the command Barry1 suggested and got this result:

Quote:
roylocalhost roy # sudo mount
/dev/sda2 on / type ext3 (rw,noatime,commit=0)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
Help is still appreciated,
Roy

Last edited by rrrssssss; 12-15-2010 at 06:56 AM.
 
Old 12-15-2010, 06:58 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Quote:
roylocalhost roy # sudo mount
mount can be issued by all users, mounting only by root.
And you are root here.
open a terminal as normal user
type
Code:
$ sudo fdisk -l
Kind regards

Last edited by repo; 12-15-2010 at 07:01 AM.
 
Old 12-15-2010, 07:03 AM   #8
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
To answer the question as to what the following means:

Quote:
What is the supposed/usual effect of checking "Administer the system"?
To me it means a regular user such as myself is able to edit critical system files as root if I use the command "su". It also means I am able to install new packages. It also means I am able to mount partitions as long as I am root. I can indeed do all of this through a terminal window with no problem. But if I try to open a program that requires root privileges from the start menu, I am supposed to get a password prompt asking me to submit my root password but I get no such prompt so I can not open up any programs that require root access simply by selecting it from the start menu. Instead I get an error message saying I do not have administrative privileges.

Help is still appreciated,
Roy

Last edited by rrrssssss; 12-15-2010 at 07:05 AM.
 
Old 12-15-2010, 07:10 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
But if I try to open a program that requires root privileges, I am supposed to get a password prompt asking me to submit my root password but I get no such prompt so I can not open up any programs that require root access simply by selecting it from the start menu.
To open a GUI as root, try
Code:
gksudo whatever_you_want_to_open
Kind regards
 
1 members found this post helpful.
Old 12-15-2010, 07:24 AM   #10
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
Quote:
gksudo whatever_you_want_to_open
The above command does indeed work for me and always has, but that is not my problem. What I want to be able to do is start a program from the start menu that requires root access so that a password prompt appears, asking me to put in my root password but I get *no* password prompt but instead I get a message saying I am not the administrator. I need a password prompt.

Help is still appreciated,
Roy
 
Old 12-15-2010, 07:30 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to reinstall gnome-keyring.

Kind regards
 
Old 12-15-2010, 04:03 PM   #12
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
Hello again,

Re-installing gnome-keyring did not help but below is what did help:

The first thing I did was ran a world update which upgraded nine packages but I can't think of what they were right now. Then I enabled the policykit use flag in Gnome and re-emerged it, which caused polkit-gnome to be installed. I'm not really sure if these steps were necessary, however because the problem persisted after I finished.

I then logged into the Gnome GUI as root since that is the only way I have to make administrative changes besides using the terminal, and I removed the check mark from where it said "give administrative privileges" in the users and groups utility, and then I logged back into Gnome as myself, the regular user. Then I repeated the above step again but this time I put the check mark back in place for the second time, and when I logged back into Gnome the second time as a regular user, everything worked as it should. I guess that check mark does not initialize everything the first time it is put in.

Cheers,
Roy

Last edited by rrrssssss; 12-15-2010 at 04:45 PM.
 
Old 12-30-2010, 03:33 PM   #13
rrrssssss
Member
 
Registered: Mar 2005
Posts: 288

Original Poster
Rep: Reputation: 34
Update

Update

I discovered what did fix my problem. I was not a member of the stb-admin group. It took me a while to realize it because I had to reboot my system for the changes to take place. Simply logging out and back in did not do it.

All the best,
Roy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What donīt you like about Linux? fcintron Linux - General 29 11-13-2010 04:33 AM
Does this site mean anything to us…I don’t know u tell me?? Rabecca Joyce General 1 05-15-2007 01:42 AM
Does this site mean anything to us…I don’t know u tell me?? Rabecca Joyce General 1 03-01-2007 04:39 AM
How to chown -R don.lab * for don.users Hans Zilles Linux - Newbie 3 11-15-2005 07:53 AM
Suse dontīt boot X; donīt ask for root passwd, YAST donīt work... carrie Linux - Newbie 4 10-08-2004 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration