From: Nick Klauer Date: 2011-08-19T11:01:35+09:00 Subject: Re: Sticky bit via pure ruby --001517447aeeaf5ff604aad21be4 Content-Type: text/plain; charset=UTF-8 Just a wild shot in the dark, but according to this ( http://en.wikipedia.org/wiki/Sticky_bit#Examples), the octal code is 1000 for the sticky bit in unix. In Ruby's documentation (http://ruby-doc.org/core/classes/File.html#M000037) File#chmod can set the octal bits for a file, which I would guess would be 1xxx, where xxx is what you normally set your permissions to (644 usually). -Nick Klauer On Thu, Aug 18, 2011 at 20:00, Marc Heiler wrote: > In unix you can do: > > chmod -v a+wt /tmp > > To set the sticky bit. > > But how can I do this via ruby? > > -- > Posted via http://www.ruby-forum.com/. > > --001517447aeeaf5ff604aad21be4--