On Sun, 16 Nov 2003, Shachar Shemesh wrote: > Ron Artstein wrote: > > >What the FM > >needed was a line saying that in order to run a file it has to have > >execute permissions *and be on a device mounted with the exec flag*. > > > > > Actually, I don't think it's the fine manual's fault at all. Mount is > mount, permissions are permissions. > > What I think should happen is that, when a partition is mounted > "noexec", it should do just that - no exec. Even if the filesystem > itself has the x flag on, it should not appear to be on. > > Had that been the situation: > Try to run the program > Get "permission denied". > Do "ls" - see "-rw-rw-r--". > Do "chmod a+x a.out". > Try to run the program. > Get "permission denied" again. > Do "ls" - see "-rw-rw-r--". > Realize that something is preventing the "x" flag from being set. > Remeber "noexec" mount option. > > Shachar
According to this suggestion, if I accidentally mount a partition with noexec, all x permissions will be deleted, and I will need to chmod +x each and every file later on. Orna. -------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]
