On Tue, Aug 24, 2021 at 10:34:22PM +0200, François Patte wrote:
Le 2021-08-24 19:03, Samuel Sieb a écrit :
On 2021-08-24 9:50 a.m., François Patte wrote:
Thank you for your explanations. I made some progress in my
investigations: the problem seems to be a change in the "su"
command from f32 to f34: my personnal umask is 0077 and I use to
log as root using the command "su -". Until f32 this way of doing
gave a root login with all environment variables of the root
account (including the UMASK). As far as I can see this is no more
the case in f34....
Where is the config for the "su" command? And is it possible to
change this behavior?
umask isn't an environment variable. It's a kernel setting for the
process. Why are you using "su" anyway instead of "sudo"? (I don't
know if that will change anything regarding the umask, but it's better
to not have a root password.)
I am using su instead of sudo because:
1- I am a dinosaur from the Unix times...
2- the times are not so ancient when you performed a fedora install
you where asked to set a root password...
3- since these times, appeared the "dnf system upgrade" where the
previous config is continued and my systems are still using a root
password and have no sudoers config... (for how long will it last and
will the packagers inform us of a major change for this?)
4- I found strange the sudo system for it allows to give permissions
on the machine to people who may have a (very) weak password...
5- At the university they have installed users'machine with ubuntu and
sudo system, they gave me all permissions on my machine and I have to
do a "sudo bash" if I want to make changes on it.... I have to change
the umask if I don't want to limit changes to root only..., moreover
the bash history becomes a mix of my commands as a simple user and the
commands I run as root... it is a hotchpotch of commands which becomes
quickly unusable...
I'm not a bash user. But I suspect you could set your HISTFILE to
something like /home/françois/.bash_root.history in your .bashrc
based on id -u being zero.
--
Jon H. LaBadie jonfu@xxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure