Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I get Wicd to not ask for root pw? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Mon Jul 19, 2010 3:25 pm    Post subject: How do I get Wicd to not ask for root pw? [SOLVED] Reply with quote

I have a laptop I've fixed up for my mom. I got rid of Windows and put Gentoo on it. I'm using Wicd. When I log in, it asks for the root password to continue. Is there any way to have Wicd not need the root password? I want it to start up and not bother the user about it. The user should also be able to switch to another access point without needing the root password. How do I do all this? Is there a group I should create or add regular users to?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Thu Jul 22, 2010 2:21 am; edited 1 time in total
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Jul 19, 2010 3:54 pm    Post subject: Reply with quote

Use the init script.

rc-update add wicd default
/etc/init.d/wicd start

And it shouldn't ask you password anymore.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Mon Jul 19, 2010 4:48 pm    Post subject: Reply with quote

I've done this and it still asks for the root password when I log in as a regular user.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Mon Jul 19, 2010 5:15 pm    Post subject: Reply with quote

audiodef, just a thought.

What triggers the request for the password? You are I assume in a kde or gnome. Go to the icon for wicd if you can, add it to a panel or the desktop, and right click and access the properties. See if it has a kdesu or gksu in the line for launching it. If so, you can remove it.
Otherwise, find the executable,
ls -ld /file.

Consider
chmod to your desire.
_________________
idella4@aus
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Mon Jul 19, 2010 5:28 pm    Post subject: Reply with quote

I use XFCE, actually, so right-clicking doesn't bring up a launcher properties dialog. Wicd shows up in the XFCE task bar because it's one of the auto-started programs.

What else can I check into?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Tue Jul 20, 2010 8:36 am    Post subject: Reply with quote

audiodef,

did you try

ls -ld /file.
chmod to your desire.
?

Otherwise, there should be a conf file for it in /etc in which it would set the permission levels, otherwise set the permission levels yourself with the above
??
_________________
idella4@aus
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Jul 22, 2010 2:21 am    Post subject: Reply with quote

Taking /etc/init.d/wicd out of the default runlevel and putting it in the boot level solved it.

Thanks for the responses. :)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Jul 22, 2010 2:39 am    Post subject: Reply with quote

Nice :P
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Jul 22, 2010 3:19 am    Post subject: Reply with quote

Definitely nice. I want this laptop with Gentoo to work well for my mom, as I'm trying to get them away from Windows. They keep having problems that I know are caused by the usual flotsam and crap buildup around Windows. My dad even likes to rant about how he hates Windows. Well, here's my answer!
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Jul 22, 2010 4:01 am    Post subject: Reply with quote

Yeah, my parents are running on Ubuntu.

It's a good start :P
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jul 22, 2010 8:54 am    Post subject: Reply with quote

audiodef wrote:
Taking /etc/init.d/wicd out of the default runlevel and putting it in the boot level solved it.

Thanks for the responses. :)


That's odd, 'default' should work right too...

oh well...
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Jul 22, 2010 1:56 pm    Post subject: Reply with quote

d2_racing wrote:
Yeah, my parents are running on Ubuntu.

It's a good start :P


Ubuntu is nice. I have a friend who keeps trying to sell me on Ubuntu despite the fact that I'm already familiar with it. I can't seem to make him understand I just like the coolness of DIY with Gentoo that Ubuntu doesn't quite have. I didn't put Ubuntu on my mom's laptop because I want to set things up in a very specific way and prevent other family members from being able to fuck it up. Not to make them sound bad, heh heh. I just want this laptop to not stop working because someone "did something" and I can't fix it right away because I live several states away.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Jul 22, 2010 1:56 pm    Post subject: Reply with quote

ssuominen wrote:
audiodef wrote:
Taking /etc/init.d/wicd out of the default runlevel and putting it in the boot level solved it.

Thanks for the responses. :)


That's odd, 'default' should work right too...

oh well...


Whatever works, right? 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Jul 22, 2010 8:36 pm    Post subject: Reply with quote

audiodef wrote:
d2_racing wrote:
Yeah, my parents are running on Ubuntu.

It's a good start :P


Ubuntu is nice. I have a friend who keeps trying to sell me on Ubuntu despite the fact that I'm already familiar with it. I can't seem to make him understand I just like the coolness of DIY with Gentoo that Ubuntu doesn't quite have. I didn't put Ubuntu on my mom's laptop because I want to set things up in a very specific way and prevent other family members from being able to fuck it up. Not to make them sound bad, heh heh. I just want this laptop to not stop working because someone "did something" and I can't fix it right away because I live several states away.


Yeah, I know what you mean, automatic update and other stuff.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Fri Jul 23, 2010 12:22 am    Post subject: Reply with quote

d2_racing wrote:

Yeah, I know what you mean, automatic update and other stuff.


Automatic foobar is more like it.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Jul 23, 2010 3:40 am    Post subject: Reply with quote

Indeed, I always say to my parents, don't update the box, let me do it :P
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Fri Jul 23, 2010 1:34 pm    Post subject: Reply with quote

That's what I'm going to insist upon from now on. Any computer problems, send it to me. 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Jul 23, 2010 7:34 pm    Post subject: Reply with quote

Indeed, it's the best pratice if they don't want to get in trouble :P
Back to top
View user's profile Send private message
quanta
n00b
n00b


Joined: 11 Sep 2010
Posts: 61

PostPosted: Tue Feb 28, 2012 3:55 am    Post subject: Reply with quote

Yes, wicd doesn't ask for root password anymore after moving from defaults runlevel to boot runlevel. But it also doesn't detect my wired and wireless connection at boot time.

- Open up the GUI and click on "Connect" button, it hangs at "Disconnecting connection"
- The wired connection disappear when trying`wicd-curses`

Here's snippet in the `wicd.log`:

Code:

Putting interface down
Releasing DHCP leases...
Setting false IP...
Stopping wpa_supplicant
Flushing the routing table...
Putting interface up...
Running DHCP with hostname gentoo
dhcpcd[5504]: sending commands to master dhcpcd process

DHCP connection successful
Connecting thread exiting.
Sending connection attempt result success


I'm using version 1.7.1-r1 with python 2.7.2:

Code:
[I] net-misc/wicd
     Available versions:  1.7.0 (~)1.7.0-r1 1.7.1_beta2-r4 (~)1.7.1_pre20111210-r1 1.7.1_pre20120127 (~)1.7.1_pre20120127-r1 (~)1.7.1 (~)1.7.1-r1 {X ambiance +gtk ioctl libnotify mac4lin ncurses nls +pm-utils}
     Installed versions:  1.7.1-r1(11:27:01 AM 02/27/2012)(X gtk libnotify ncurses nls pm-utils -ambiance -ioctl -mac4lin)
     Homepage:            http://wicd.sourceforge.net/
     Description:         A lightweight wired and wireless network manager for Linux


I saw the dependencies in the init script:
Code:
9 depend() {
10     need dbus
11     after hald
12 }

but how do I check to make sure that `dbus` is started successfully before wicd?

PS: `wicd` works fine in defaults runlevel after entering the root password.

---

UPDATE: Wed Feb 29 14:20:00 ICT 2012

I've emerged the stable version 1.7.1_pre20120127. Below is the logs when there is no connection after boot:
Quote:
2012/02/29 21:13:36 :: Using wired interface...eth0
2012/02/29 21:13:41 :: Autoconnecting...
2012/02/29 21:13:41 :: Attempting to autoconnect with wired interface...
2012/02/29 21:13:41 :: Putting interface down
2012/02/29 21:13:41 :: Releasing DHCP leases...
2012/02/29 21:13:41 :: Setting false IP...
2012/02/29 21:13:41 :: Flushing the routing table...
2012/02/29 21:13:41 :: Putting interface up...
2012/02/29 21:13:44 :: Running DHCP with hostname gentoo
2012/02/29 21:13:44 :: dhcpcd[2699]: version 5.2.12 starting
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf: line 64: /etc/resolv.conf: Permission denied
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: chmod: changing permissions of `/etc/resolv.conf': Operation not permitted
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: dhcpcd[2699]: eth0: broadcasting for a lease
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: dhcpcd[2699]: eth0: offered 192.168.15.36 from 192.168.15.1
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: dhcpcd[2699]: eth0: acknowledged 192.168.15.36 from 192.168.15.1
2012/02/29 21:13:44 ::
2012/02/29 21:13:44 :: dhcpcd[2699]: eth0: checking for 192.168.15.36
2012/02/29 21:13:44 ::
2012/02/29 14:13:48 :: dhcpcd[2699]: eth0: leased 192.168.15.36 for 600 seconds
2012/02/29 14:13:48 ::
2012/02/29 14:13:48 :: /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf: line 64: /etc/resolv.conf: Permission denied
2012/02/29 14:13:48 ::
2012/02/29 14:13:48 :: chmod: changing permissions of `/etc/resolv.conf': Operation not permitted
2012/02/29 14:13:48 ::
2012/02/29 14:13:48 :: dhcpcd[2699]: forked to background, child pid 2769
2012/02/29 14:13:48 ::
2012/02/29 14:13:48 ::
2012/02/29 14:13:48 :: DHCP connection successful
2012/02/29 14:13:48 :: Connecting thread exiting.
2012/02/29 14:13:49 :: No wired connection present, attempting to autoconnect to wireless network

You see the "Permission denied" error because I marked `/etc/resolv.conf` as immutable.
Pay attention to the bold line.

and this one is the logs when manually restarting wicd:
Quote:
2012/02/29 14:15:37 :: Using wired interface...eth0
2012/02/29 14:15:43 :: Autoconnecting...
2012/02/29 14:15:43 :: Putting interface downAttempting to autoconnect with wired interface...
2012/02/29 14:15:43 ::
2012/02/29 14:15:43 :: Releasing DHCP leases...
2012/02/29 14:15:43 :: Setting false IP...
2012/02/29 14:15:43 :: Flushing the routing table...
2012/02/29 14:15:43 :: Putting interface up...
2012/02/29 14:15:45 :: Running DHCP with hostname gentoo
2012/02/29 14:15:45 :: dhcpcd[3471]: version 5.2.12 starting
2012/02/29 14:15:45 ::
2012/02/29 14:15:45 :: /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf: line 64: /etc/resolv.conf: Permission denied
2012/02/29 14:15:45 ::
2012/02/29 14:15:45 :: chmod: changing permissions of `/etc/resolv.conf': Operation not permitted
2012/02/29 14:15:45 ::
2012/02/29 14:15:45 :: dhcpcd[3471]: eth0: broadcasting for a lease
2012/02/29 14:15:45 ::
2012/02/29 14:15:50 :: dhcpcd[3471]: eth0: offered 192.168.15.36 from 192.168.15.1
2012/02/29 14:15:50 ::
2012/02/29 14:15:50 :: dhcpcd[3471]: eth0: acknowledged 192.168.15.36 from 192.168.15.1
2012/02/29 14:15:50 ::
2012/02/29 14:15:50 :: dhcpcd[3471]: eth0: checking for 192.168.15.36
2012/02/29 14:15:50 ::
2012/02/29 14:15:56 :: dhcpcd[3471]: eth0: leased 192.168.15.36 for 600 seconds
2012/02/29 14:15:56 ::
2012/02/29 14:15:56 :: /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf: line 64: /etc/resolv.conf: Permission denied
2012/02/29 14:15:56 ::
2012/02/29 14:15:56 :: chmod: changing permissions of `/etc/resolv.conf': Operation not permitted
2012/02/29 14:15:56 ::
2012/02/29 14:15:56 :: dhcpcd[3471]: forked to background, child pid 3502
2012/02/29 14:15:56 ::
2012/02/29 14:15:56 ::
2012/02/29 14:15:56 :: DHCP connection successful
2012/02/29 14:15:56 :: Connecting thread exiting.
2012/02/29 14:16:00 :: Sending connection attempt result success


This problem is similar to: https://bbs.archlinux.org/viewtopic.php?id=121589, but the hardware clock is right and I can't found any script related to ntpdate in `/etc/wicd/scripts/postconnect/`.

Any ideas?
Back to top
View user's profile Send private message
quanta
n00b
n00b


Joined: 11 Sep 2010
Posts: 61

PostPosted: Tue Mar 20, 2012 2:33 pm    Post subject: Reply with quote

UPDATE Tue Mar 20 21:24:34 ICT 2012

Here's the relate wicd services which are started automatically at boot:
Code:
quanta    2692     1  1 21:13 ?        00:00:02 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
root      3298     1  2 21:15 ?        00:00:00 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
root      3326  3298  3 21:15 ?        00:00:00 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py

and after restarting:
Code:
quanta    2692     1  1 21:13 ?        00:00:02 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
root      3298     1  1 21:15 ?        00:00:00 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
root      3326  3298  1 21:15 ?        00:00:00 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
root      3365     1  0 21:16 ?        00:00:00 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/0019cbf7e73f -D wext

As you can see, right now the question sounds like is why the wicd cannot automatically manage wpa_supplicant at boot?
Back to top
View user's profile Send private message
quanta
n00b
n00b


Joined: 11 Sep 2010
Posts: 61

PostPosted: Wed Mar 21, 2012 4:08 am    Post subject: Reply with quote

quanta wrote:

This problem is similar to: https://bbs.archlinux.org/viewtopic.php?id=121589, but the hardware clock is right and I can't found any script related to ntpdate in `/etc/wicd/scripts/postconnect/`.

Problem solved. Please take a look at this: http://unix.stackexchange.com/a/34645/7903
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum