From: Eric Wong Date: 2011-08-19T11:03:30+09:00 Subject: Re: Sticky bit via pure ruby 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? FileUtils in 1.9.3 has this capability, previous versions did not: ~/ruby-1.9.3/bin/ruby -rfileutils -e "FileUtils.chmod('a+wt', '/tmp')"