ulimit and /etc/security/limits file permission


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ulimit and /etc/security/limits file permission
# 1  
ulimit and /etc/security/limits file permission

Hi there,

I am working on AIX and i dont have permission for /etc/security/limits file.

In the man page of ulimit it is mentioned that it will get the limitations for me from /etc/security/limits file.

the file permission for ulimit command is

-r-xr-xr-x 15 bin bin 1453 Sep 6 15:02 /usr/bin/ulimit

It doesnt have sbit set and i dont have any permission on /etc/security/limits file. So how did ulimit command returned the results for me?

Thank you...
# 2  
I see read and execute permission for others on ulimit file.
So it should allow you to execute.
# 3  
I dont have any problem in executing that...

My question is how it is able to read from /etc/security/limits file for which i dont have permissions to read
# 4  
/usr/bin/ulimit is just a shell script wrapper.

Code:
# file /usr/bin/ulimit
/usr/bin/ulimit: shell script  - psh (POSIX shell)

bakunin
# 5  
what do u mean by shell script wrapper??
which binary is actually executed when we give ulimit -a??

the source code of ulimit in AIX is

ulimit.txt


when i give the command 'sh -x ulimit -a' the output is

command=ulimit
+ [ ulimit = type ]
+ [ ulimit = hash ]
+ ulimit -a
time(seconds) unlimited
file(blocks) 2097151
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) 32768
coredump(blocks) 2097151
nofiles(descriptors) 2000

So when the ulimit -a(bolded) is executed which binary is actually called?

Sorry if i sound very dumb.. i am not able to understand how it works...
# 6  
Quote:
Originally Posted by quintet
what do u mean by shell script wrapper??
which binary is actually executed when we give ulimit -a??
[snip]
Sorry if i sound very dumb.. i am not able to understand how it works...
Sorry, i should have been less terse. The "binary" actually executed is the Korn shell itself, as "ulimit" is a built-in command. See:

Code:
# whence -v ulimit
ulimit is a shell builtin

I hope this helps.

bakunin
# 7  
oh... thank you very much bakunin.. it did help a lot Smilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #341
Difficulty: Easy
Steve Jobs invented the first Apple Computer.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Soft and hard limits for nproc value in /etc/security/limits.conf file (Linux )

OS version : RHEL 6.5 Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server appusr soft nproc 2047 appusr hard nproc 16384 What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ? I just want to know... (3 Replies)
Discussion started by: kraljic
3 Replies

2. AIX

/etc/security/limits value change

Hello, I have changed the value for one user in /etc/security/limit via root user as paul: time(seconds) unlimited file(blocks) 2097151 data(kbytes) unlimited stack(kbytes) unlimited memory(kbytes) unlimited coredump(blocks) unlimited ... (3 Replies)
Discussion started by: saurabh84g
3 Replies

3. Solaris

equivalent of linux /etc/security/limits

Hi, I would like to know, how can I set limits (noproc,fsize,core, data...) to users in solaris, i.e. I want solaris counterpart/equivalent of linux /etc/security/limits.conf Thanks!! (0 Replies)
Discussion started by: kiekurt
0 Replies

4. Linux

/etc/security/limits.conf NIS netgroup support

Hi there, I am trying to set a ulimit max in the /etc/security/limits.conf against a NIS netgroup (which contains a whole bunch of users) instead of a local user or group. so I have a NIS netgroup called +@myusers , none of whose users are defined locally on the box. I want to ensure that... (2 Replies)
Discussion started by: rethink
2 Replies

5. UNIX Desktop Questions & Answers

File size limits

I want to increase the file size, I am trying to store the output but it's not storing the whole output in to the file (7 Replies)
Discussion started by: navintsm
7 Replies

6. Solaris

Solaris counterpart of /etc/security/limits.conf

Hi, How can we set per user core file size, etc in solaris, i.e. I want solaris counterpart/equivalent of linux /etc/security/limits.conf. TIA (0 Replies)
Discussion started by: slash_blog
0 Replies

7. UNIX for Advanced & Expert Users

/etc/security/limits.conf

HI, To restrict the number of files and number of processes used the user we use the following configuration in the file /etc/security/limits.conf. oracle soft nofile 65572 oracle hard nofile 65572 oracle soft noproc 16384 oracle soft noproc 16384 My question is what do the 'soft' and... (1 Reply)
Discussion started by: praveen_b744
1 Replies

8. UNIX for Advanced & Expert Users

nawk - file limits

Hi, I want to search particular pattern and splitting the file in to multiple files. (Splitted files may be more than 150). It got splitted upto 20 files after that, I got some error. nawk: filename.21 makes too many open files. input record number 654, file xxxxxxx Can u guide me to... (1 Reply)
Discussion started by: sharif
1 Replies

9. UNIX for Dummies Questions & Answers

security permission logging onto Oracle database

Hello, I'm trying to login to an Oracle databse without entering the user/passwd. The server resides on an AIX 5.1 system, and using LDAP. I'm entering the following command >sqlplus / @ORACLE_SID This should work but for some odd reason I get a login denied. But if I enter the user id... (1 Reply)
Discussion started by: ctcuser
1 Replies

10. UNIX for Dummies Questions & Answers

File Limits on Solaris 2.6

%ulimit -a nofiles(descriptors) 1024 This means that I can open up to 1024 file per process? But wonder if there is any hardlimit imposed by Solaris 2.6 (eg 255) ? By the way, is there any tool that can trace which files (or sockets) are opened by a process? Thanks DY (5 Replies)
Discussion started by: deaniyoer
5 Replies

Featured Tech Videos