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
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
# System wide environment and startup programs.
|
# System wide environment and startup programs.
|
||||||
|
|
||||||
#Set our umask
|
|
||||||
umask 022
|
|
||||||
|
|
||||||
# Set our default path
|
# Set our default path
|
||||||
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin"
|
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.114
|
version=0.114
|
||||||
revision=1
|
revision=2
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
build_style="meta"
|
build_style="meta"
|
||||||
depends="base-directories xbps-triggers"
|
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 required pam_unix.so try_first_pass nullok sha512 shadow
|
||||||
password optional pam_permit.so
|
password optional pam_permit.so
|
||||||
|
|
||||||
|
session optional pam_umask.so usergroups
|
||||||
session required pam_limits.so
|
session required pam_limits.so
|
||||||
session required pam_unix.so
|
session required pam_unix.so
|
||||||
session optional pam_permit.so
|
session optional pam_permit.so
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pam-base'
|
# Template file for 'pam-base'
|
||||||
pkgname=pam-base
|
pkgname=pam-base
|
||||||
version=0.1
|
version=0.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc="PAM base configuration files"
|
short_desc="PAM base configuration files"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
|
@ -74,7 +74,7 @@ TTYPERM 0600
|
||||||
#
|
#
|
||||||
ERASECHAR 0177
|
ERASECHAR 0177
|
||||||
KILLCHAR 025
|
KILLCHAR 025
|
||||||
UMASK 077
|
UMASK 022
|
||||||
|
|
||||||
# Max number of login retries if password is bad
|
# Max number of login retries if password is bad
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'shadow'
|
# Template file for 'shadow'
|
||||||
pkgname=shadow
|
pkgname=shadow
|
||||||
version=4.2.1
|
version=4.2.1
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
|
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
|
||||||
--libdir=/usr/lib --enable-shared --disable-static
|
--libdir=/usr/lib --enable-shared --disable-static
|
||||||
|
|
Loading…
Reference in New Issue