From: Jeff Moore Date: 2012-10-29T05:00:38+09:00 Subject: Re: File.readable? and /proc Igor Pirnovar wrote in post #1081710: > Jeff Moore wrote in post #1081705: > >> root@nail:/projects/proc_fs# irb >> >> irb(main):001:0> File.readable? '/proc/sys/fs/binfmt_misc/register' >> => true >> >> !?!?!? > > You are loggeg in as 'root'! Ruby is obviously aware of your superuser > privileges. Run irb as regular user and, you'll see false! > > Cheers, igor It's the inconsistency with: root@nail:/projects/proc_fs# ls -al /proc/sys/fs/binfmt_misc/register --w------- 1 root root 0 2012-10-28 08:24 /proc/sys/fs/binfmt_misc/register that I find mostly surprising. -- Posted via http://www.ruby-forum.com/.