Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no root #3

Open
magnetophon opened this issue Dec 19, 2014 · 7 comments
Open

no root #3

magnetophon opened this issue Dec 19, 2014 · 7 comments

Comments

@magnetophon
Copy link

Would it be possible to make it run without root?

@conn
Copy link

conn commented Jan 18, 2015

change the permissions of all the executables associated with connman and/or change the group of the user you're running it with to something that is able to handle network connections?

@taylorchu
Copy link
Member

the dir is owned by root.

On Sat, Jan 17, 2015 at 7:26 PM, darlinger [email protected] wrote:

change the permissions of all the executables associated with connman
and/or change the group of the user you're running it with to something
that is able to handle network connections?


Reply to this email directly or view it on GitHub
#3 (comment)
.

@conn
Copy link

conn commented Jan 18, 2015

you can't just change the group that owns it?
chown -R root:adm [dir]

@Manouchehri
Copy link

Both connmanctl and connman-ui-gtk are able to change WiFi networks without root on Arch Linux, so it seems that it should be possible without much trouble?

@magnetophon
Copy link
Author

Sure it's possible, and even easy.

I was just suggesting it'd be done in the main program.

On Wed, Feb 25, 2015 at 04:56:28AM -0800, David Manouchehri wrote:

Both connmanctl and connman-ui-gtk are able to change WiFi networks without root on Arch Linux, so it seems that it should be possible without much trouble?


Reply to this email directly or view it on GitHub:
#3 (comment)

@Rergis
Copy link

Rergis commented Dec 1, 2016

maybe is too late for answer (all here seems dormant), but i faced and solved this trouble recently.

in /etc/dbus-1/system.d/connman-nmcompat.conf i changed (as root):

<deny send_destination="org.freedesktop.NetworkManager"/>

to:

<allow send_destination="org.freedesktop.NetworkManager"/>

when i realized that could run connmanctl from terminal without errors, got rid of these lines in connman_dmenu script:

if (( EUID != 0 )); then
dmenu_notify 'please run it as root'
exit 1
fi

Now, connman_dmenu runs without root for me.

@taylorchu
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants