Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Default path setting after upgrade to Buster

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
geoffkaniuk
Posts: 93
Joined: 2010-05-30 23:09
Location: Cambridge

Default path setting after upgrade to Buster

#1 Post by geoffkaniuk »

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

CwF
Global Moderator
Global Moderator
Posts: 2716
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Default path setting after upgrade to Buster

#2 Post by CwF »

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?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Default path setting after upgrade to Buster

#3 Post by Head_on_a_Stick »

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 http://forums.debian.net/viewtopic.php?f=16&t=142973
deadbang

geoffkaniuk
Posts: 93
Joined: 2010-05-30 23:09
Location: Cambridge

Re: Default path setting after upgrade to Buster

#4 Post by geoffkaniuk »

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

Post Reply