You are not logged in.

#1 2020-03-10 04:30:38

goosestepping
Member
Registered: 2019-09-25
Posts: 79

[SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Hi so this is happening after I did something and here is the auditd record of it.

https://bpaste.net/raw/VL6Q

I can see that it is wpa_supplicant creating it but I am not sure how to take it away.

Last edited by goosestepping (2020-03-10 15:29:39)

Offline

#2 2020-03-10 12:45:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,524
Website

Re: [SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Why is that -O option there?  Read the man page for what that does and it should become clear why a directory /-d is being created and populated. 

Alternatively, why is there a '-d' option put between the -O and it's required argument?  I suspect, as you've told us noting about what you've done to end up in this state, that you modified a wpa_supplicant service file or some other recommended command line to add a -d debug flag, but you put it in completely the wrong place.

Last edited by Trilby (2020-03-10 12:49:24)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-03-10 12:53:10

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,708
Website

Re: [SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Trilby wrote:

Why is that -O option there?  Read the man page for what that does and it should become clear why a directory /-d is being created and populated. 

Alternatively, why is there a '-d' option put between the -O and it's required argument?  I suspect, as you've told us noting about what you've done to end up in this state, that you modified a wpa_supplicant service file or some other recommended command line to add a -d debug flag, but you put it in completely the wrong place.

$ pacman -Qo /usr/lib/systemd/system/wpa_supplicant.service 
/usr/lib/systemd/system/wpa_supplicant.service ist in wpa_supplicant 2:2.9-7 enthalten
$ cat /usr/lib/systemd/system/wpa_supplicant.service 
[Unit]
Description=WPA supplicant
Before=network.target
After=dbus.service
Wants=network.target
IgnoreOnIsolate=true

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

[Install]
WantedBy=multi-user.target
Alias=dbus-fi.w1.wpa_supplicant1.service

Edit: Oops, yes, the -d is indeed missing in the original service unit.

Last edited by schard (2020-03-10 12:55:34)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#4 2020-03-10 12:56:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,524
Website

Re: [SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Yes, what is that supposed to show?  Like I noted, in the service file, -O is followed by a required argument.  In the OP's command line, that has been changed.  The path argument provided to -O is '-d', so a directory /-d is created.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-03-10 13:11:45

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,708
Website

Re: [SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Yes, Trilby, as mentioned in the edit, I missed that there was the -d in OP's command line after the -O flag. The post should have answered the first paragraph of your post, and I only skipped the second one. My mistake.
@OP, what Trilby is saying, if you wanted to add the debug mode to wpa_supplicant, don't do it between the -O flag and its required parameter, but before it or after the path (/run/wpa_supplicant).


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#6 2020-03-10 15:24:02

goosestepping
Member
Registered: 2019-09-25
Posts: 79

Re: [SOLVED] wpa_supplicant is creating the file and folder /-d/wlp107s0

Thanks, so how do i undo this?

Oh cool I reverted the service file and it's fixed.

Last edited by goosestepping (2020-03-10 15:28:52)

Offline

Board footer

Powered by FluxBB