User rights

This forum is for general chat between members about Mageia.

Technical questions are supposed to be posted in support forums. Not here !

User rights

Postby Lebarhon » Jul 10th, '14, 09:43

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.
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: User rights

Postby doktor5000 » Jul 10th, '14, 10:54

That's a longstanding bug existing since old Mandriva times: https://bugs.mageia.org/show_bug.cgi?id=618
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: User rights

Postby Lebarhon » Jul 10th, '14, 15:35

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.
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: User rights

Postby doktor5000 » Jul 10th, '14, 17:31

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: User rights

Postby benmc » Jul 11th, '14, 05:13

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.
benmc
 
Posts: 1213
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: User rights

Postby Ken-Bergen » Jul 11th, '14, 06:48

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.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada


Return to General discussions about Mageia

Who is online

Users browsing this forum: No registered users and 1 guest