wok-current rev 13519
sudo-pam: add stuff
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 19 17:31:14 2012 +0200 (2012-10-19) |
parents | 62efb7562aad |
children | 21f9c267cacf |
files | sudo-pam/receipt sudo-pam/stuff/etc/pam.d/sudo sudo-pam/stuff/etc/security/limits.conf |
line diff
1.1 --- a/sudo-pam/receipt Fri Oct 19 12:24:13 2012 +0200 1.2 +++ b/sudo-pam/receipt Fri Oct 19 17:31:14 2012 +0200 1.3 @@ -36,6 +36,7 @@ 1.4 cp -a $_pkg/usr/sbin $fs/usr 1.5 cp -a $_pkg/usr/lib/*.so $fs/usr/lib 1.6 cp -a $WOK/sudo/stuff/sudoers $fs/etc 1.7 + cp -a $stuff/* $fs 1.8 } 1.9 1.10 pre_install()
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/sudo-pam/stuff/etc/pam.d/sudo Fri Oct 19 17:31:14 2012 +0200 2.3 @@ -0,0 +1,7 @@ 2.4 +#%PAM-1.0 2.5 +# specify the PAM fallback behaviour 2.6 + 2.7 +auth required pam_unix.so 2.8 +account required pam_unix.so 2.9 +password required pam_unix.so md5 2.10 +session required pam_limits.so
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/sudo-pam/stuff/etc/security/limits.conf Fri Oct 19 17:31:14 2012 +0200 3.3 @@ -0,0 +1,53 @@ 3.4 +# /etc/security/limits.conf 3.5 +# 3.6 +#Each line describes a limit for a user in the form: 3.7 +# 3.8 +#<domain> <type> <item> <value> 3.9 +# 3.10 +#Where: 3.11 +#<domain> can be: 3.12 +# - an user name 3.13 +# - a group name, with @group syntax 3.14 +# - the wildcard *, for default entry 3.15 +# - the wildcard %, can be also used with %group syntax, 3.16 +# for maxlogin limit 3.17 +# 3.18 +#<type> can have the two values: 3.19 +# - "soft" for enforcing the soft limits 3.20 +# - "hard" for enforcing hard limits 3.21 +# 3.22 +#<item> can be one of the following: 3.23 +# - core - limits the core file size (KB) 3.24 +# - data - max data size (KB) 3.25 +# - fsize - maximum filesize (KB) 3.26 +# - memlock - max locked-in-memory address space (KB) 3.27 +# - nofile - max number of open files 3.28 +# - rss - max resident set size (KB) 3.29 +# - stack - max stack size (KB) 3.30 +# - cpu - max CPU time (MIN) 3.31 +# - nproc - max number of processes 3.32 +# - as - address space limit (KB) 3.33 +# - maxlogins - max number of logins for this user 3.34 +# - maxsyslogins - max number of logins on the system 3.35 +# - priority - the priority to run user process with 3.36 +# - locks - max number of file locks the user can hold 3.37 +# - sigpending - max number of pending signals 3.38 +# - msgqueue - max memory used by POSIX message queues (bytes) 3.39 +# - nice - max nice priority allowed to raise to values: [-20, 19] 3.40 +# - rtprio - max realtime priority 3.41 +# 3.42 +#<domain> <type> <item> <value> 3.43 +# 3.44 + 3.45 +#* soft core 0 3.46 +#* hard rss 10000 3.47 +#@student hard nproc 20 3.48 +#@faculty soft nproc 20 3.49 +#@faculty hard nproc 50 3.50 +#ftp hard nproc 0 3.51 +#@student - maxlogins 4 3.52 +@audio - rtprio 90 3.53 +@audio - memlock unlimited 3.54 +@audio - nice -10 3.55 + 3.56 +# End of file