Re: Bookworm: missing sbin in root path?

2023-07-02 Thread Henning Follmann
On Sat, Jul 01, 2023 at 10:07:59PM -0400, Carl Fink wrote:
> 
> On 7/1/23 21:38, Greg Wooledge wrote:
> > On Sat, Jul 01, 2023 at 08:58:44PM -0400, Carl Fink wrote:
> > > When I type "/usr/sbin/adduser", that works, but shouldn't root default to
> > > having sbin in its path?
> > You probably used su.
> > 
[...]
> Yes, I did use su. I had no idea that would cause a problem.
> 
> Thanks for the pointer. I created /etc/default/su, which should
> resolve this.
> 

or using:
su -

This will include your environment for root

-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com



Re: Bookworm: missing sbin in root path?

2023-07-01 Thread Carl Fink

Yes, I did use su. I had no idea that would cause a problem.

Thanks for the pointer. I created /etc/default/su, which should
resolve this.

 -Carl Fink

On 7/1/23 21:38, Greg Wooledge wrote:

On Sat, Jul 01, 2023 at 08:58:44PM -0400, Carl Fink wrote:

When I type "/usr/sbin/adduser", that works, but shouldn't root default to
having sbin in its path?

You probably used su.

 describes the change
and the known fixes.





Re: Bookworm: missing sbin in root path?

2023-07-01 Thread Greg Wooledge
On Sat, Jul 01, 2023 at 08:58:44PM -0400, Carl Fink wrote:
> When I type "/usr/sbin/adduser", that works, but shouldn't root default to
> having sbin in its path?

You probably used su.

 describes the change
and the known fixes.



Bookworm: missing sbin in root path?

2023-07-01 Thread Carl Fink

Hi,

So I just installed Debian Bookworm on a new system. And things aren't 
there. I noticed that "adduser is already the newest version (3.134)." 
(according to Apt) but typing "adduser" at a terminal prompt does ... 
nothing. Not found.


So, I installed locate (also not present by default?) and discovered 
that although the package installed /usr/sbin/adduser, somehow root 
doesn't have /user/sbin in its PATH.


When I type "/usr/sbin/adduser", that works, but shouldn't root default 
to having sbin in its path?


-Carl Fink