I wanted to create few files which are Write Once Read Many (WORM). How do I do this? I assigned a permission level of 4000 to a file. Also I have to set retention to the files.
So I created a file. Set the permission levels to 4000 and then used the touch command to set the retention to a specific time.
touch -a -t 201303240215.10 a.txt.
When I ran the
stat command I got this.
File: `a.txt' Size: 6 Blocks: 8 IO Block: 4096 regular file Device: fd00h/64768d Inode: 19267589 Links: 1 Access: (0400/-r--------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2013-03-24 02:15:10.000000000 -0600 Modify: 2013-03-23 05:41:45.000000000 -0600 Change: 2013-03-24 02:00:53.000000000 -0600
Is this the way to create a WORM file?