Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-25-2010, 06:59 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Rep:
|
Not authorized to control networking in SSH console
I want to control Network manager from the command-line. This worked well enough in Ubuntu 10.04 (with cnetworkmanager, nmcli is another possible choice).
Since the upgrade to Ubuntu 10.10 however, a DBus exception is raised when I attempt to activate a connection from within a SSH terminal:
Code:
org.freedesktop.NetworkManager.PermissionDenied: Not authorized to control networking.
|
|
|
|
11-26-2010, 12:13 AM
|
#2
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
What user are you logged in as?
|
|
|
|
11-26-2010, 05:05 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Original Poster
Rep:
|
A user who is administrator.
When the command is issued while he is logged in gnome, there is no authorization problem.
When he tries it from another machine over SSH (logged into the same account), it fails since the upgrade to 10.10
|
|
|
|
11-26-2010, 08:07 PM
|
#4
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
Quote:
Originally Posted by wichiff
A user who is administrator.
When the command is issued while he is logged in gnome, there is no authorization problem.
When he tries it from another machine over SSH (logged into the same account), it fails since the upgrade to 10.10
|
It sounds like the user is not a member of the right groups.
In most distributions, desktop users who log in directly to the machine are automatically given the privileges of several groups. When logging in remotely, these privileges are not granted unless the user is actually a member of those groups.
What groups is the user a member of?
|
|
|
|
11-27-2010, 06:53 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Original Poster
Rep:
|
groups User:
adm dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin netdev admin sambashare davfs2
The list is in the same in SSH terminal as in Gnome terminal.
|
|
|
|
11-27-2010, 08:30 PM
|
#6
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
|
|
|
|
11-28-2010, 05:44 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Original Poster
Rep:
|
Have seen something similar a couple of days ago, and added this to /etc/dbus-1/system.d/NetworkManager.conf:
Code:
<policy group="network">
<allow send_destination="org.freedesktop.NetworkManager"/>
<allow send_interface="org.freedesktop.NetworkManager"/>
</policy>
This does not solve the problem.
As to starting nm-applet from the command-line, it works -- including from the ssh console, provided I export DISPLAY=:0.0
|
|
|
|
11-28-2010, 11:00 AM
|
#8
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
According to your answer about the groups the user is in, they are not a member of the "network" group.
Quote:
groups User:
adm dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin netdev admin sambashare davfs2
|
Also, according to the XML you just posted, the network group is the one that they need to be in.
Have you tried adding them to this group?
Last edited by foodown; 11-28-2010 at 11:08 AM.
|
|
|
|
11-28-2010, 11:48 AM
|
#9
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Original Poster
Rep:
|
Good idea, but:
Code:
adduser: The group `network' does not exist.
|
|
|
|
12-12-2010, 04:37 PM
|
#10
|
|
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu
Posts: 11
Original Poster
Rep:
|
The connection can be activated with root privileges (`sudo nmcli').
I can't figure out how to edit
Quote:
|
/etc/dbus-1/system.d/NetworkManager.conf
|
to let one user control networking from the command-line. Do I need to edit the policy context="default" block ?
Last edited by wichiff; 12-12-2010 at 04:39 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|