CD and floppy locked to 1 user
From: ken king (kenking-ng_at_NOSPAM.knology.net)
Date: 02/27/05
- Next message: Lenard: "Re: CD and floppy locked to 1 user"
- Previous message: Lenard: "Re: On RHEL -> kernel-2.6.9-5.EL.src.rpm"
- Next in thread: Lenard: "Re: CD and floppy locked to 1 user"
- Reply: Lenard: "Re: CD and floppy locked to 1 user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Feb 2005 14:13:39 -0600
Occasionally, not very often, something apparently happens when a user
logs out that locks the CD & floppy to that user. (most users log in to
X (gdm))
Sometimes when a new user logs in they can not access the CD or the
Floppy.
Normally, when logged in the following commands produce:
[dev]$ ls -l fd0
brw-rw---- 1 c_user floppy 2, 0 Aug 30 2001 fd0
[dev]$ ls -l cdrom
lrwxrwxrwx 1 c_user root 9 Mar 2 2002 cdrom ->
/dev/scd0
[dev]$ ls -l scd0
brw------- 1 c_user disk 11, 0 Aug 30 2001 scd0
Where 'c_user' is the current user logging in ('who' confirms no other
user is logged in).
Once in a while the above commands will say the owner is a different-- a
previously logged in user. NOTE; the previous user may not have even
used any device -- so it's NOT that they left it mounted.
We can:
$sudo chown c_user floppy
And that fixes it ONLY for this new user, the next user will have the
same problem.
Rebooting fixes it, but ......
1-- anybody know how to fix it without rebooting, delete a lock file
somewhere or something?
2-- even better, keep it from happening?
p.s. $cat /etc/fstab
.........
/dev/cdrom /mnt/cdrom iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto
noauto,owner,kudzu 0 0
.....
Thanks,
- Next message: Lenard: "Re: CD and floppy locked to 1 user"
- Previous message: Lenard: "Re: On RHEL -> kernel-2.6.9-5.EL.src.rpm"
- Next in thread: Lenard: "Re: CD and floppy locked to 1 user"
- Reply: Lenard: "Re: CD and floppy locked to 1 user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]