Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-18-2013, 12:33 PM   #1
LQ Newbie
Registered: Nov 2013
Posts: 3

Rep: Reputation: 0
configure Slackware to run DHCPCD for any user account. how?

i have a slackware linux with a kernel release I need to give to all users access to DHCPCD tool or at least when the PC starts to have network activity all users.
the message is:

dhcpcd will not work correclty unless run as root
open '/var/run/': Permission denied

how can give the access to network for all users?
thanks for your time !!!

Last edited by sever; 11-18-2013 at 12:35 PM.
Old 11-18-2013, 05:04 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Why would you want to run dhcpcd on a per-user basis? It should be run by the system boot scripts on startup.

What is your end goal? To have a different DHCP lease pulled for different users?
Old 11-19-2013, 09:34 AM   #3
LQ Newbie
Registered: Nov 2013
Posts: 3

Original Poster
Rep: Reputation: 0
i have also other user account on this machine and i need for them internet access. i mean they need internet access without log in as root, run dhcpcd and then log off and log in as user. How can i make the dhcpcd as boot process? or somehow as a solution?

Old 11-19-2013, 09:38 AM   #4
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,822
Blog Entries: 27

Rep: Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122Reputation: 2122
Member Response


Your network should be setup by 'root' for user access. No need for a normal user to initiate 'inet' or be allowed to configure network or other system configs. To do so can open a can of worms that you will regret.

Look at: Slackware Doc Project

Plus other Slackware links in my sig are very useful.

Hope this helps.
Old 11-20-2013, 01:46 PM   #5
LQ Newbie
Registered: Nov 2013
Posts: 3

Original Poster
Rep: Reputation: 0

Hi thanks a lot for your clue,
i solve it with the following line in the file /etc/rc.d/rc.local:


however when i ran dhcpcd i get
dhcpcd: no interfaces have a carrier.

please see the attached file. it seems the KDE don't know about my network device !!!
Attached Thumbnails
Click image for larger version

Name:	missing network interface.jpeg
Views:	6
Size:	97.7 KB
ID:	14027  
Old 11-20-2013, 04:43 PM   #6
LQ Newbie
Registered: May 2012
Location: Napier - New Zealand
Distribution: Slackware 64 Current
Posts: 19

Rep: Reputation: Disabled
I start dhcpcd with dhcpcd eth0 or dhcpcd wlan0 for wireless


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
Configure the Directory server in a way to authenticate and unlock a user account arunplanet Linux - Newbie 7 10-04-2012 06:54 AM
unable to run in user account wisdomvk Linux - Software 1 05-11-2007 07:21 PM
I want to automatically run a program when a user logs on their account bad_andy Linux - Newbie 7 02-01-2005 08:55 PM
howto configure a user account behmjose Linux - Newbie 1 12-07-2003 03:30 AM
Esound won't run under User account natto34 Linux - Newbie 4 04-05-2002 09:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration