# HG changeset patch # User Pascal Bellard # Date 1350660674 -7200 # Node ID a002d7ee3fd995ab9b932992bf912c1e08423e0c # Parent 62efb7562aadaf61e45dc2e8749a746a424b8310 sudo-pam: add stuff diff -r 62efb7562aad -r a002d7ee3fd9 sudo-pam/receipt --- a/sudo-pam/receipt Fri Oct 19 12:24:13 2012 +0200 +++ b/sudo-pam/receipt Fri Oct 19 17:31:14 2012 +0200 @@ -36,6 +36,7 @@ cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/lib/*.so $fs/usr/lib cp -a $WOK/sudo/stuff/sudoers $fs/etc + cp -a $stuff/* $fs } pre_install() diff -r 62efb7562aad -r a002d7ee3fd9 sudo-pam/stuff/etc/pam.d/sudo --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sudo-pam/stuff/etc/pam.d/sudo Fri Oct 19 17:31:14 2012 +0200 @@ -0,0 +1,7 @@ +#%PAM-1.0 +# specify the PAM fallback behaviour + +auth required pam_unix.so +account required pam_unix.so +password required pam_unix.so md5 +session required pam_limits.so diff -r 62efb7562aad -r a002d7ee3fd9 sudo-pam/stuff/etc/security/limits.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sudo-pam/stuff/etc/security/limits.conf Fri Oct 19 17:31:14 2012 +0200 @@ -0,0 +1,53 @@ +# /etc/security/limits.conf +# +#Each line describes a limit for a user in the form: +# +# +# +#Where: +# can be: +# - an user name +# - a group name, with @group syntax +# - the wildcard *, for default entry +# - the wildcard %, can be also used with %group syntax, +# for maxlogin limit +# +# can have the two values: +# - "soft" for enforcing the soft limits +# - "hard" for enforcing hard limits +# +# can be one of the following: +# - core - limits the core file size (KB) +# - data - max data size (KB) +# - fsize - maximum filesize (KB) +# - memlock - max locked-in-memory address space (KB) +# - nofile - max number of open files +# - rss - max resident set size (KB) +# - stack - max stack size (KB) +# - cpu - max CPU time (MIN) +# - nproc - max number of processes +# - as - address space limit (KB) +# - maxlogins - max number of logins for this user +# - maxsyslogins - max number of logins on the system +# - priority - the priority to run user process with +# - locks - max number of file locks the user can hold +# - sigpending - max number of pending signals +# - msgqueue - max memory used by POSIX message queues (bytes) +# - nice - max nice priority allowed to raise to values: [-20, 19] +# - rtprio - max realtime priority +# +# +# + +#* soft core 0 +#* hard rss 10000 +#@student hard nproc 20 +#@faculty soft nproc 20 +#@faculty hard nproc 50 +#ftp hard nproc 0 +#@student - maxlogins 4 +@audio - rtprio 90 +@audio - memlock unlimited +@audio - nice -10 + +# End of file