Re: [GLLUG] why is adduser unknown command in Debian 10.4?

2020-09-02 Thread John Hearns via GLLUG
sudo -i
Yes i will burn in heck.

On Wed, 2 Sep 2020 at 08:19, James Roberts via GLLUG <
gllug@mailman.lug.org.uk> wrote:

> "Use su - instead" - we always were supposed to do that and I tried to
> remember to do so, but bad habits learned early on persist and I often
> slipped. Now I'll be forced into canonicity :)
>
> MeJ
>
> On 01/09/2020 18:24, Andy Smith via GLLUG wrote:
> > Hello,
> >
> > On Tue, Sep 01, 2020 at 04:01:04PM +, MJ via GLLUG wrote:
> >> desktop@desktop:~$ su
> >> Password:
> >> root@desktop:/home/desktop# adduser desktop dialout
> >> bash: adduser: command not found
> >> root@desktop:/home/desktop#
> >
> > Most likely /usr/sbin isn't in your path as "su" doesn't do that any
> > more.
> >
> > https://wiki.debian.org/NewInBuster
> >
> > == Changes
> >
> > * The su command in buster is provided by the util-linux source
> >package, instead of the shadow source package, and no longer
> >alters the PATH variable by default. This means that after doing
> >su, your PATH may not contain directories like /sbin, and many
> >system administration commands will fail.
> >
> >> This is LPC 101 standard stuff?!
> >
> > Rote learning goes out of date. Working out how to diagnose a
> > "command not found" error is more valuable.
> >
> > $ command -v adduser
> > /sbin/adduser
> > # Oh, /usr/sbin is in my user's path then. Because I set that on purpose
> > $ PATH= command -v adduser
> > $ apt-file search bin/adduser
> > adduser: /usr/sbin/adduser
> > $ dpkg -L adduser | grep bin
> > /usr/sbin
> > /usr/sbin/adduser
> > /usr/sbin/deluser
> > /usr/sbin/addgroup
> > /usr/sbin/delgroup
> > $ ls -lah /usr/sbin/adduser
> > -rwxr-xr-x 1 root root 34K Sep 15  2018 /usr/sbin/adduser
> >
> > So, PATH issue.
> >
> > Cheers,
> > Andy
> >
>
> --
> Stabilys Ltdwww.stabilys.com
> 244 Kilburn Lane
> LONDON
> W10 4BA
>
> 0845 838 5370
>
> --
> GLLUG mailing list
> GLLUG@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/gllug
-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] why is adduser unknown command in Debian 10.4?

2020-09-02 Thread James Roberts via GLLUG
"Use su - instead" - we always were supposed to do that and I tried to 
remember to do so, but bad habits learned early on persist and I often 
slipped. Now I'll be forced into canonicity :)


MeJ

On 01/09/2020 18:24, Andy Smith via GLLUG wrote:

Hello,

On Tue, Sep 01, 2020 at 04:01:04PM +, MJ via GLLUG wrote:

desktop@desktop:~$ su
Password:
root@desktop:/home/desktop# adduser desktop dialout
bash: adduser: command not found
root@desktop:/home/desktop#


Most likely /usr/sbin isn't in your path as "su" doesn't do that any
more.

https://wiki.debian.org/NewInBuster

== Changes

* The su command in buster is provided by the util-linux source
   package, instead of the shadow source package, and no longer
   alters the PATH variable by default. This means that after doing
   su, your PATH may not contain directories like /sbin, and many
   system administration commands will fail.


This is LPC 101 standard stuff?!


Rote learning goes out of date. Working out how to diagnose a
"command not found" error is more valuable.

$ command -v adduser
/sbin/adduser
# Oh, /usr/sbin is in my user's path then. Because I set that on purpose
$ PATH= command -v adduser
$ apt-file search bin/adduser
adduser: /usr/sbin/adduser
$ dpkg -L adduser | grep bin
/usr/sbin
/usr/sbin/adduser
/usr/sbin/deluser
/usr/sbin/addgroup
/usr/sbin/delgroup
$ ls -lah /usr/sbin/adduser
-rwxr-xr-x 1 root root 34K Sep 15  2018 /usr/sbin/adduser

So, PATH issue.

Cheers,
Andy



--
Stabilys Ltdwww.stabilys.com
244 Kilburn Lane
LONDON
W10 4BA

0845 838 5370

--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] why is adduser unknown command in Debian 10.4?

2020-09-01 Thread Andy Smith via GLLUG
Hello,

On Tue, Sep 01, 2020 at 04:01:04PM +, MJ via GLLUG wrote:
> desktop@desktop:~$ su
> Password: 
> root@desktop:/home/desktop# adduser desktop dialout
> bash: adduser: command not found
> root@desktop:/home/desktop# 

Most likely /usr/sbin isn't in your path as "su" doesn't do that any
more.

https://wiki.debian.org/NewInBuster

== Changes

* The su command in buster is provided by the util-linux source
  package, instead of the shadow source package, and no longer
  alters the PATH variable by default. This means that after doing
  su, your PATH may not contain directories like /sbin, and many
  system administration commands will fail.

> This is LPC 101 standard stuff?!

Rote learning goes out of date. Working out how to diagnose a
"command not found" error is more valuable.

$ command -v adduser
/sbin/adduser
# Oh, /usr/sbin is in my user's path then. Because I set that on purpose
$ PATH= command -v adduser
$ apt-file search bin/adduser
adduser: /usr/sbin/adduser
$ dpkg -L adduser | grep bin
/usr/sbin
/usr/sbin/adduser
/usr/sbin/deluser
/usr/sbin/addgroup
/usr/sbin/delgroup
$ ls -lah /usr/sbin/adduser
-rwxr-xr-x 1 root root 34K Sep 15  2018 /usr/sbin/adduser

So, PATH issue.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] why is adduser unknown command in Debian 10.4?

2020-09-01 Thread John Winters via GLLUG

On 01/09/2020 17:01, MJ via GLLUG wrote:

desktop@desktop:~$ su
Password:
root@desktop:/home/desktop# adduser desktop dialout
bash: adduser: command not found
root@desktop:/home/desktop#


Do you have the adduser package installed?

John

--
Xronos Scheduler - https://xronos.uk/
All your school's schedule information in one place.
Timetable, activities, homework, public events - the lot
Live demo at https://schedulerdemo.xronos.uk/

--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

[GLLUG] why is adduser unknown command in Debian 10.4?

2020-09-01 Thread MJ via GLLUG
desktop@desktop:~$ su
Password: 
root@desktop:/home/desktop# adduser desktop dialout
bash: adduser: command not found
root@desktop:/home/desktop# 

This is LPC 101 standard stuff?!

I plan to use WAMMU with T68i, for mobile bicycle mechanic office tool.
For those that are young that is serial port /;.
Thanks
-- 
Miro
=
"I JUST WANNA DO GOD'S WILL!" -- Dr. Martin L. King Jr.
"AND IF YOU TOLERATE THIS, YOUR CHILDREN WILL BE NEXT" -- MSP
=

-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug