06-23-2006
"man limits" and look at UID_MAX
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello guys,
well as i mentioned first i have a serious problem, i need your help.
i have a hosting plan with linux, apache and php.
i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (1 Reply)
Discussion started by: mehdi
1 Replies
2. AIX
We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
What is the best ways to keep UIDs and GIDs consistent across unix and linux server. my company have a servers running on hpux, linux, aix and many of them have veritas cluster and hacmp running, many time user account have been created only on one of the cluster node and not the others... (4 Replies)
Discussion started by: robertngo
4 Replies
4. Solaris
Hi all,
I am bit confused about UIDs on my server where LDAP athentication happens. UIDs are generally in the range of 0-65534 for any Solaris OS version(correct if i am wrong). My server is running on Solaris 9. Below are user accounts available on my server.
... (10 Replies)
Discussion started by: vvpotugunta
10 Replies
5. Shell Programming and Scripting
Hi,
Please anyone help to achive this using perl or unix scripting .
This is date in my table 20090224,based on the date need to check the files,If file exist for that date then increment by 1 for that date and check till max date 'i.e.20090301 and push those files .
files1_20090224... (2 Replies)
Discussion started by: akil
2 Replies
6. UNIX for Dummies Questions & Answers
I have a list of about 200,000 lines in a text file that look like this:
1 1 120
1 80 200
1 150 270
5 50 170
5 100 220
5 300 420
The first column is an identifier, the next 2 columns are a range (always 120 value range)
I'm trying fill in the values of those ranges, and remove... (4 Replies)
Discussion started by: knott76
4 Replies
7. Red Hat
Hi,
I'm considering implementing pam_krb5 on RHEL 5.5 and Solaris 10, and I'm in an environment that has a number of legacy NIS domains. They've all been migrated into Active Directory, RFC2307, with the NIS maps that differed in each domain kept within its own container. However, users and... (0 Replies)
Discussion started by: cambridge
0 Replies
8. Shell Programming and Scripting
Hi,
I have two files
file1 chr1_22450_22500
chr2_12300_12350
chr1_34500_34550
file2 11000_13000
15000_19000
33000_44000
If the file 1 ranges fall between file2 ranges then assign the value of file2 in column 2 to file1
output:
chr2_12300_12350 11000_13000
chr1_34500_34550 ... (7 Replies)
Discussion started by: Diya123
7 Replies
9. IP Networking
Greetings folks,
I have a rather lengthy list of banned IP ranges in iptables. Initially it was constructed as a rather ad-hoc affair, then later I discovered a site which had IP Block By Country lists, and imported several into iptables.
If possible, I'd like to be able to verify if the list... (0 Replies)
Discussion started by: putter1900
0 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script that displays all usernames and their UIDs in the following fashion:
name1 uid=999
name2... (2 Replies)
Discussion started by: baniel
2 Replies
LEARN ABOUT CENTOS
pam_limits
PAM_LIMITS(8) Linux-PAM Manual PAM_LIMITS(8)
NAME
pam_limits - PAM module to limit resources
SYNOPSIS
pam_limits.so [conf=/path/to/limits.conf] [debug] [set_all] [utmp_early] [noaudit]
DESCRIPTION
The pam_limits PAM module sets limits on the system resources that can be obtained in a user-session. Users of uid=0 are affected by this
limits, too.
By default limits are taken from the /etc/security/limits.conf config file. Then individual *.conf files from the /etc/security/limits.d/
directory are read. The files are parsed one after another in the order of "C" locale. The effect of the individual files is the same as if
all the files were concatenated together in the order of parsing. If a config file is explicitly specified with a module option then the
files in the above directory are not parsed.
The module must not be called by a multithreaded application.
If Linux PAM is compiled with audit support the module will report when it denies access based on limit of maximum number of concurrent
login sessions.
OPTIONS
conf=/path/to/limits.conf
Indicate an alternative limits.conf style configuration file to override the default.
debug
Print debug information.
set_all
Set the limits for which no value is specified in the configuration file to the one from the process with the PID 1.
utmp_early
Some broken applications actually allocate a utmp entry for the user before the user is admitted to the system. If some of the services
you are configuring PAM for do this, you can selectively use this module argument to compensate for this behavior and at the same time
maintain system-wide consistency with a single limits.conf file.
noaudit
Do not report exceeded maximum logins count to the audit subsystem.
MODULE TYPES PROVIDED
Only the session module type is provided.
RETURN VALUES
PAM_ABORT
Cannot get current limits.
PAM_IGNORE
No limits found for this user.
PAM_PERM_DENIED
New limits could not be set.
PAM_SERVICE_ERR
Cannot read config file.
PAM_SESSION_ERR
Error recovering account name.
PAM_SUCCESS
Limits were changed.
PAM_USER_UNKNOWN
The user is not known to the system.
FILES
/etc/security/limits.conf
Default configuration file
EXAMPLES
For the services you need resources limits (login for example) put a the following line in /etc/pam.d/login as the last line for that
service (usually after the pam_unix session line):
#%PAM-1.0
#
# Resource limits imposed on login sessions via pam_limits
#
session required pam_limits.so
Replace "login" for each service you are using this module.
SEE ALSO
limits.conf(5), pam.d(5), pam(8).
AUTHORS
pam_limits was initially written by Cristian Gafton <gafton@redhat.com>
Linux-PAM Manual 09/19/2013 PAM_LIMITS(8)