Julia returns a writable root folder when it is run as normal user. Probably just a bug?
julia> iswritable("/") true shell> touch /pippo touch: cannot touch '/pippo': Permission denied shell> ls -l / No supported Python (2.4 / 2.6 / 2.7) version available. total 52 lrwxrwxrwx 1 root root 7 Jun 4 15:39 bin -> usr/bin drwxr-xr-x 3 root root 4096 Jun 13 11:06 boot drwxr-xr-x 18 root root 3260 Jun 20 11:34 dev drwxr-xr-x 89 root root 4096 Jun 18 16:36 etc drwxr-xr-x 7 root root 4096 May 27 10:11 home lrwxrwxrwx 1 root root 7 Jun 4 15:39 lib -> usr/lib lrwxrwxrwx 1 root root 7 Jun 4 15:39 lib64 -> usr/lib drwx------ 2 root root 16384 Feb 21 2013 lost+found drwxr-xr-x 3 root root 4096 Mar 11 2013 mnt drwxr-xr-x 13 root root 4096 May 27 16:58 opt dr-xr-xr-x 179 root root 0 Jun 19 17:23 proc drwxr-x--- 16 root root 4096 May 27 10:05 root drwxr-xr-x 22 root root 640 Jun 23 10:30 run lrwxrwxrwx 1 root root 7 Jun 4 15:39 sbin -> usr/bin drwxr-xr-x 4 root root 4096 Mar 14 2013 srv dr-xr-xr-x 13 root root 0 Jun 23 16:11 sys drwxrwxrwt 16 root root 420 Jun 23 15:51 tmp drwxr-xr-x 9 root root 4096 Jun 13 11:05 usr drwxr-xr-x 12 root root 4096 Jun 13 11:05 var On Monday, June 23, 2014 3:17:35 PM UTC+1, Tomas Lycken wrote: > > Seems dubious to me: > > julia> iswritable("/") > true > > shell> ls -la / > total 142 > drwxr-xr-x 24 root root 4096 jun 11 09:16 . > shell> whoami > tlycken > > `tlycken` is a sudoer, but if I start the REPL as `sudo julia`, `;whoami` > returns `root`, so I don't think that's the problem. > > // T > > On Monday, June 23, 2014 4:07:12 PM UTC+2, John Myles White wrote: > > This seems hard to know without also seeing the output of `ls -l /` >> >> — John >> >> On Jun 23, 2014, at 7:06 AM, Davide Lasagna <lasagn...@gmail.com> wrote: >> >> Hi, >> >> Is this a bug? >> >> julia> iswritable("/") >> true >> >> (running from repl as normal user) >> >> Davide >> >> >> >