unsolicited passwd file changes

Share your ideas, questions or suggestions with us here.
Post Reply
nevets
Posts: 140
Joined: Tue Jun 23, 2020 3:54 am

unsolicited passwd file changes

Post by nevets »

It seems that OS upgrades force changes to my username entry in passwd file, forcing the TE to fish.
I prefer zsh.
Whilst I can retrospectively edit the line from fish back to zsh
'username':*:1002:1002:'username':/home/'useername':/usr/local/bin/zsh
Is there something in the upgrade process that can preserve my choice of TE?
User avatar
ericbsd
Developer
Posts: 2035
Joined: Mon Nov 19, 2012 7:54 pm

Re: unsolicited passwd file changes

Post by ericbsd »

nevets wrote: Sun Oct 29, 2023 9:38 pm It seems that OS upgrades force changes to my username entry in passwd file, forcing the TE to fish.
I prefer zsh.
Whilst I can retrospectively edit the line from fish back to zsh
'username':*:1002:1002:'username':/home/'useername':/usr/local/bin/zsh
Is there something in the upgrade process that can preserve my choice of TE?
An update should not change anything in passwd. Also, editing /etc/passwd is not best practice. It would be best to use pw or chsh to change the shell.
nevets
Posts: 140
Joined: Tue Jun 23, 2020 3:54 am

Re: unsolicited passwd file changes

Post by nevets »

I think some pkg installs seem to effect changes in passwd. Last time I saw this was installing scanner related pkgs I think.
Perhaps there's an artefact somewhere in MATE configuration...?
chsh doesn't seem to update passwd to the new TE which is why I ee the file. Only then does MATE stop using fish.
Post Reply