On Tue, Jan 29, 2002 at 06:52:45AM -0600, Greg Rolling wrote:
> I wrote a script to mount a floppy disk, backup some files and then unmout 
> the disk.  I added this to crontab for my regular user account.  When I am 
> logged in to the machine locally the job runs fine.  When I am not logged 
> in, I get an error message that tells me that only root can mount /dev/fd0 
> on /mnt/floppy.

You are probably using RedHat or Mandrake... both have a mount helper
daemon that changes device permissions so that the logged-in user can
mount them without too much fuss.

Login as root and check the permissions on /dev/fd0 then add your
account to the proper group.
Example:
   florin at bear:~$ ls -l /dev/fd0
   brw-rw----    1 root     floppy     2,   0 Oct 18 13:45 /dev/fd0
   florin at bear:~$ ls -l /dev/scd0   
   brw-rw----    1 root     cdrom     11,   0 Oct 15 01:10 /dev/scd0
   florin at bear:~$ grep florin /etc/group
   disk:x:6:florin
   dialout:x:20:florin
   cdrom:x:24:florin
   floppy:x:25:florin

Cheers,
florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020130/262b1e4b/attachment.pgp