Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37877154
en ru br
ALT Linux repos
S:0.2-alt1
5.0: 0.1-alt3
4.1: 0.1-alt2.M41.3

Group :: System/Servers
RPM: umask-control

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

umask-control-0.1/000075500000000000000000000000001116552453300141535ustar00rootroot00000000000000umask-control-0.1/umask.conf000064400000000000000000000000151116552453300161360ustar00rootroot00000000000000
umask 0022

umask-control-0.1/umask.control000064400000000000000000000011431116552453300166740ustar00rootroot00000000000000#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/umask.conf

new_subst user \
'^umask[[:space:]]+0022$' \
's,^\(umask[[:space:]]\+\)[[:digit:]]\+$,\10022,'
new_subst group \
'^umask[[:space:]]+0002$' \
's,^\(umask[[:space:]]\+\)[[:digit:]]\+$,\10002,'
new_subst all \
'^umask[[:space:]]+0000$' \
's,^\(umask[[:space:]]\+\)[[:digit:]]\+$,\10000,'

new_help user 'Write permissions on new files only for owner'
new_help group 'Write permissions on new files for owner and group'
new_help all 'Write permissions on new file for all users'

new_summary 'umask rules'

control_subst "$CONFIG" "$*" || exit 1
umask-control-0.1/umask.csh000064400000000000000000000001161116552453300157700ustar00rootroot00000000000000if ( -r /etc/umask.conf ) then
eval `grep 'umask' /etc/umask.conf` ||:
endif
umask-control-0.1/umask.sh000064400000000000000000000001141116552453300156230ustar00rootroot00000000000000if [ -r /etc/umask.conf ]; then
eval `grep 'umask' /etc/umask.conf` ||:
fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin