Removable media security in FreeBSD
Fernando Schapachnik
fernando at mecon.gov.ar
Tue Jun 10 04:47:43 PDT 2003
This is how I do it:
mkdir ~user/cdrom
chmod g+w /dev/acd0c
sysctl vfs.usermount=1
pw user mod operador -m user
/etc/fstab:
/dev/acd0c /home/user/cdrom ...
On the KDE Desktop, create a CD-ROM entry:
[Desktop Action Eject]
Exec=kdeeject %v
Name=Eject
[Desktop Entry]
Actions=Eject
Dev=/dev/acd0c
Encoding=UTF-8
FSType=Default
Icon=cdrom_mount
MountPoint=/home/user/cdrom
ReadOnly=true
Type=FSDevice
UnmountIcon=cdrom_unmount
You can do the same for floppies. Also, the KDE entry can be created via the
"New" menu, on the Desktop.
Good luck.
Fernando.
More information about the freebsd-security
mailing list