Skip to content
This repository was archived by the owner on Jun 21, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pam.d/common-session-noninteractive
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
# at the start and end of all non-interactive sessions.
#

# Environment setup
session required pam_env.so

# User restrictions
session required pam_namespace.so unmnt_remnt
session required pam_limits.so

# Passwd database handling
session sufficient pam_sss.so
session sufficient pam_unix.so
session required pam_deny.so
25 changes: 6 additions & 19 deletions security/limits.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,9 @@
#
#<domain> <type> <item> <value>
#

#* soft core 0
#root hard core 100000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

@users soft nproc 30
@users hard nproc 50
@users soft nofile 4096
@users hard nofile 10240
@users soft memlock 64
@users hard memlock 128

# End of file
1000:65535 soft nproc 50
1000:65535 hard nproc 75
1000:65535 soft nofile 4096
1000:65535 hard nofile 10240
1000:65535 soft memlock 64
1000:65535 hard memlock 128