Re: umask for root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...
6- there are, maybe, some other inconveniences...


Maybe this will help:
https://unix.stackexchange.com/questions/328104/setting-umask-for-su-user-command

I'ill study this... But, I think I'll add to the /root/bashrc "umask=0022" hoping that it will solve my problem.

--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux