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:
parent
83a7757611
commit
f338144a01
6 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>"
|
||||
|
|
|
@ -74,7 +74,7 @@ TTYPERM 0600
|
|||
#
|
||||
ERASECHAR 0177
|
||||
KILLCHAR 025
|
||||
UMASK 077
|
||||
UMASK 022
|
||||
|
||||
# Max number of login retries if password is bad
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue