LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-18-2005, 08:02 AM   #1
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Rep: Reputation: 15
floppy.lock


so question..


i was just screwing around with the DU command and ran this

Code:
du / -ah | grep ^[0-9].[0-9]G
To which i got alot of things that i expected (it is a fileserver afterall), but i also got a could of weird hits in my /var/lock directory (look below).

server:var/lock# du -ah
210M ./cdrom.lock
2.1G ./floppy.lock
2.3G .


so i dont have a cdrom / floppy inserted into my machine... is it ok to just blow these lock files away? and how on earth did they get so big? i might have inserted one floppy in when installed the system ages ago ... that was also the last time it would have used a CD. Is this something a reboot would get rid of? is this just someone screwing with my system?



Thanks
 
Old 11-18-2005, 08:11 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
On my Debian there are no files in /var/lock so its likely safe to remove them.

BEFORE you do that though you might want to try "file <filename>" to see what it thinks they are. If they are text or ascii you can do "more <filename>" to see the contents. If they're ELF binaries or data files you can try "strings <filename>" which isn't quite as helpful but scrolling through it may give you some clue as to what they are.

It might also be worthwhile to do "ls -l <filename>" to see if they are executable or worse yet setuid for root. Maybe they're trojans someone planted in this area where most people wouldn't look?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
Caps Lock & Scroll Lock Flashing thedug Linux - General 6 06-07-2008 09:43 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
Num, Scroll, Caps/Lock all Lock up Slackware Zamochit Linux - Newbie 0 10-18-2004 07:47 PM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration