Bug 11383

Summary: msec does not set umask at login
Product: Mageia Reporter: Christian C <bugzzzz>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal    
Version: 3   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: msec CVE:
Status comment:

Description Christian C 2013-10-05 13:22:28 CEST
Description of problem:
When USER_MASK is set, it is not applied to the login shell

I detailled my understanding of the problem in the Mageia french forum :
http://www.mageialinux-online.org/forum/topic-16419+definir-un-umask-pour-tous-les-utilisateurs.php

In /etc/bashrc lines 46-50 :
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
	umask 002
else
	umask 022
fi
 
# are we an interactive shell?
if [ "$PS1" ]; then

The umask is set to 002 and as $PS1 is not set, the 01msec.sh (from /etc/profile.d/) that contains the msec settings is not executed.

The choice of not executing /etc/profile.d/* (and therefore 01msec.sh) in a login shell is not clear.

Version-Release number of selected component (if applicable):


How reproducible:
Allways

Steps to Reproduce:
1. open msec->security settings->system security
2. set USER_MASK to a value different to 002 (e.g. 077)
3. close the session and reopen a session
4. in Dolphin, create a new file : the permissions are -rw-rw-r--
5. open Konsole and create a new file : the permissions are -rw-------


Reproducible: 

Steps to Reproduce:
David Walser 2013-10-05 14:37:16 CEST

Component: Security => RPM Packages
Hardware: x86_64 => All
QA Contact: security => (none)

Manuel Hiebel 2013-10-07 12:41:34 CEST

Source RPM: (none) => msec

Comment 1 Marja Van Waes 2015-03-31 16:04:00 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.
http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ 

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD