Use pam_umask.so instead of /etc/profile.

Instead of setting teh default umask at /etc/profile, let pam_umask.so
do it's job. Also allow usergroups!
This commit is contained in:
dota? =op 2014-12-24 10:29:01 -02:00
parent 83a7757611
commit f338144a01
6 changed files with 5 additions and 7 deletions

View file

@ -2,9 +2,6 @@
# System wide environment and startup programs.
#Set our umask
umask 022
# Set our default path
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin"
export PATH

View file

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.114
revision=1
revision=2
bootstrap=yes
build_style="meta"
depends="base-directories xbps-triggers"

View file

@ -11,6 +11,7 @@ account required pam_time.so
password required pam_unix.so try_first_pass nullok sha512 shadow
password optional pam_permit.so
session optional pam_umask.so usergroups
session required pam_limits.so
session required pam_unix.so
session optional pam_permit.so

View file

@ -1,7 +1,7 @@
# Template file for 'pam-base'
pkgname=pam-base
version=0.1
revision=1
revision=2
noarch=yes
short_desc="PAM base configuration files"
maintainer="Juan RP <xtraeme@gmail.com>"

View file

@ -74,7 +74,7 @@ TTYPERM 0600
#
ERASECHAR 0177
KILLCHAR 025
UMASK 077
UMASK 022
# Max number of login retries if password is bad
#

View file

@ -1,7 +1,7 @@
# Template file for 'shadow'
pkgname=shadow
version=4.2.1
revision=3
revision=4
build_style=gnu-configure
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --enable-shared --disable-static