I'm using
I have done that (in all the suggested files, including
(1) The man page says that if
(2) I want it to operate for root.
When I log into my main account (
But when I then do a
This... does not seem good, as now
I have also tried it with
Like I said, I added that line to all of the suggested
Or are there perhaps (seemingly) unrelated factors at play here? Like, maybe there's some other
Any help would be appreciated. Thanks in advance.
sysutils/pam_xdg to set the various $XDG_xxx variables for shells. The man page for it says you should probably insert the following line into the session sections of various /etc/pam.d config files:
Code:
session optional pam_xdg.so notroot track_sessions
/etc/pam.d/su), with one modification: I did not include the notroot option. I did this because:(1) The man page says that if
notroot is used, "the module will bypass itself for root account logins and perform no actions for root", and(2) I want it to operate for root.
When I log into my main account (
bob), the $XDG_xxx vars are set up as I expect. For example:
Code:
$ echo $XDG_CONFIG_HOME
/home/bob/.config
su, the variable is unchanged:
Code:
# echo $XDG_CONFIG_HOME
/home/bob/.config
This... does not seem good, as now
root will use bob's config and whatnot (including, for a particularly bad example, gpg config). This sort of possible behavior is exactly why I had decided to get rid of notroot in the first place.I have also tried it with
notroot, just in case the problem was a "checking a boolean against the wrong value" sort of bug. This did not help. Also, I tried shutting down the machine and booting from scratch; this also did not help.Like I said, I added that line to all of the suggested
/etc/pam.d files, which are: system, login, sshd, and su. Is there perhaps some other file that I should also add it to? I had imagined that adding it to su would handle it for the case of when a su command is issued.Or are there perhaps (seemingly) unrelated factors at play here? Like, maybe there's some other
pam setting that stops it from happening for root? I strongly believe that adding this line to the specified files was the only change I've ever made to pam configuration, so everything else should be the FreeBSD 13.1 default. And to be clear, I really do mean "ever" - not merely "ever on this particular machine". I'm essentially a total pam newbie.Any help would be appreciated. Thanks in advance.