LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-18-2009, 10:49 AM   #1
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Rep: Reputation: 15
Can't unlock some administrative tasks in Ubuntu 8.04


Hi,

When I setup the system, I had no problems going into System-Administration-Network and hitting UNLOCK and typing password.
Now it is grayed out and UNLOCK tab does not respond.

My username does belong to the root group.

Has anyone seen this happen before? What could be the cause? Is it possible I changed permissions to folder or something by mistake?

Any help would be greatly appreciated. Can't login as root in Ubuntu, can I change the newtork settings any other way?
 
Old 08-19-2009, 04:23 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by jonette20 View Post
Hi,
My username does belong to the root group.

Has anyone seen this happen before? What could be the cause? Is it possible I changed permissions to folder or something by mistake?

Can't login as root in Ubuntu, can I change the newtork settings any other way?
If you have enabled the root account in Ubuntu, remember, this is not recommended:
https://help.ubuntu.com/community/RootSudo
My username does not belong to the root group. I use sudo as recommended. For reference, my username belongs to these groups:
Quote:
adm dialout cdrom plugdev lpadmin admin sambashare
Type the command groups to see what groups you are a member of.
It is certainly possible that you have changed permissions to system files and directories, especially if you have been running as the root user.
Are you able to run commands with sudo? For example:
Code:
sudo apt-get update
If you are unable to run commands with sudo, see this:
http://www.psychocats.net/ubuntu/fixsudo
At this point, you may be better off disabling the root account as described here:
http://www.debianadmin.com/enable-an...-password.html

Last edited by tommcd; 08-19-2009 at 04:28 AM.
 
Old 08-20-2009, 09:52 AM   #3
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Original Poster
Rep: Reputation: 15
Hi,

Yes, I am able to run apt-get command. I don't use the terminal as user root. I just added my username to the root group so that I don't have problems running jobs that show root as owner. I don't know if this is a best practice or not, but until now, I haven't had any issues.
 
Old 08-20-2009, 10:00 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,286

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
^ well that means you have access to what root allows rea/write/execute for the group (the owner has there own set of permissions just like ,you mite already know, the world has their own set of permissions)

Last edited by schneidz; 08-21-2009 at 09:31 AM.
 
Old 08-21-2009, 02:03 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by jonette20 View Post
Any help would be greatly appreciated. Can't login as root in Ubuntu, can I change the newtork settings any other way?
What are the permissions of: /etc/network/interfaces file? Run the command:
Code:
ls -l /etc/network/interfaces
to list them. For reference, they should be:
Code:
-rw-r--r-- root root
If you can't manage to edit network settings any other way, you can edit that file to change network settings. Be sure to back it up first.
You could also try installing wicd to manage your network. This will remove network manager.
You could also try reinstalling network manager and perhaps it will set the permissions right.
I would recommend removing your username from the root group. This is a security risk. As you have discovered, this can lead to problems.

Last edited by tommcd; 08-21-2009 at 02:05 AM.
 
Old 08-21-2009, 11:58 AM   #6
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Original Poster
Rep: Reputation: 15
Hi All,

Yes,my permissions on /etc/network/interfaces was the same has yours.
When I tried to open the network via the terminal "network-admin", I received an error msg
Quote:
Polkit-read-auth helper: needs to be setgid polkituser


I have found a solution for my problem. It worked for me to do a reinstall of first policykit

"apt-get install --reinstall policykit" and then do the same for hal,
"apt-get install --reinstall hal"
 
Old 08-22-2009, 11:21 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,286

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
^
Quote:
Originally Posted by tommcd View Post
What are the permissions of: /etc/network/interfaces file? Run the command:
Code:
ls -l /etc/network/interfaces
to list them. For reference, they should be:
Code:
-rw-r--r-- root root
If you can't manage to edit network settings any other way, you can edit that file to change network settings. Be sure to back it up first... This is a security risk. As you have discovered, this can lead to problems.
for future reference those rw-'s should be read as
3 groups of rwx's
in this case: rw- means the owner has read write but not execute.
r-- means that the group has read but not write or execute.
r-- means that the world has read but not write or execute.
the owner is root and the group is root.
look at the man pages for chown, chgrp, chmod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Auto-Unlock Keyring Manager In Ubuntu Intrepid LXer Syndicated Linux News 1 05-03-2009 03:01 PM
Show list of running tasks from services / init.d in Debian / Ubuntu? browny_amiga Linux - General 1 01-23-2009 05:00 AM
LXer: LPI Exam Training: Administrative Tasks LXer Syndicated Linux News 0 07-12-2007 09:46 AM
Access CUPS web interface "Administrative Tasks" ALInux Linux - Networking 2 05-24-2006 02:55 AM
Administrative prohibition Red Squirrel Linux - Software 0 06-26-2004 02:07 AM

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

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

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