[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Authentication failed after su-



On Mon, Feb 28, 2022 at 07:54:39PM +0100, Stella Ashburne wrote:
> According to https://wiki.debian.org/WiFi/HowToUse,
> 
> "Use the WPA passphrase to calculate the correct WPA PSK hash for your SSID by altering the following example"
> 
> the command to type is
> 
> su -l -c "wpa_passphrase myssid my_very_secret_passphrase > /etc/wpa_supplicant/wpa_supplicant.conf"
> 
> The output of the terminal is: Authentication failed
> 
> Any solution(s) please?
> 
> Best regards.
> 
> Stella
>

If you use sudo: prefix the above command with sudo

It may be that you need

su - -l -c "rest of the line"

su alone doesn't always get you root equivalent: the default changed a while
ago now so su - is needed.

All the very best, as ever,

Andy Cater 


Reply to: