• Sudo not found

    From Rob H@21:1/5 to All on Sun May 1 20:43:33 2022
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bobbie Sellers@21:1/5 to Rob H on Sun May 1 13:08:16 2022
    On 5/1/22 12:43, Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    What iso file did you install from?

    --
    bliss dash SF 4 ever at dslextreme dot com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to Rob H on Sun May 1 13:49:57 2022
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing sudo.
    It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo

    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Mike Easter on Sun May 1 23:01:58 2022
    On 01/05/2022 21:49, Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing sudo.
    It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Bobbie Sellers on Sun May 1 23:02:53 2022
    On 01/05/2022 21:08, Bobbie Sellers wrote:
    On 5/1/22 12:43, Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

        What iso file did you install from?


    The iso file was the latest version

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Albert Arkwright <"Albert.Arkwright@21:1/5 to Rob H on Sun May 1 23:52:12 2022
    On 01/05/2022 23:01, Rob H wrote:


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    Did you try passing some commands like: "sudo reboot" or "sudo shutdown
    -r now"

    Probably you need to apply some valid commands. A command such as "su
    sudo" is going to fail.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bit Twister@21:1/5 to Rob H on Sun May 1 20:13:15 2022
    On Sun, 1 May 2022 23:01:58 +0100, Rob H wrote:
    On 01/05/2022 21:49, Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing sudo.
    It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found


    Looks ok to me. You on the other hand need to paste the next line in a termainal.
    type -a sudo
    swqs

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan N. Little@21:1/5 to Rob H on Sun May 1 21:48:42 2022
    Rob H wrote:
    On 01/05/2022 21:49, Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing
    sudo. It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found


    You said "copied back my documents"... Okay post results of:

    echo $PATH

    Maybe when you copied your documents you disable your user default path
    for your account.


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bobbie Sellers@21:1/5 to Rob H on Sun May 1 21:02:35 2022
    On 5/1/22 15:02, Rob H wrote:
    On 01/05/2022 21:08, Bobbie Sellers wrote:
    On 5/1/22 12:43, Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

         What iso file did you install from?


    The iso file was the latest version

    That was your mistake read the review on the
    Distrowatch weekly newsletter at the following URL <https://distrowatch.com/weekly.php?issue=20220502#ubuntu>
    Phah! Nothing like this could ever happen in real life.

    bliss using PCLOS - The Perfect Computer Linux Operating System

    --
    bliss dash SF 4 ever at dslextreme dot com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon May 2 07:58:22 2022
    Am Sonntag, 01. Mai 2022, um 20:43:33 Uhr schrieb Rob H:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Can you log in as root?
    Then install sudo wit apt.
    Add your normal user to the sudo group.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Marco Moock on Mon May 2 02:36:42 2022
    On 5/2/2022 1:58 AM, Marco Moock wrote:
    Am Sonntag, 01. Mai 2022, um 20:43:33 Uhr schrieb Rob H:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Can you log in as root?
    Then install sudo wit apt.
    Add your normal user to the sudo group.


    But how or why would that happen ?

    This is likely a new install, where the /home was
    copied from elsewhere after the install finished.

    Step one: Install Ubuntu (on SSD)
    Step two: Copy old /home/robh (on RAID1 pair) to new /home/robh (on SSD)

    We don't know if the new install is "robh" as
    well as the old home being "/home/robh" and the
    /etc/passwd matching and so on. The /etc/sudoers
    doesn't seem to have the account-specific details
    you might find on a Unix workstation (as done by an IT guy).

    Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

    # User privilege specification
    root ALL=(ALL:ALL) ALL

    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL

    # Allow members of group sudo to execute any command
    %sudo ALL=(ALL:ALL) ALL

    Johnathan suggested

    echo $PATH

    and a person could also try

    which sudo

    to see if it is in the path (or some path variable)
    or not.

    On more modern setups, I can no longer tell
    via looking at dot files, where the hell the $PATH
    comes from :-) All the details don't seem to be
    spelled out in the user /home/username/.xxx area. They must
    be coming from /etc or something.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Bit Twister on Mon May 2 08:59:43 2022
    On 02/05/2022 02:13, Bit Twister wrote:
    On Sun, 1 May 2022 23:01:58 +0100, Rob H wrote:
    On 01/05/2022 21:49, Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing sudo.
    It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found


    Looks ok to me. You on the other hand need to paste the next line in a termainal.
    type -a sudo
    swqs

    rob@rob-Z97:~$ -a sudo
    bash: -a: command not found
    rob@rob-Z97:~$ swqs
    bash: swqs: command not found
    rob@rob-Z97:~$

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Jonathan N. Little on Mon May 2 09:00:40 2022
    On 02/05/2022 02:48, Jonathan N. Little wrote:
    Rob H wrote:
    On 01/05/2022 21:49, Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe you should reboot before researching and such as installing
    sudo. It is supposed to be there.

    In the meantime, see if it is there:

    type -a sudo


    I did reboot , and I googled the problem but nothing worked:
    I tried: su
    then when asked for password, su

    rob@rob-Z97:/$ su
    Password:
    su: Authentication failure

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found


    You said "copied back my documents"... Okay post results of:

    echo $PATH

    Maybe when you copied your documents you disable your user default path
    for your account.



    rob@rob-Z97:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    rob@rob-Z97:~$

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Marco Moock on Mon May 2 09:07:03 2022
    On 02/05/2022 06:58, Marco Moock wrote:
    Am Sonntag, 01. Mai 2022, um 20:43:33 Uhr schrieb Rob H:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Can you log in as root?
    Then install sudo wit apt.
    Add your normal user to the sudo group.


    When I install ed the OS, I set my name and then the password, so I
    suppose I am logging in as rob

    I tried this without success:
    rob@rob-Z97:~$ su rob
    Password:

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    sudo: ./install.sh: command not found

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Paul on Mon May 2 09:09:21 2022
    On 02/05/2022 07:36, Paul wrote:
    On 5/2/2022 1:58 AM, Marco Moock wrote:
    Am Sonntag, 01. Mai 2022, um 20:43:33 Uhr schrieb Rob H:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Can you log in as root?
    Then install sudo wit apt.
    Add your normal user to the sudo group.


    But how or why would that happen ?

    This is likely a new install, where the /home was
    copied from elsewhere after the install finished.

       Step one: Install Ubuntu (on SSD)
       Step two: Copy old /home/robh (on RAID1 pair) to new /home/robh (on SSD)

    We don't know if the new install is "robh" as
    well as the old home being "/home/robh" and the
    /etc/passwd matching and so on. The /etc/sudoers
    doesn't seem to have the account-specific details
    you might find on a Unix workstation (as done by an IT guy).

       Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"


       # User privilege specification
       root    ALL=(ALL:ALL) ALL

       # Members of the admin group may gain root privileges
       %admin ALL=(ALL) ALL

       # Allow members of group sudo to execute any command
       %sudo   ALL=(ALL:ALL) ALL

    Johnathan suggested

       echo $PATH

    and a person could also try

       which sudo

    to see if it is in the path (or some path variable)
    or not.

    On more modern setups, I can no longer tell
    via looking at dot files, where the hell the $PATH
    comes from :-) All the details don't seem to be
    spelled out in the user /home/username/.xxx area. They must
    be coming from /etc or something.

       Paul

    rob@rob-Z97:~$ which sudo
    /usr/bin/sudo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Quast@21:1/5 to All on Mon May 2 07:42:29 2022
    Am Sun, 1 May 2022 21:02:35 -0700 schrieb Bobbie Sellers:

    That was your mistake read the review on the
    Distrowatch weekly newsletter at the following URL <https://distrowatch.com/weekly.php?issue=20220502#ubuntu> Phah! Nothing
    like this could ever happen in real life.

    seems, I was lucky, migrating my last xubuntu to manjaro-linux xfce.
    I like this rolling stuff.
    aq

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to Rob H on Mon May 2 10:25:36 2022
    Rob H <[email protected]> writes:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe try running /usr/bin/sudo directly in case the problem is with
    your path setting.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Anssi Saari on Mon May 2 09:24:53 2022
    On 02/05/2022 08:25, Anssi Saari wrote:
    Rob H <[email protected]> writes:

    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Maybe try running /usr/bin/sudo directly in case the problem is with
    your path setting.

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Rob H on Mon May 2 10:02:59 2022
    Rob H <[email protected]> writes:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    That just tells you that there is no command called -a, which is not surprising.

    rob@rob-Z97:~$ -a sudo
    bash: -a: command not found
    rob@rob-Z97:~$ swqs
    bash: swqs: command not found
    rob@rob-Z97:~$

    That just tells you that there is no command called -a or swqs, also not surprising.

    Maybe try running /usr/bin/sudo directly in case the problem is with
    your path setting.

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    You were asked to type /usr/bin/sudo but you typed usr/bin/sudo.

    rob@rob-Z97:~$ which sudo
    /usr/bin/sudo

    sudo is installed.

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    sudo: ./install.sh: command not found

    sudo is behaving as expected. The issue is that there is nothing called install.sh in your current directory.

    Rob, next time start by showing what you typed and what happened.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Rob H on Mon May 2 10:26:59 2022
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$

    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really wrong
    with install.sh.)

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Richard Kettlewell on Mon May 2 10:15:41 2022
    On 02/05/2022 10:02, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    Just done a brand new install of ubuntu, and copied back my documents
    etc, but now sudo returns command not found!

    How come this has happened

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    That just tells you that there is no command called -a, which is not surprising.

    rob@rob-Z97:~$ -a sudo
    bash: -a: command not found
    rob@rob-Z97:~$ swqs
    bash: swqs: command not found
    rob@rob-Z97:~$

    That just tells you that there is no command called -a or swqs, also not surprising.

    Maybe try running /usr/bin/sudo directly in case the problem is with
    your path setting.

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    You were asked to type /usr/bin/sudo but you typed usr/bin/sudo.

    rob@rob-Z97:~$ which sudo
    /usr/bin/sudo

    sudo is installed.

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    sudo: ./install.sh: command not found

    sudo is behaving as expected. The issue is that there is nothing called install.sh in your current directory.

    Rob, next time start by showing what you typed and what happened.


    rob@rob-Z97:~$ /usr/bin/sudo
    usage: sudo -h | -K | -k | -V
    usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
    usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user]
    [command]
    usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h
    host] [-p
    prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p
    prompt] [-T timeout] [-u user] file ...

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to Rob H on Mon May 2 02:59:22 2022
    Rob H wrote:
    Bit Twister wrote:
    Rob H wrote:
    Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents >>>>> etc, but now sudo returns command not found!

    In the meantime, see if it is there:

    type -a sudo

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    You aren't getting your commands or syntax right.

    The command is 'type -a sudo' (no quotes) not '-a sudo'

    Looks ok to me. You on the other hand need to paste the next line in a
    termainal.
            type -a sudo


    rob@rob-Z97:~$ -a sudo
    bash: -a: command not found

    You did it again for BT; not '-a sudo'; include 'type'; 'type -a sudo'
    to show the presence of sudo in the usual /usr/bin.

    <later you said>

    rob@rob-Z97:~$ which sudo
    /usr/bin/sudo

    There it is. That 'which sudo' serves the 'type -a sudo' suggestion too.

    <later you said>

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    That time you got the syntax wrong; you need a slash before the
    'usr/bin/sudo' as in

    /usr/bin/sudo



    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Mike Easter on Mon May 2 12:11:04 2022
    On 02.05.2022 11:59, Mike Easter wrote:

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    That time you got the syntax wrong;

    nitpick: the syntax is correct, there's just no file with that
    relative path in the current working directory.

    you need a slash before the 'usr/bin/sudo' as in

    /usr/bin/sudo

    Or a

    cd /

    before issuing that command with the given relative path.

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Richard Kettlewell on Mon May 2 12:02:53 2022
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder
    arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$

    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really wrong
    with install.sh.)


    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Mike Easter on Mon May 2 12:01:21 2022
    On 02/05/2022 10:59, Mike Easter wrote:
    Rob H wrote:
    Bit Twister wrote:
    Rob H wrote:
    Mike Easter wrote:
    Rob H wrote:
    Just done a brand new install of ubuntu, and copied back my documents >>>>>> etc, but now sudo returns command not found!

    In the meantime, see if it is there:

    type -a sudo

    Also:
    rob@rob-Z97:/$ -a sudo
    bash: -a: command not found

    You aren't getting your commands or syntax right.

    The command is 'type -a sudo' (no quotes) not '-a sudo'

    Looks ok to me. You on the other hand need to paste the next line in
    a termainal.
            type -a sudo


    rob@rob-Z97:~$ -a sudo
    bash: -a: command not found

    You did it again for BT; not '-a sudo'; include 'type'; 'type -a sudo'
    to show the presence of sudo in the usual /usr/bin.

    <later you said>

    rob@rob-Z97:~$ which sudo
    /usr/bin/sudo

    There it is.  That 'which sudo' serves the 'type -a sudo' suggestion too.

    <later you said>

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    That time you got the syntax wrong; you need a slash before the 'usr/bin/sudo' as in

    /usr/bin/sudo




    Ok, I miss interpreted what you typed , Doh!

    Anyway, this should be right?

    rob@rob-Z97:~$ type -a sudo
    sudo is /usr/bin/sudo
    rob@rob-Z97:~$ /usr/bin/sudo
    usage: sudo -h | -K | -k | -V
    usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
    usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user]
    [command]
    usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h
    host] [-p
    prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p
    prompt] [-T timeout] [-u user] file ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Rob H on Mon May 2 12:25:20 2022
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder
    arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really
    wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo? http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to
    think you need it.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Rob H on Mon May 2 14:24:28 2022
    On 02.05.2022 14:19, Rob H wrote:
    On 02/05/2022 12:25, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder
    arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really
    wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo?
    http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to
    think you need it.


    Without sudo:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ./install.sh
    bash: ./install.sh: Permission denied

    Either you have to make that file executable

    chmod +x ./install.sh
    ./install.sh

    or you have to specify a shell interpreter, e.g.

    sh ./install.sh


    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Richard Kettlewell on Mon May 2 13:19:49 2022
    On 02/05/2022 12:25, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder
    arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really
    wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo? http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to think you need it.


    Without sudo:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ./install.sh
    bash: ./install.sh: Permission denied

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Rob H on Mon May 2 10:18:57 2022
    On 5/2/2022 8:19 AM, Rob H wrote:
    On 02/05/2022 12:25, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino                 examples    lib            tools
    arduino-builder         hardware    libraries      tools-builder
    arduino-linux-setup.sh  install.sh  revisions.txt  uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
        ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really
    wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo?
    http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to
    think you need it.

    Without sudo:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ./install.sh
    bash: ./install.sh: Permission denied

    You can see the permissions, as packed inside the tar file,
    are 755 for install.sh .

    [Picture]

    https://i.postimg.cc/pX2bMVs1/permissions-arduino.gif

    Check your umask value, and see if it is interfering.
    Mine is 0022 (the lead zero presumably is for SUID or something).
    Traditionally it would have printed out 022, and not interfered
    with a 755 incoming.

    $ umask
    0022 # 755 packed ==> 755 unpacked, should have worked

    It's like a .profile or similar, is not working. Like, maybe, when
    you copied home, some dot files got missed ? Anyway, check umask.

    This stuff happens all the time, when unpacking kits like this.
    It doesn't even require shenanigans to break it :-)

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Marco Moock on Mon May 2 15:41:29 2022
    On 02/05/2022 15:25, Marco Moock wrote:
    Am Montag, 02. Mai 2022, um 09:07:03 Uhr schrieb Rob H:

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    sudo: ./install.sh: command not found

    Is that script executable (x-Bit)?
    Check that with ls -la ./install.sh
    If not, use chmod to make it executable.
    You can also use sudo bash ./install.sh, here your script doesn't need
    the x bit.


    Thanks,
    sudo bash ./install.sh worked ok.

    Maybe now I am going to have to use sudo bash from now on.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon May 2 16:25:16 2022
    Am Montag, 02. Mai 2022, um 09:07:03 Uhr schrieb Rob H:

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    sudo: ./install.sh: command not found

    Is that script executable (x-Bit)?
    Check that with ls -la ./install.sh
    If not, use chmod to make it executable.
    You can also use sudo bash ./install.sh, here your script doesn't need
    the x bit.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon May 2 16:52:02 2022
    Am Montag, 02. Mai 2022, um 15:41:29 Uhr schrieb Rob H:

    Maybe now I am going to have to use sudo bash from now on.

    Or you need to make your script executable by running chmod a+x file.sh.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Marco Moock on Mon May 2 16:34:17 2022
    On 02/05/2022 15:52, Marco Moock wrote:
    Am Montag, 02. Mai 2022, um 15:41:29 Uhr schrieb Rob H:

    Maybe now I am going to have to use sudo bash from now on.

    Or you need to make your script executable by running chmod a+x file.sh.


    It is installed now:

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo bash ./install.sh
    [sudo] password for rob:
    Adding desktop shortcut, menu item and file associations for Arduino IDE...


    done!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Paul on Mon May 2 16:36:52 2022
    On 02/05/2022 15:18, Paul wrote:
    On 5/2/2022 8:19 AM, Rob H wrote:
    On 02/05/2022 12:25, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino                 examples    lib            tools
    arduino-builder         hardware    libraries      tools-builder
    arduino-linux-setup.sh  install.sh  revisions.txt  uninstall.sh >>>>>>
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
        ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really
    wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo?
    http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to >>> think you need it.

    Without sudo:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ./install.sh
    bash: ./install.sh: Permission denied

    You can see the permissions, as packed inside the tar file,
    are 755 for install.sh .

       [Picture]

       https://i.postimg.cc/pX2bMVs1/permissions-arduino.gif

    Check your umask value, and see if it is interfering.
    Mine is 0022 (the lead zero presumably is for SUID or something). Traditionally it would have printed out 022, and not interfered
    with a 755 incoming.

       $ umask
       0022         # 755 packed ==> 755 unpacked, should have worked

    It's like a .profile or similar, is not working. Like, maybe, when
    you copied home, some dot files got missed ? Anyway, check umask.

    This stuff happens all the time, when unpacking kits like this.
    It doesn't even require shenanigans to break it :-)

      Paul



    I installed the file with:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo bash ./install.sh
    [sudo] password for rob:
    Adding desktop shortcut, menu item and file associations for Arduino IDE...


    done!

    Running umask gives:
    rob@rob-Z97:~$ umask
    0002

    So what does 0002 mean
    thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Marco Moock on Mon May 2 16:44:05 2022
    On 02/05/2022 16:35, Marco Moock wrote:
    Am Montag, 02. Mai 2022, um 16:34:17 Uhr schrieb Rob H:

    It is installed now:

    The problem is not about sudo being installed or not, it is about if a
    .sh file is marked as executable or not.

    Ok , but what about when I have to use sudo for other commands , like
    sudo mkdir etc

    I am Administrator in users and groups with a password which works
    everytime. So if I am an administrator, why am I getting this error.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon May 2 18:07:55 2022
    Am Montag, 02. Mai 2022, um 16:44:05 Uhr schrieb Rob H:

    Ok , but what about when I have to use sudo for other commands , like
    sudo mkdir etc

    I am Administrator in users and groups with a password which works
    everytime. So if I am an administrator, why am I getting this error.

    You problem isn't related to sudo here.
    If you run shell scripts, you have 2 options:
    You can either rund them directly, by ./script.sh, but here it is
    necessary that the executable bit for the user running is set (be ware
    of the context, owner, group others).

    The other option is to use the bash command and use the path to the
    script as option:
    bash ./script.sh
    This doesn't require that the x bits are set. It requires that you can
    read the file (r bit).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Rob H on Mon May 2 17:59:24 2022
    On 02.05.2022 17:44, Rob H wrote:
    On 02/05/2022 16:35, Marco Moock wrote:
    Am Montag, 02. Mai 2022, um 16:34:17 Uhr schrieb Rob H:

    It is installed now:

    The problem is not about sudo being installed or not, it is about if a
    .sh file is marked as executable or not.

    Ok , but what about when I have to use sudo for other commands , like
    sudo mkdir etc

    Since sudo is installed you can use it with other commands as well.

    You are confusing that with file permissions that are a separate
    topic. If the file owner defines a file as non writable, then he
    cannot just overwrite it. The user defined it to be non-writable,
    and if he wants it differently he can change the file permissions.


    I am Administrator in users and groups with a password which works
    everytime. So if I am an administrator, why am I getting this error.

    Should be obvious already from many of the replies; re-read them.

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Rob H on Mon May 2 17:53:31 2022
    On 02.05.2022 17:36, Rob H wrote:
    On 02/05/2022 15:18, Paul wrote:
    On 5/2/2022 8:19 AM, Rob H wrote:
    On 02/05/2022 12:25, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    On 02/05/2022 10:26, Richard Kettlewell wrote:
    Rob H <[email protected]> writes:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls
    arduino examples lib tools
    arduino-builder hardware libraries tools-builder >>>>>>> arduino-linux-setup.sh install.sh revisions.txt uninstall.sh

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo ./install.sh
    [sudo] password for rob:
    sudo: ./install.sh: command not found
    rob@rob-Z97:~/Downloads/arduino-1.8.19$
    What does
    ls -l install.sh
    show?

    (sudo lies about errors, so now we have to find out what is really >>>>>> wrong with install.sh.)

    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ls -l install.sh
    -rw-r--r-- 1 rob rob 11070 Dec 20 16:12 install.sh

    It’s not executable, so sudo won’t execute it.

    Did you try running it without sudo?
    http://docs.arduino.cc/software/ide-v1/tutorials/Linux doesn’t seem to >>>> think you need it.

    Without sudo:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ ./install.sh
    bash: ./install.sh: Permission denied

    You can see the permissions, as packed inside the tar file,
    are 755 for install.sh .

    [Picture]

    https://i.postimg.cc/pX2bMVs1/permissions-arduino.gif

    Check your umask value, and see if it is interfering.
    Mine is 0022 (the lead zero presumably is for SUID or something).
    Traditionally it would have printed out 022, and not interfered
    with a 755 incoming.

    $ umask
    0022 # 755 packed ==> 755 unpacked, should have worked

    It's like a .profile or similar, is not working. Like, maybe, when
    you copied home, some dot files got missed ? Anyway, check umask.

    This stuff happens all the time, when unpacking kits like this.
    It doesn't even require shenanigans to break it :-)

    Paul



    I installed the file with:
    rob@rob-Z97:~/Downloads/arduino-1.8.19$ sudo bash ./install.sh
    [sudo] password for rob:
    Adding desktop shortcut, menu item and file associations for Arduino IDE...


    done!

    Running umask gives:
    rob@rob-Z97:~$ umask
    0002

    So what does 0002 mean
    thanks

    Octal representation of '...rwxrwxrwx' clearing the rightmost 'w' so
    that you get 'rwxrwxr-x' (others may not write the file).

    "umask sets the file creation mask of the current shell execution
    environment to the value specified by the mask operand. This mask
    affects the file permission bits of subsequently created files.
    mask can either be an octal number or a symbolic value as described
    in chmod(1). If a symbolic value is given, the new file creation mask
    is the complement of the result of applying mask to the complement of
    the current file creation mask."


    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon May 2 17:35:43 2022
    Am Montag, 02. Mai 2022, um 16:34:17 Uhr schrieb Rob H:

    It is installed now:

    The problem is not about sudo being installed or not, it is about if a
    .sh file is marked as executable or not.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rob H@21:1/5 to Marco Moock on Mon May 2 17:35:29 2022
    On 02/05/2022 17:07, Marco Moock wrote:
    Am Montag, 02. Mai 2022, um 16:44:05 Uhr schrieb Rob H:

    Ok , but what about when I have to use sudo for other commands , like
    sudo mkdir etc

    I am Administrator in users and groups with a password which works
    everytime. So if I am an administrator, why am I getting this error.

    You problem isn't related to sudo here.
    If you run shell scripts, you have 2 options:
    You can either rund them directly, by ./script.sh, but here it is
    necessary that the executable bit for the user running is set (be ware
    of the context, owner, group others).

    The other option is to use the bash command and use the path to the
    script as option:
    bash ./script.sh
    This doesn't require that the x bits are set. It requires that you can
    read the file (r bit).


    Ok thanks, yes I found that running the bash command installed the
    script. Also I found that by entering su, then my password, sudo works
    like it normally used to.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to Janis Papanagnou on Mon May 2 10:20:08 2022
    Janis Papanagnou wrote:
    Mike Easter wrote:

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    That time you got the syntax wrong;

    nitpick: the syntax is correct, there's just no file with that
    relative path in the current working directory.

    you need a slash before the 'usr/bin/sudo' as in

    /usr/bin/sudo

    Or a

    cd /

    before issuing that command with the given relative path.

    So you wouldn't call the 'missing' leading slash a syntax error, given
    the relative path?

    user:-$

    Maybe I don't have the full or correct understanding of the term syntax
    in the context of the command line. I think of it as being the rules
    for formulating the instruction.

    Isn't the path instruction part of the syntax?

    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue May 3 06:48:12 2022
    Am Montag, 02. Mai 2022, um 17:35:29 Uhr schrieb Rob H:

    Ok thanks, yes I found that running the bash command installed the
    script.

    Wrong. It calls bash and bash runs the script in the first argument. It
    will not "install" that script anywhere.

    Also I found that by entering su, then my password, sudo
    works like it normally used to.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Mike Easter on Tue May 3 10:12:52 2022
    On 02.05.2022 19:20, Mike Easter wrote:
    Janis Papanagnou wrote:
    Mike Easter wrote:

    rob@rob-Z97:~$ usr/bin/sudo
    bash: usr/bin/sudo: No such file or directory

    That time you got the syntax wrong;

    nitpick: the syntax is correct, there's just no file with that
    relative path in the current working directory.

    you need a slash before the 'usr/bin/sudo' as in

    /usr/bin/sudo

    Or a

    cd /

    before issuing that command with the given relative path.

    So you wouldn't call the 'missing' leading slash a syntax error, given
    the relative path?

    user:-$

    Maybe I don't have the full or correct understanding of the term syntax
    in the context of the command line. I think of it as being the rules
    for formulating the instruction.

    Isn't the path instruction part of the syntax?


    As I've shown in the second example (the one with 'cd /'), the same
    construct (with the same syntax) is working just fine. So, yes, it's
    not the syntax that is wrong, it's the semantical context.

    Anyway it was just a nitpick, likely not worth for a discussion in a
    thread with a very practical question. Though if you're interested to
    discuss that (lexical components, syntactical phrases, and semantic
    contexts in the shell language) we can of course expand on that, but comp.unix.shell might be a better place for that.

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)