Re: mounting /tmp noexec
> That's not my experience. I can only assume your /tmp filesystem,
> like mine, is not vfat-like. Whereas this floppy is:
You probably have some additional settings somewhere (where?).
[terrapin] 02:52:29 ~$ sudo mount -t vfat /dev/fd0 /mnt
[terrapin] 02:52:55 ~$ sudo touch /mnt/a
[terrapin] 02:52:58 ~$ ls -l /mnt
total 0
-rwxr-xr-x 1 root root 0 Jan 3 14:52 a
[terrapin] 02:53:00 ~$ sudo mount -o remount,noexec /mnt
[terrapin] 02:53:12 ~$ ls -l /mnt/
total 0
-rwxr-xr-x 1 root root 0 Jan 3 14:52 a
[terrapin] 02:53:14 ~$ mount
[SKIP]
/dev/fd0 on /mnt type vfat (rw,noexec)
[terrapin] 02:55:27 ~$ sudo umount /mnt
[terrapin] 02:56:20 ~$ sudo mount -t vfat -o noexec /dev/fd0 /mnt
[terrapin] 02:56:31 ~$ ls -l /mnt/a
-rwxr-xr-x 1 root root 0 Jan 3 14:52 /mnt/a
[terrapin] 02:56:37 ~$
Please show output for 'mount' command after mounting floppy.
> ~# mount -t vfat /dev/fd0 /floppy
> ~# ls -l /floppy/p*
> -rwxr-xr-x 1 root root 160498 May 15 2001
> /floppy/pcbits.zip
> ~# umount /floppy/
> ~# mount -t vfat -o noexec /dev/fd0 /floppy
> ~# ls -l /floppy/p*
> -rw-r--r-- 1 root root 160498 May 15 2001
> /floppy/pcbits.zip
> ~# chmod +x /floppy/pcbits.zip
> ~# ls -l /floppy/p*
> -rw-r--r-- 1 root root 160498 May 15 2001
> /floppy/pcbits.zip
> ~# umount /floppy/
> ~#
--
Alexey
"Python is executable pseudocode, Perl is executable line-noise."
Reply to: