View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
Posted: Mon Jul 19, 2010 3:25 pm Post subject: How do I get Wicd to not ask for root pw? [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SamuliSuominen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Mon Jul 19, 2010 3:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
idella4 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Sephiroth.gif)
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Mon Jul 19, 2010 5:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
idella4 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Sephiroth.gif)
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Tue Jul 20, 2010 8:36 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Jul 22, 2010 2:39 am Post subject: |
|
|
Nice ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Jul 22, 2010 4:01 am Post subject: |
|
|
Yeah, my parents are running on Ubuntu.
It's a good start ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SamuliSuominen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Thu Jul 22, 2010 8:54 am Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
That's odd, 'default' should work right too...
oh well... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
Posted: Thu Jul 22, 2010 1:56 pm Post subject: |
|
|
d2_racing wrote: | Yeah, my parents are running on Ubuntu.
It's a good start ![Razz :P](images/smiles/icon_razz.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Jul 22, 2010 8:36 pm Post subject: |
|
|
audiodef wrote: | d2_racing wrote: | Yeah, my parents are running on Ubuntu.
It's a good start ![Razz :P](images/smiles/icon_razz.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Jul 23, 2010 3:40 am Post subject: |
|
|
Indeed, I always say to my parents, don't update the box, let me do it ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Jul 23, 2010 7:34 pm Post subject: |
|
|
Indeed, it's the best pratice if they don't want to get in trouble ![Razz :P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
quanta n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Sep 2010 Posts: 61
|
Posted: Tue Feb 28, 2012 3:55 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
quanta n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Sep 2010 Posts: 61
|
Posted: Tue Mar 20, 2012 2:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
quanta n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Sep 2010 Posts: 61
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|