Showing posts with label aix ulimit. Show all posts
Showing posts with label aix ulimit. Show all posts

Monday, April 28, 2008

AIX set ulimit for user

How to change ulimit/limit for certain user under AIX

1) edit /etc/security/limits like example below. No need to restart anything


Set "ulimit" to "unlimited" for interfac@AMSDC1U043 Unix Account: interfac / mireports


vi /etc/security/limits

interfac:
fsize = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
rss_hard = -1
nofiles_hard = -1

mireport:
fsize = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
rss_hard = -1
nofiles_hard = -1

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...