Page 1 of 1

User rights

PostPosted: Jul 10th, '14, 09:43
by Lebarhon
Hello,
By default, a user created during installation has a /home/<username> directory created with umask=022. That means drwxr-xr-x.
A user created later with MCC/drakfont has a /home/<username> directory created with umask=077. That means drwx------.

Does anyone know the reason for this difference ? This behaviour is also true with OpenMandriva, Rosa... With Ubuntu, Zenwalk,... it is always umask=022. With Fedora, always umask=077.
Thanks.

Re: User rights

PostPosted: Jul 10th, '14, 10:54
by doktor5000
That's a longstanding bug existing since old Mandriva times: https://bugs.mageia.org/show_bug.cgi?id=618

Re: User rights

PostPosted: Jul 10th, '14, 15:35
by Lebarhon
Thanks doktor,
It is strange that nobody can decide how to fix this bug. umask=027 seemed a good choice.
I don't know what to write in the documentation, so far it was presented as a feature, I think I will clearly say it's a bug and warn people about the possible consequences.

Re: User rights

PostPosted: Jul 10th, '14, 17:31
by doktor5000
Lebarhon wrote:It is strange that nobody can decide how to fix this bug. umask=027 seemed a good choice.


umask=027 is a different bug/feature request. First we need to make sure that both the installer and later userdrake respect the same settings.
I've just commented on the bug, problem is that libuser does not import/use the default umask value from /etc/login.defs

Code: Select all
[doktor5000@Mageia4 ~]$ sudo grep -i umask /etc/login.defs
#       UMASK           Default "umask" value.
UMASK           022
# Enable setting of the umask group bits to be the same as owner bits

Re: User rights

PostPosted: Jul 11th, '14, 05:13
by benmc
Hi

Not sure if this is useful or not.

I was reading up on the installer a while ago, and all users created at install will have the same rights [ IIRC ].
As indicated by Lebarhon, any users later created via MCC have lesser rights

I understand the reasoning was that a " guest account " can be set up via MCC and one would want it to have lesser rights.

Re: User rights

PostPosted: Jul 11th, '14, 06:48
by Ken-Bergen
I believe it's the other way around.

The /home folders of users created during install can be entered by any user but those created later can only be entered by their owners and root.