User unable to create a file over 2 GB's in size


 
Thread Tools Search this Thread
Operating Systems AIX User unable to create a file over 2 GB's in size
# 1  
Old 10-06-2005
User unable to create a file over 2 GB's in size

Hello, this is my first post.

I have a user who cannot create a file over 2 GB's in size eventhough the FS is large file enabled and I added a special stanza in /etc/security/limits to allow an unlimited file size for this particular user (user1 - see below).

ibm:/home/root (4062)#cat /etc/security/limits

*
* Sizes are in multiples of 512 byte blocks, CPU time is in seconds
*
* fsize - soft file size in blocks
* core - soft core file size in blocks
* cpu - soft per process CPU time limit in seconds
* data - soft data segment size in blocks
* stack - soft stack segment size in blocks
* rss - soft real memory usage in blocks
* nofiles - soft file descriptor limit
* fsize_hard - hard file size in blocks
* core_hard - hard core file size in blocks
* cpu_hard - hard per process CPU time limit in seconds
* data_hard - hard data segment size in blocks
* stack_hard - hard stack segment size in blocks
* rss_hard - hard real memory usage in blocks
* nofiles_hard - hard file descriptor limit
*
* The following table contains the default hard values if the
* hard values are not explicitly defined:
*
* Attribute Value
* ========== ============
* fsize_hard set to fsize
* cpu_hard set to cpu
* core_hard -1
* data_hard -1
* stack_hard -1
* rss_hard -1
* nofiles_hard -1
*
* NOTE: A value of -1 implies "unlimited"
*

default:
fsize = 4194300
core = 4096
cpu = -1
data = 524288
rss = 131072
nofiles = 2000

root:

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:

user1:
fsize = -1

I'm not sure where else to look to resolve this issue.

Thanks,
Shane
# 2  
Old 10-06-2005
I do not use AIX so I won't be much help. But here are a few thoughts anyways... Can root create a big file in that filesystem? You might have a program /usr/bin/ulimit. If so have the user run /usr/bin/ulimit -a and post the results. Some shell also have a built-in ulimit with no -a, so you really may need a path to the program. On most OS'es, I would expect the user to need to log off and back on to get the values..was that done?

The answers to this stuff may help when a AIX expert comes along.
# 3  
Old 10-06-2005
After I made the changes in the limits file I had the user log off and back in, but got the same results. I'll have to test to see if root can create a file over 2 GB's.

Below is the ulimit -a command as ran by the user.

$ ulimit -a
time(seconds) unlimited
file(blocks) 4194272
data(kbytes) 262144
stack(kbytes) 16384
memory(kbytes) unlimited
coredump(blocks) 4096
nofiles(descriptors) 2000

Thanks,
Shane
# 4  
Old 10-06-2005
The "file(blocks) 4194272" is the problem. Somehow that change you made did not take. There is a lsuser command, you might try that to see what fsize and fsize_hard are at. You may need to set fsize_hard to -1 as well.
# 5  
Old 10-06-2005
What is weird is when I issue the lsuser command on the user, it shows the fsize is set to -1. But when I issue the ulimit -a command as the user, the fsize is 4194272???

Thanks,
Shane
# 6  
Old 10-06-2005
What does lsuser say about fsize_hard?
# 7  
Old 10-10-2005
vi /etc/security/limits
this will change on reboot and become prmanent but to change it on the fly
with out rebooting use the following

chuser rss=<value> <username>
chuser fsize=<value> <username>
chuser data=<value> <username>

After reboot this will revert back to what is in /etc/security/limits


+===========================================
Other problems with file system and sizes may be that you have to create an enhanced o ( or big file enabled filesystem ) but you will have to look at what you have set in fs

http://publibn.boulder.ibm.com/doc_l...D6CE066274MEKI
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Unable to create new user without lower character

Hi friends, I want to create new user BG0001 in SunOS and getting below errorbash-3.2# useradd -d /home/BG0001 -m -s /bin/sh BG0001 UX: useradd: BG0001 name should have at least one lower case character. bash-3.2# bash-3.2# OS version is as belowbash-3.2# cat /etc/release ... (7 Replies)
Discussion started by: sandeepkmehra
7 Replies

2. Solaris

Unable to create a ftp user only

Hi all I am facing difficulties when using the useraddcommand. when running useradd -u 60006 -g 100 -d /opt/xxx/yyy/z -m -s /bin/false ftpuser It does create the user, but with a wrong home directory. It creates its home directory at /home/ftpuser Please can you help? (2 Replies)
Discussion started by: fretagi
2 Replies

3. HP-UX

[Solved] Unable to change/create home dir for particular user

Hi all I wanted to change the home dir for a user, but when using smh : SMH->Accounts for Users and Groups->Local Users->Modify User ---------------------------------------------------------------------------------------------------------------------------------------------- * Required... (8 Replies)
Discussion started by: fretagi
8 Replies

4. Solaris

Unable to create or delete a directory in /usr with root user

Hi All, I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as: Unable to remove directory jdk: Read-only file system Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies

5. Red Hat

unable to open / create any file in vi

Hi, I am unable to create/open any file in vi editor for normal user, though using root I am able to create/open any file, using redhat 5.5, example vi test it showing nothing after entering command (9 Replies)
Discussion started by: manoj.solaris
9 Replies

6. Red Hat

Unable to create user in linux

Hi $ uname -a Linux xyz 2.6.18-128.0.0.0.2.el5 #1 SMP Wed Jan 21 05:17:33 EST 2009 x86_64 x86_64 x86_64 GNU/Linux I am unable to add a new user getting following # id uid=0(root) gid=0(root)... (5 Replies)
Discussion started by: ankurk
5 Replies

7. Solaris

Unable to create folder as a user

Hi All, I am trying to create a folder in /export/home/user1 directory as a user1 but I am getting the error message as -bash-3.00$ mkdir abc mkdir: Failed to make directory "abc"; Permission denied Also I tried creating the folder but it fails too -bash-3.00$ touch abc touch: cannot... (2 Replies)
Discussion started by: Manjunath K V
2 Replies

8. UNIX for Dummies Questions & Answers

need to create a file of specified size

Hi, I need to create a file using touch command . I want the size to be of 300 MB . Is it possible with touch or any other command. Thanx for your help. (2 Replies)
Discussion started by: reply2soumya
2 Replies

9. UNIX for Dummies Questions & Answers

to create a file of specified size

hi guys, Is there any way to create a file of specified size ..ie...during creation itself u should be able to specify the size of it... (12 Replies)
Discussion started by: deep
12 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question