I recently created a test zpool (RAIDZ) on some iSCSI shares. I made a few test directories and files. When I do a listing, I see something I''ve never seen before: [root at hostname anewdir] # ls -la total 6160 drwxr-xr-x 2 root other 4 Sep 14 14:16 . drwxr-xr-x 4 root root 5 Sep 14 15:04 .. -rw------T 1 root other 2097152 Sep 14 14:16 barfile1 -rw------T 1 root other 1048576 Sep 14 14:16 foofile1 I looked up the "T" bit in the man page for ls, and it says that "T" means "The 1000 bit is turned on, and execution is off (undefined bit-state)." Which is as clear as mud. I''ve googled around a lot but still can''t find any real info about what this menas. I''ve been doing unix for a long time and have never seen it. Can anyone explain, or at least tell me if I should worry? Thanks. ---------- Learn more about Merchant Link at www.merchantlink.com. THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100914/cb3fe50c/attachment-0001.html>
On Tue, Sep 14, 2010 at 04:13:31PM -0400, Linder, Doug wrote:> I recently created a test zpool (RAIDZ) on some iSCSI shares. I made > a few test directories and files. When I do a listing, I see > something I''ve never seen before: > > [root at hostname anewdir] # ls -la > total 6160 > drwxr-xr-x 2 root other 4 Sep 14 14:16 . > drwxr-xr-x 4 root root 5 Sep 14 15:04 .. > -rw------T 1 root other 2097152 Sep 14 14:16 barfile1 > -rw------T 1 root other 1048576 Sep 14 14:16 foofile1 > > I looked up the "T" bit in the man page for ls, and it says that "T" > means "The 1000 bit is turned on, and execution is off (undefined > bit-state)." Which is as clear as mud.It''s the sticky bit. Nowadays it''s only useful on directories, and really it''s generally only used with 777 permissions. The chmod(1) (man -M/usr/man chmod) and chmod(2) (man -s 2 chmod) manpages describe the sticky bit. Nico --
Nicolas Williams [mailto:Nicolas.Williams at oracle.com] wrote:> It''s the sticky bit. Nowadays it''s only useful on directories, and > really it''s generally only used with 777 permissions. The chmod(1)Thanks. It doesn''t seem harmful. But it does make me wonder why it''s showing up on my newly-created zpool. I literally created the pool with one command, created a file (mkfile) with the second command, and did an ls with the third. I can''t imagine how I could have done anything to set that bit. Is this a ZFS weirdness? ---------- Learn more about Merchant Link at www.merchantlink.com. THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
On 19 October, 2010 - Linder, Doug sent me these 1,2K bytes:> Nicolas Williams [mailto:Nicolas.Williams at oracle.com] wrote: > > > It''s the sticky bit. Nowadays it''s only useful on directories, and > > really it''s generally only used with 777 permissions. The chmod(1) > > Thanks. It doesn''t seem harmful. But it does make me wonder why it''s > showing up on my newly-created zpool. I literally created the pool > with one command, created a file (mkfile) with the second command, and > did an ls with the third. I can''t imagine how I could have done > anything to set that bit. Is this a ZFS weirdness?It''s mkfile. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se