Fsize in default: stanza.


 
Thread Tools Search this Thread
Operating Systems AIX Fsize in default: stanza.
# 1  
Old 10-25-2013
Fsize in default: stanza.

The default: stanza in /etc/security/limits is still set to 2097151 on fsize (max file size). I know tar had issues with large files but is there any other reasons for it? I'm thinking yes since it's still set to that by IBM.

Cheers,
DH
# 2  
Old 10-25-2013
Often limits on file size are set so that a file cannot be created which so so large to fill up the file system.

For example, if you did not limit the file size when uploading a file to a web server, a hacker could easily bring done the server by uploading huge files and fill of the file system.. then the server would crash.
# 3  
Old 10-25-2013
I hear you. That's true if it's all on one LV.

In this case, the user account is limited to their LV / FS. So no crash is possible for the OS. With smaller files, hackers can upload repeatedly instead to do the same anyway. Larger files may actually hamper those hack attempts because these same hackers would run into timeout issues from other software like sftp, ftp, ssh, connection speeds / fluctuations etc.

I know tar / cpio have limitations on 2GB, even on AIX 7.1, but what about other utilities?

Cheers,
DH
# 4  
Old 10-26-2013
Quote:
Originally Posted by Devyn
I know tar / cpio have limitations on 2GB, even on AIX 7.1, but what about other utilities?
The AIX tar adheres to the USTAR standard, which in turn means: no single input file processed by tar can be larger than 8 GB, but the archive itself can be of (nearly) unlimited size. The reason for the limitation is the data structure of the USTAR header which can't hold size information of more than 8 GB.

I hope this helps.

bakunin

Last edited by bakunin; 10-26-2013 at 03:35 AM..
# 5  
Old 10-26-2013
Quote:
Originally Posted by bakunin
The AIX tar adheres to the USTAR standard, which in turn means: no single input file processed by tar can be larger than 8 GB, but the archive itself can be of (nearly) unlimited size. The reason for the limitation is the data structure of the USTAR header which can't hold size information of more than 8 GB.

I hope this helps.

bakunin
The pax utility (with the -x pax option to set the archive format) provides extensions to the ustar archive format to remove the ustar format file size limits. When using the pax archive format, any size file can be saved in an archive as long as the archive created will fit into whatever device or filesystem is used to contain the archive.

Some implementations of cpio and tar (as well as the pax utility) are able to create and read pax format archives.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

A Stanza File Parser in Pure ksh

As it was ultimately Don Craguns idea that saved the whole project i can as well give something back to the community. This is my stanza file parser, which was written only using ksh without any external programs. The stanza structure There is some inconsistency as to what exactly is meant by... (0 Replies)
Discussion started by: bakunin
0 Replies

2. Shell Programming and Scripting

How to extract entire stanza using awk?

Hello friends, I have a text file with lot of stanzas with each starting with "O-O-O. Sample file :- 1. d4 Nf6 2. c4 g6 3. Nc3 d5 4. cxd5 Nxd5 5. e4 Nxc3 6. bxc3 Bg7 7. Nf3 c5 8. Rb1 O-O 9. Be2 cxd4 10. cxd4 Qa5+ 11. Bd2 Qxa2 12. O-O Bg4 13. Bg5 h6 14. Be3 (8 Replies)
Discussion started by: prvnrk
8 Replies

3. HP-UX

change ulimit fsize permanantly

Hi, on HP-UX when I run command ulimit -a I get time(seconds) 4096 file(blocks) unlimited data(kbytes) 1048576 stack(kbytes) 8192 memory(kbytes) unlimited coredump(blocks) 4194303 nofiles(descriptors) 4096 Now I want to change file(blocks) ... (2 Replies)
Discussion started by: namita.mundada
2 Replies

4. Shell Programming and Scripting

selecting the stanza fields

Hi Friends, I have a stanza file as below : CuDv: name = "hdisk34" status = 0 chgstatus = 3 ddins = "scsidisk" location = "06-08-02" parent = "fscsi0" connwhere = "W_0" PdDvLn = "disk/fcp/mpioosdisk" CuDv: ... (1 Reply)
Discussion started by: vijaya2006
1 Replies

5. Shell Programming and Scripting

getting the stanza names if the pattern found

Hi Friends, I have a file as below : machine1: abc xyz qwerty machine2: jkl mno machine3: hhh kkk qwerty Now ...i need to find all the stanza names that have the pattern "qwerty'" in it...( i need to get the output as machine1 and machine3 since... (4 Replies)
Discussion started by: vijaya2006
4 Replies
Login or Register to Ask a Question