Page 1 of 1

Failing to create a file with sudo nano

Posted: Sat Mar 14, 2015 7:02 pm
by digipup1
I'm trying to create a file /etc/hostapd/hostapd.conf using the command sudo nano and when I hit ^X then Yes to save changes and hit return to finish it then says "Error writing /etc/hostapd/hostapd.conf: No such file or directory" Please help I'm getting very annoyed with this.

Re: Failing to create a file with sudo nano

Posted: Sat Mar 14, 2015 7:07 pm
by FTrevorGowen
digipup1 wrote:I'm trying to create a file /etc/hostapd/hostapd.conf using the command sudo nano and when I hit ^X then Yes to save changes and hit return to finish it then says "Error writing /etc/hostapd/hostapd.conf: No such file or directory" Please help I'm getting very annoyed with this.
What happens if you try ^O (to write Out the file) first, before ^X (to eXit)? Are you sure that the /etc/hostapd directory already exists? (Use sudo mkdir to create it perhaps)
Trev.

Re: Failing to create a file with sudo nano

Posted: Sat Mar 14, 2015 7:08 pm
by xoopha
Does the /etc/hostapd directory exist to start with?

Re: Failing to create a file with sudo nano

Posted: Sat Mar 14, 2015 7:08 pm
by pluggy
I can easily replicate the error because I don't have a directory /etc/hostapd/ on my system. It sounds like you don't have it on yours either.