LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Closed Thread
  Search this Thread
Old 10-09-2007, 08:17 AM   #1
rahuldevalone
Member
 
Registered: Feb 2007
Location: New Delhi,India
Distribution: RHEL,Cento,Ubuntu,Kali Linux
Posts: 30

Rep: Reputation: 15
Question Help me to block pen drive & CDROM ?


My name is Rahul Kumar.I want to restrict CDROM & pen drive in linux?
Regards,
Rahul Kumar
 
Old 10-09-2007, 01:30 PM   #2
archShade
Member
 
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218

Rep: Reputation: 53
go into file /etc/fstab as root and find a line that looks somthing like this

Code:
/dev/sda1        /media/USB       auto        defaults,user             0   0
take out the user from the 4th collum and users shouldnt be able to mount USB

find a simler entry for CD's
 
Old 10-09-2007, 01:38 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
This thread is a dupe and will be closed shortly.

If anyone wants to contribute an answer to this question please do so here.
 
  


Closed Thread



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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
read & write USB pen drive?? wrangler Linux - Newbie 5 03-08-2005 03:11 PM
USB Pen Drive, /dev/sda1 is not a valid block device Aeiri Linux - Hardware 3 08-13-2004 10:32 AM
USB Pen drive & camera - Auto sort? r_jensen11 Linux - Hardware 1 07-22-2004 11:07 PM
FreeBSD 5.1 & USB Pen Drive Crito *BSD 5 12-27-2003 12:08 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:44 PM.

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