Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245768

Re: Authentication failed after su-

From Stella Ashburne <rewefie@gmx.com>
Newsgroups linux.debian.user
Subject Re: Authentication failed after su-
Date 2022-03-01 07:10 +0100
Message-ID <DW3RT-555F-7@gated-at.bofh.it> (permalink)
References <DVTpv-4Yt1-1@gated-at.bofh.it> <DVTIS-4YP3-7@gated-at.bofh.it> <DVUEV-4Znr-1@gated-at.bofh.it> <DVVKL-5003-9@gated-at.bofh.it> <DW3RT-555F-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Dearie

> Sent: Tuesday, March 01, 2022 at 5:47 AM
> From: "Bob McGowan" <bob@bnlmcgowan.net>
> To: debian-user@lists.debian.org
> Subject: Re: Authentication failed after su-
>
> On 2/28/22 13:09, Dan Ritter wrote:
> > sudo su - -l -c "rest of the line"
> 
> Some comments on this, without knowing just how it failed:
> 
> 1.  There is no reason I can see to using both 'sudo' and 'su' 
> together.  By default, they both let you run a command as the root user.
> 
Thanks for the clarification.

> 2.  Using both '-' and '-l' with su is redundant, they do almost (per 
> the man page) the same thing.  The man page suggests '-l' is better due 
> to reduced side effects.
> 
I wonder what "side effects" they may be.

> 3.  The -c option provides a means to tell su to run a specific 
> command.  So the string 'rest of the line' generates an error stating 
> 'command not found' if run as is.  You need to supply this part of the 
> line so processing can be duplicated and evaluated.
> 
Thanks once again.

> If I insert an 'echo' before the word 'rest', there is no error.
> 
Noted.

> Hence, the actual error is needed, as well as the actual command being run.
> 
The actual command is actually lifted from Debian Wiki (https://wiki.debian.org/WiFi/HowToUse). It is:

su -l -c "wpa_passphrase myssid my_very_secret_passphrase > /etc/wpa_supplicant/wpa_supplicant.conf"

In a terminal, I typed:

username@hostname:~$ su -l -c "wpa_passphrase JupiterRising 1234567890 > /etc/wpa_supplicant/wpa_supplicant.conf"
Password: 
su: Authentication failure
username@hostname:~$

The error message is Authentication failure.

Please note that I have chosen not to create a root password during the process of installing Debian 11.

Best regards.

Stella

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-02-28 20:00 +0100
  Re: Authentication failed after su- "Andrew M.A. Cater" <amacater@einval.com> - 2022-02-28 20:20 +0100
    Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-02-28 21:20 +0100
      Re: Authentication failed after su- Dan Ritter <dsr@randomstring.org> - 2022-02-28 22:30 +0100
        Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-02-28 23:50 +0100
          Re: Authentication failed after su- Dan Ritter <dsr@randomstring.org> - 2022-03-01 00:40 +0100
            Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-03-01 06:20 +0100
              Re: Authentication failed after su- Sven Hartge <sven@svenhartge.de> - 2022-03-01 10:30 +0100
                Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-03-01 12:10 +0100
                Re: Authentication failed after su- David Wright <deblis@lionunicorn.co.uk> - 2022-03-01 17:20 +0100
                Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-03-02 08:50 +0100
                Re: Authentication failed after su- Charles Curley <charlescurley@charlescurley.com> - 2022-03-01 17:20 +0100
        Re: Authentication failed after su- Stella Ashburne <rewefie@gmx.com> - 2022-03-01 07:10 +0100

csiph-web