From: "Peña, Botp" Date: 2007-01-27T16:13:33+09:00 Subject: Re: prob with File.open and perms From: Une B�vue [mailto:unbewusst.sein@google.com.invalid] # i get the following perms : # --w----r-- # Hi Une, it works for me. #---------- root@pc4all:~# cat test3.rb File.open('a_file',File::WRONLY|File::TRUNC|File::CREAT,644) do |f| f.print 'something else' end root@pc4all:~# ruby test3.rb root@pc4all:~# ll a_file -rw-r--r-- 1 root root 14 Jan 27 15:07 a_file root@pc4all:~# ruby -v; uname -an ruby 1.8.5 (2006-12-21 patchlevel 5000) [i686-linux] Linux pc4all 2.6.15-27-686 #1 SMP PREEMPT Fri Dec 8 18:00:07 UTC 2006 i686 GNU/Linux #---------- kind regards -botp