From owner-freebsd-questions Fri Aug 13 9:18:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from P1M11.prime.net.ua (P1M11.prime.net.ua [195.64.229.43]) by hub.freebsd.org (Postfix) with ESMTP id 3FD4B14F3B for ; Fri, 13 Aug 1999 09:17:38 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by andyo.prime.net (8.9.3/8.9.3) with ESMTP id TAA00507; Fri, 13 Aug 1999 19:01:04 +0300 (EEST) Message-ID: <37B4413A.76305D22@prime.net.ua> Date: Fri, 13 Aug 1999 19:01:00 +0300 From: "Andy V. Oleynik" X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: ru, en, uk MIME-Version: 1.0 To: Ilia Chipitsine Cc: questions@FreeBSD.ORG Subject: Re: unimplemented feature of mount(1) ? References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG # umount /mnt umount: /mnt: not currently mounted # mount_msdos -L ru_SU.KOI8-R -W /usr/libdata/msdosfs/koi2dos /dev/wd0s1 /mnt # cd /mnt # ls -al /mnt total 2605 drwxr-xr-x 1 root wheel 4096 1 янв 1980 . drwxr-xr-x 23 root wheel 1024 13 авг 00:14 .. -rwxr-xr-x 1 root wheel 198 22 май 18:54 AUTOEXEC.BAK -rwxr-xr-x 1 root wheel 210 3 авг 22:08 AUTOEXEC.BAT -rwxr-xr-x 1 root wheel 163 21 май 23:03 AUTOEXEC.DOS -rwxr-xr-x 1 root wheel 198 22 май 20:30 AUTOEXEC.SYD -rwxr-xr-x 1 root wheel 30519 22 май 22:33 BOOTLOG.PRV -rwxr-xr-x 1 root wheel 30648 3 авг 22:12 BOOTLOG.TXT drwxr-xr-x 1 root wheel 4096 4 июн 22:19 CAVEDOG drwxr-xr-x 1 root wheel 4096 21 май 21:47 CDROM -rwxr-xr-x 1 root wheel 95192 15 май 1998 COMMAND.COM -rwxr-xr-x 1 root wheel 278 22 май 19:50 CONFIG.BAK -rwxr-xr-x 1 root wheel 278 21 май 23:02 CONFIG.DOS -rwxr-xr-x 1 root wheel 278 3 авг 21:57 CONFIG.SYD -rwxr-xr-x 1 root wheel 282 5 авг 22:21 CONFIG.SYS -rwxr-xr-x 1 root wheel 50616 22 май 18:22 DETLOG.OLD -rwxr-xr-x 1 root wheel 8435 22 май 20:22 DETLOG.TXT -r-xr-xr-x 1 root wheel 222390 15 май 1998 IO.SYS drwxr-xr-x 1 root wheel 4096 26 май 21:01 LINES -rwxr-xr-x 1 root wheel 19230 26 янв 1995 MMOUSE.COM -rwxr-xr-x 1 root wheel 22 20 май 23:24 MSDOS.--- -r-xr-xr-x 1 root wheel 1676 22 май 20:02 MSDOS.BAK -r-xr-xr-x 1 root wheel 1676 22 май 20:26 MSDOS.SYS -rwxr-xr-x 1 root wheel 12517 22 май 20:29 NETLOG.TXT drwxr-xr-x 1 root wheel 4096 20 май 23:31 Program Files drwxr-xr-x 1 root wheel 4096 21 май 00:50 RECYCLED -rwxr-xr-x 1 root wheel 1619 19 июл 19:57 SCANDISK.LOG -rwxr-xr-x 1 root wheel 115639 22 май 18:53 SETUPLOG.OLD -rwxr-xr-x 1 root wheel 118031 22 май 20:29 SETUPLOG.TXT -rwxr-xr-x 1 root wheel 221 3 авг 21:58 SETUPXLG.TXT -r-xr-xr-x 1 root wheel 6451 20 май 23:41 SUHDLOG.--- -r-xr-xr-x 1 root wheel 7736 22 май 18:17 SUHDLOG.BAK -r-xr-xr-x 1 root wheel 7736 22 май 20:18 SUHDLOG.DAT -r-xr-xr-x 1 root wheel 1802272 22 май 20:18 SYSTEM.1ST drwxr-xr-x 1 root wheel 20480 20 май 23:27 WINDOWS drwxr-xr-x 1 root wheel 4096 21 май 00:25 Мои документы drwxr-xr-x 1 root wheel 4096 21 май 00:45 temp # # ./COMMAND.COM ./COMMAND.COM: MZь`╨vc`ЪЪ`#`f6f6RUS`bbNSCObeuy`cЪЪHbaNbbYdba`ЪЪrbbлЙbbbКb╛bЛbяbМbКbНbcОbCcПbjcЯb┌cРbcСb╨cТbБcУbЖb9ВbHЬbwЫb╝ЗbъШbСЭbЗЩb eЧb#eЪbLec┤e`cёeacбebcчeccРec ec cW bСЭbЗЩb eЧb#eЪbLec┤e`cёeacбebcчeccРec ec cW ci c c╕c╦cяoc pcqcrcsctuucvcwcxcc yco {cV |cz #c╡ ~cФ cq !c3 cY: error 22 $c■: not found %c∙: not found ./COMMAND.COM: 11: Syntax error: "&" unexpected # я продолжения нажмите любую клавишу... # # mc # ./MMOUSE.COM ./MMOUSE.COM: Exec format error. Binary file not executable. # umount /mnt # mount_msdos -noexec -L ru_SU.KOI8-R -W /usr/libdata/msdosfs/koi2dos /dev/wd0s1 /mnt # cd /mnt # ls -al /mnt total 2605 drwxr-xr-x 1 root wheel 4096 1 янв 1980 . drwxr-xr-x 23 root wheel 1024 13 авг 00:14 .. -rwxr-xr-x 1 root wheel 198 22 май 18:54 AUTOEXEC.BAK -rwxr-xr-x 1 root wheel 210 3 авг 22:08 AUTOEXEC.BAT -rwxr-xr-x 1 root wheel 163 21 май 23:03 AUTOEXEC.DOS -rwxr-xr-x 1 root wheel 198 22 май 20:30 AUTOEXEC.SYD -rwxr-xr-x 1 root wheel 30519 22 май 22:33 BOOTLOG.PRV -rwxr-xr-x 1 root wheel 30648 3 авг 22:12 BOOTLOG.TXT drwxr-xr-x 1 root wheel 4096 4 июн 22:19 CAVEDOG drwxr-xr-x 1 root wheel 4096 21 май 21:47 CDROM -rwxr-xr-x 1 root wheel 95192 15 май 1998 COMMAND.COM -rwxr-xr-x 1 root wheel 278 22 май 19:50 CONFIG.BAK -rwxr-xr-x 1 root wheel 278 21 май 23:02 CONFIG.DOS -rwxr-xr-x 1 root wheel 278 3 авг 21:57 CONFIG.SYD -rwxr-xr-x 1 root wheel 282 5 авг 22:21 CONFIG.SYS -rwxr-xr-x 1 root wheel 50616 22 май 18:22 DETLOG.OLD -rwxr-xr-x 1 root wheel 8435 22 май 20:22 DETLOG.TXT -r-xr-xr-x 1 root wheel 222390 15 май 1998 IO.SYS drwxr-xr-x 1 root wheel 4096 26 май 21:01 LINES -rwxr-xr-x 1 root wheel 19230 26 янв 1995 MMOUSE.COM -rwxr-xr-x 1 root wheel 22 20 май 23:24 MSDOS.--- -r-xr-xr-x 1 root wheel 1676 22 май 20:02 MSDOS.BAK -r-xr-xr-x 1 root wheel 1676 22 май 20:26 MSDOS.SYS -rwxr-xr-x 1 root wheel 12517 22 май 20:29 NETLOG.TXT drwxr-xr-x 1 root wheel 4096 20 май 23:31 Program Files drwxr-xr-x 1 root wheel 4096 21 май 00:50 RECYCLED -rwxr-xr-x 1 root wheel 1619 19 июл 19:57 SCANDISK.LOG -rwxr-xr-x 1 root wheel 115639 22 май 18:53 SETUPLOG.OLD -rwxr-xr-x 1 root wheel 118031 22 май 20:29 SETUPLOG.TXT -rwxr-xr-x 1 root wheel 221 3 авг 21:58 SETUPXLG.TXT -r-xr-xr-x 1 root wheel 6451 20 май 23:41 SUHDLOG.--- -r-xr-xr-x 1 root wheel 7736 22 май 18:17 SUHDLOG.BAK -r-xr-xr-x 1 root wheel 7736 22 май 20:18 SUHDLOG.DAT -r-xr-xr-x 1 root wheel 1802272 22 май 20:18 SYSTEM.1ST drwxr-xr-x 1 root wheel 20480 20 май 23:27 WINDOWS drwxr-xr-x 1 root wheel 4096 21 май 00:25 Мои документы drwxr-xr-x 1 root wheel 4096 21 май 00:45 temp # # ./COMMAND.COM ./COMMAND.COM: Permission denied. # ./MMOUSE.COM ./MMOUSE.COM: Permission denied. No comments Ilia Chipitsine wrote: > On Fri, 13 Aug 1999, Andy V. Oleynik wrote: > > > Wrong interpretation, Ilia, > > :-))))))))))) > :-)))))))) > > well, it allows me execute binaries. once file has "x" permission I can > run it ... > > correct me, please. > > > man 8 mount say: > > noexec Do not allow execution of any binaries on the mounted > > file system. This option is useful for a server that > > has > > file systems containing binaries for architectures other > > > > than its own. > > but not the showing files as executable :) > > > > Ilia Chipitsine wrote: > > > > > Dear All, > > > > > > no matter what I use > > > > > > either the following entry in fstab > > > > > > /dev/wd0s1 /mnt/dos msdos rw,noexec,-u=ilia,-W=koi2dos,-L=ru_RU.KOI8-R 2 2 > > > > > > or saying "-o noexec" explicitly, > > > > > > mount(1) seems to ignore it, all the files on /mnt/dos _are_ executable > > > :-( > > > > > > Regards, (Наилучшие пожелания) > > > > > > Ilia Chipitsine (Илья Шипицин) > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > -- > > WBW Andy V. Oleynik (When U work in virtual office > > prime.net.ua's U have good chance to obtain > > system administrator virtual money Ж%o) > > +380442448363 > > > > > > -- WBW Andy V. Oleynik (When U work in virtual office prime.net.ua's U have good chance to obtain system administrator virtual money Ж%o) +380442448363 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message