特殊:Badtitle/NS100:MakeFloppyDriveAvailableToEveryone:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/MakeFloppyDriveAvailableToEveryone}} {{Languages|UbuntuHelp:MakeFloppyDriveAvailableToEveryone}} By default, Edubuntu 5.10 configures the floppy d...
 
Wikibot留言 | 贡献
无编辑摘要
第4行: 第4行:
* Anyone can mount it, but only the user who mounted it can unmount it
* Anyone can mount it, but only the user who mounted it can unmount it
* Only the user who mounted it can write to it
* Only the user who mounted it can write to it
This document explains how to configure Linux so that anyone can mount, unmount, or write to a floppy diskette without restriction, like some other popular operating systems.
This document explains how to configure Linux so that anyone can mount, unmount, or write to a floppy diskette without restriction, like some other popular operating systems.
Change the floppy diskette drive entry in /etc/fstab file  
Change the floppy diskette drive entry in /etc/fstab file  
<pre><nowiki>
<pre><nowiki>
第16行: 第14行:
/dev/fd0        /media/floppy0  auto rw,users,noauto,fmask=111,dmask=000  0  0
/dev/fd0        /media/floppy0  auto rw,users,noauto,fmask=111,dmask=000  0  0
</nowiki></pre>
</nowiki></pre>
Note that `user` is changed to `users` and the permission masks are specified.  `fmask=111` means for regular files, deny execute permission to all (chmod a-x) and allow all other permissions.  `dmask=000` means for directories, do not deny any permission.
Note that `user` is changed to `users` and the permission masks are specified.  `fmask=111` means for regular files, deny execute permission to all (chmod a-x) and allow all other permissions.  `dmask=000` means for directories, do not deny any permission.
`man fstab` and `man mount` and `man chmod` for more information.
`man fstab` and `man mount` and `man chmod` for more information.
[[category:CategoryDocumentation]]
[[category:CategoryDocumentation]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年11月30日 (五) 20:12的版本

{{#ifexist: :MakeFloppyDriveAvailableToEveryone/zh | | {{#ifexist: MakeFloppyDriveAvailableToEveryone/zh | | {{#ifeq: {{#titleparts:MakeFloppyDriveAvailableToEveryone|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MakeFloppyDriveAvailableToEveryone|1|-1|}} | zh | | }}

By default, Edubuntu 5.10 configures the floppy diskette drive (/dev/fd0) so that

  • Anyone can mount it, but only the user who mounted it can unmount it
  • Only the user who mounted it can write to it

This document explains how to configure Linux so that anyone can mount, unmount, or write to a floppy diskette without restriction, like some other popular operating systems. Change the floppy diskette drive entry in /etc/fstab file

sudo nano --nowrap /etc/fstab

from:

/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

to

/dev/fd0        /media/floppy0  auto rw,users,noauto,fmask=111,dmask=000  0   0

Note that `user` is changed to `users` and the permission masks are specified. `fmask=111` means for regular files, deny execute permission to all (chmod a-x) and allow all other permissions. `dmask=000` means for directories, do not deny any permission. `man fstab` and `man mount` and `man chmod` for more information.