Visit Jeremy's Blog.
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 04-18-2013, 01:37 AM   #1
LQ Newbie
Registered: Jan 2012
Posts: 21

Rep: Reputation: Disabled
Recreating /var/run/wpa_supplicant/wlan0 under CentOS 6.4

Greetings everyone,

I would like to understand the entries in my /etc/wpa_supplicant/wpa_supplicant.conf


When I go to /var/run/wpa_supplicant there's a file called wlan0

[root@localhost wpa_supplicant]# ls -la
total 8
drwxr-x---. 2 root root 4096 Apr 17 19:00 .
drwxr-xr-x. 24 root root 4096 Apr 17 20:08 ..
srwxrwx---. 1 root root 0 Apr 17 19:00 wlan0
[root@localhost wpa_supplicant]#

The wlan0 is a symbolic link to another file. I would like to know where this file is. When I do a cat wlan0 I receive the message:

[root@localhost wpa_supplicant]# cat wlan0
cat: wlan0: No such device or address

I'm aware of the readlink command but it doesn't display anything useful. I spoke with a co-worker and he said that it's a file where the sockets are defined.

I plan to format my computer and reconfigure my wireless card, post all the steps here and maybe make a YouTube video so others can learn from my experience. So far it has been an adventure trying to get my wireless to work under CentOS 6.4. I got it to work but with the help of others. I'm finding a lot of information about the wpa_supplicant.conf file but not about /var/run/wpa_supplicant/wlan0 file. I need to be able to recreate it. Thanks in advance for your valuable input.
Old 04-19-2013, 07:58 AM   #2
LQ Newbie
Registered: Apr 2013
Location: Casablanca, MOROCCO
Distribution: Gentoo Linux
Posts: 8

Rep: Reputation: 1
Your co-worker is right, this is a socket file and not a symbolic link (you have the s instead of the l in the ls long listing).

Don't worry about the creation of this file. They are special files created by the program with some system calls, but I don't think you can create one from userspace. But I know that a named pipe (fifo) can be created with the mkfifo command.


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
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 04:41 AM
wpa_supplicant not working in CentOS on dell latitude x200 focusbob Linux - Laptop and Netbook 7 07-29-2010 04:38 AM
CentOS 5 - SELinux denial of wicd/wpa_supplicant spoovy Linux - Security 4 05-13-2010 03:40 PM
CentOS: associating problem with wpa_supplicant nuwen52 Linux - Networking 1 02-02-2009 04:03 PM
rm cannot remove /var/run/ and /var/run/ danishmr Linux - Software 1 05-04-2004 09:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 PM.

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