NAME usrdsk - secure floppy disk mount and unmount Copyright (c) 1991-1992 Peter Miller. All rights reserved. DESCRIPTION The usrdsk program allows users to mount and unmount floppy disks and CDroms without needing super-user priviledges. This accomplished by making the usrdsk program set-uid-root, and limiting the range of options available. The /etc/mtab file is updated so that commands such as df(1) notice the existence, or absence, of the file system. The source is sufficiently small that cautious system administrators may read it to satisfy themselves that there are no trojans buried in the code. ENVIRONMENTS The usrdsk program has only ever been compiled using gcc- 1.37 under SunOS 4.1.1. (Plain vanilla SunOS doesn't have stdarg.h, and varargs.h isn't portable.) The functionality itself is also fairly system specific, although any UN*X system with floppy disks or CDroms must have some equivalent. If you get usrdsk to work on any other configuration or system, the author would like to know. BUILD After creating a new directory and unpacking the distribution files, check the Makefile to see if the name of the compiler is correct; this is in the first few line of the Makefile, everthing else should be left alone. It should only be necessary to use the command $ make ...lots of output... $ to build the usrdsk program. This should only take a couple of minutes at the most. It will be necessary to manually make the usrdsk program set-uid-root: # chown root usrdsk # chmod og=u-w,u+w usrdsk # The usrdsk program is distributed with tests. The command $ make sure ...lots of output... $ may be used to run the tests. You will need to place a high-density floppy in the floppy drive before running the tests. The contents of the floppy will be overwritten, so the tests will fail if it is write protected. The tests are probably SunOS specific, sigh. To install the usrdsk program, copy it somewhere appropriate # cp usrdsk /usr/local/bin # cp usrdsk.1 /usrlocal/man # The definition of "somewhere appropriate" tends to be very system specific. The above is only a suggestion. FEEDBACK Suggestions for improvements to the usrdsk program are always welcome. Please include the version number reported by the 'usrdsk -version' command when reporting bugs. The author can be reached at Peter Miller LICENSE The usrdsk program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. The usrdsk program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. It should be in the file called COPYING distributed with usrdsk.