Default path setting after upgrade to Buster

Kernels & Hardware, configuring network, installing services

Default path setting after upgrade to Buster

Postby geoffkaniuk » 2020-11-15 12:42

Following my recent upgrade to Buster, I notice that several files relating to the PATH setting have fairly old dates. I assume that this means that the configuration in these files has not changed:
Code: Select all
/etc/login.defs,  /etc/profile
/root is empty

~/.profile, ~/.bashrc
~/.bash_profile and ~/.bash_login do not exist

My current PATH settings obtained from the command line are:
Code: Select all
~$ sudo su
~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

correction: Please see post by Head_on_a_Stick below. It should be ~$ sudo -i

This agree with the settings in the files. Is there is another way to find the current default settings? I did not have success in searches of the Debian wiki or handbook.
Last edited by geoffkaniuk on 2020-11-16 12:09, edited 1 time in total.
Geoff
geoffkaniuk
 
Posts: 83
Joined: 2010-05-30 23:09
Location: Cambridge

Re: Default path setting after upgrade to Buster

Postby CwF » 2020-11-15 16:23

Interesting. I have three with etc/profile dated 03/04/2016. Two were installed as Jessie, now busters, One installed as Stretch, still stretch. I have Bullseye versions not running, I'll check, I expect the same since I never have reinstalled.

Issues?
CwF
 
Posts: 812
Joined: 2018-06-20 15:16

Re: Default path setting after upgrade to Buster

Postby Head_on_a_Stick » 2020-11-15 17:22

Note that LightDM doesn't run bash as a login shell so /etc/profile{,.d/*} & ~/.profile won't be read (and neither will ~/.bash_profile if you create such a file).

Also:
geoffkaniuk wrote:
Code: Select all
~$ sudo su

No.

Code: Select all
sudo -i

See also viewtopic.php?f=16&t=142973
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12795
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Default path setting after upgrade to Buster

Postby geoffkaniuk » 2020-11-15 17:25

Post by CwF » 2020-11-15 16:23 Interesting. I have three with etc/profile dated 03/04/2016. ... I'll check ... Issues?

No issues - I wanted to make sure that somehow /sbin had not been added to the local PATH in the intervening years. I am having a discussion with Geany as to why I needed to use sudo -s make install instead of sudo make install when building Geany 1.36
Geoff
geoffkaniuk
 
Posts: 83
Joined: 2010-05-30 23:09
Location: Cambridge


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable