Re: umask for root

2021-08-25 Thread Roger Heflin
Does adding init=/bin/bash on the boot line still work also? So long as you remount root as rw and mount any other separate filesystems that are required this also allows a password update and bypasses any single user mode password requirements. I know people that prevent these put a password on

Re: umask for root

2021-08-25 Thread Patrick O'Callaghan
On Tue, 2021-08-24 at 23:13 -0700, Samuel Sieb wrote: > On 2021-08-24 1:04 p.m., Jon LaBadie wrote: > > Things you do after an su are not logged. > > Only the su itself is logged. > > > > Each command run with sudo is logged. > > > > Probably can be circumvented by doing "sudo bash". > > Good rea

Re: umask for root

2021-08-24 Thread Samuel Sieb
On 2021-08-24 10:16 a.m., John Mellor wrote: There is one unhandled situation in Fedora 34 and still requires a root password: You cannot use single-user mode without a root password in order to fix the issues preventing use of multi-user mode.  You have to set a root password just for this sce

Re: umask for root

2021-08-24 Thread Samuel Sieb
On 2021-08-24 1:04 p.m., Jon LaBadie wrote: Things you do after an su are not logged. Only the su itself is logged. Each command run with sudo is logged. Probably can be circumvented by doing "sudo bash". Good reason to not allow shells to be sudo'ed :) I just do "sudo -i" and work from there

Re: umask for root

2021-08-24 Thread Jon LaBadie
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

Re: umask for root

2021-08-24 Thread François Patte
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

Re: umask for root

2021-08-24 Thread Jon LaBadie
On Tue, Aug 24, 2021 at 11:43:10AM -0600, Joe Zeff wrote: On 8/24/21 11:03 AM, Samuel Sieb wrote: 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 i

Re: umask for root

2021-08-24 Thread Joe Zeff
On 8/24/21 11:03 AM, Samuel Sieb wrote: 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 can't speak f

Re: umask for root

2021-08-24 Thread John Mellor
On 2021-08-24 1:03 p.m., Samuel Sieb wrote: 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 usin

Re: umask for root

2021-08-24 Thread Samuel Sieb
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 do

Re: umask for root

2021-08-24 Thread François Patte
Le 2021-08-24 15:17, Jonathan Billings a écrit : On Tue, Aug 24, 2021 at 10:28:17AM +0200, François Patte wrote: The only file talking of umask is /etc/bashrc: if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then umask 002 else umask 022 fi I don't understand the

Re: umask for root

2021-08-24 Thread Jonathan Billings
On Tue, Aug 24, 2021 at 10:28:17AM +0200, François Patte wrote: > The only file talking of umask is /etc/bashrc: > > if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then >umask 002 > else >umask 022 > fi > > I don't understand the meaning It means: If your UI

Re: umask for root

2021-08-24 Thread François Patte
Le 2021-08-24 11:29, Tim via users a écrit : François Patte: I have another computer with fedora 32 and the default umask for root is 0022. Has config been changed from f32 to f34? Samuel Sieb: All my F34 systems have a umask of 0022 for root, so it must be something specific to yours. The

Re: umask for root

2021-08-24 Thread Tim via users
François Patte: >> I have another computer with fedora 32 and the default umask for >> root is 0022. Has config been changed from f32 to f34? Samuel Sieb: > All my F34 systems have a umask of 0022 for root, so it must be > something specific to yours. The first thing that sp

Re: umask for root

2021-08-24 Thread François Patte
199 ] && [ "`id -gn`" = "`id -un`" ]; then    umask 002     else    umask 022     fi I don't understand the meaning I have another computer with fedora 32 and the default umask for root is 0022. Has config been changed from f32 to f34? All my

Re: umask for root

2021-08-24 Thread Samuel Sieb
"`id -un`" ]; then    umask 002     else    umask 022     fi I don't understand the meaning I have another computer with fedora 32 and the default umask for root is 0022. Has config been changed from f32 to f34? All my F34 systems have a umask of 0022 for root, so

Re: umask for root

2021-08-24 Thread François Patte
02 else umask 022 fi I don't understand the meaning I have another computer with fedora 32 and the default umask for root is 0022. Has config been changed from f32 to f34? Thank you. On Monday, August 23, 2021, 04:46:48 PM EDT, François Patte wrote: Bonjour, W

Re: umask for root

2021-08-23 Thread Joe Wulf via users
Check:  /etc/bashrc,   /etc/profile,  /root/.bash_profile and /root/.bashrc, in that order On Monday, August 23, 2021, 04:46:48 PM EDT, François Patte wrote: Bonjour, What is the default umask for root? Until now I thought it was 0022, but, today I can see it is 0077 Has

umask for root

2021-08-23 Thread François Patte
Bonjour, What is the default umask for root? Until now I thought it was 0022, but, today I can see it is 0077 Has something been changed somewhere in my install? Where? Thank you. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris