LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-15-2009, 12:38 AM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool Any tip to handle usb's


May i knw , is there any way to stop detecting external drives , can be usb's or hd , any command or so ..
Thanks in advance
 
Old 02-15-2009, 09:57 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You don't want to detect external drives? Easy, don't plug them in.
There doesn't seem much point having external drives plugged in if you cannot access them... perhaps you use them to weight your computer down for use in high winds? Or, possibly the question needs to be rephrased.
 
Old 02-15-2009, 10:15 AM   #3
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool Any way good joke

if i'm managing a LAN , if i'm the admin , how can protect the client to undetect pendrives , for security reasons i need to perform that operation ..
 
Old 02-15-2009, 11:07 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by vibinlakshman View Post
how can protect the client to undetect pendrives , for security reasons i need to perform that operation ..
If there truly are "security reasons" then the first aspect to address is an information security policy describing what will be handled, how it must be handled and who is authorised to handle it. You'll want infrastructure security, procedures and work instructions, actually compartmentalising the information, access controls and auditing in terms of infrastructure, storage, workstations, software and let's not forget the minute details like making sure it's all legal and employees actually signing their (changed) contracts. *Then* you can worry about disabling peripherals in the BIOS, tweaking the kernel, tweaking HAL and Udev (see PolicyKit) and all other aspects like searching people for paper copies, photos on phones and portable media, LAN isolation, traffic monitoring, et cetera.

Without policy you have no allow/deny rules. Without rules to enforce you are not able to track and "teach" (heh) offenders. Without repercussions Chaos reigns. If there truly are "security reasons" then don't make the mistake thinking solely disabling USB in the BIOS does the trick. It takes a wee bit more than that. (See ISO/IEC 27002).
 
Old 02-15-2009, 05:55 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by vibinlakshman View Post
if i'm managing a LAN , if i'm the admin , how can protect the client to undetect pendrives , for security reasons i need to perform that operation ..
Sorry - I don't see how it is useful for your clients to have their pendrives "undetected" - unless you mean that, right now, every pendrive plugged in to any computer on your network is available as a shared resource to any user?

You handle that situation with the authorization level of your network access system. Jut don't give users access to other user's drives.

I think you need to rethink what you mean by "security" and "protect".

(I'm glad you got the joke - I have been flamed for that sort of thing before...)

Basically - if the device is not detected, it cannot be accessed.
Do you want to stop clients using usb devices on networked machines?
(Suspect - this is why unSpawn is talking about disabling USB in BIOS. You can also remove the driver, block the path, or just bung up the usb port. You'll find anyone serious has a very direct attitude to security.)

Last edited by Simon Bridge; 02-15-2009 at 06:01 PM.
 
Old 02-16-2009, 10:56 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thumbs down

Quote:
Originally Posted by vibinlakshman View Post
May i knw , is there any way to stop detecting external drives , can be usb's or hd , any command or so ..
Thanks in advance
You could try
Code:
hal-disable-polling --device /dev/<whatever>
 
Old 02-16-2009, 09:58 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Hi Catkin - welcome to LQ.
Interesting suggestion - won't that make the external device unavailable to the owner?
 
Old 02-17-2009, 12:28 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thumbs down

Quote:
Originally Posted by Simon Bridge View Post
Hi Catkin - welcome to LQ.
Interesting suggestion - won't that make the external device unavailable to the owner?
Thanks Simon

Yes it will make the external device unavailable to the user.

I think that's OK -- vibinlakshman has not specified that he wants the device(s) to be available to the user, only that he doesn't want them to be detected.

Best

Charles
 
Old 02-17-2009, 03:58 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by catkin View Post
Thanks Simon

Yes it will make the external device unavailable to the user.

I think that's OK -- vibinlakshman has not specified that he wants the device(s) to be available to the user, only that he doesn't want them to be detected.
Yes I noticed - it can be fun to answer the question as stated, however, it is common for people not to know how to phrase their problem as a question - particularly if English is not their first language.

This leads to the much more challenging task of working out what OP actually wants to achieve.

It seems odd, does it not: surely if OP wanted to disable UMS devices, this would be asked? Really we need to know what it is that is happening now which is not wanted. Perhaps he just doesn't want UMS devices to appear (as an icon) on the desktop?

Whatever - some respondent will have supplied the answer needed, or we'll get a redirect. I'm curious to see what OPs reply will be.
 
Old 02-17-2009, 06:01 AM   #10
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool Please for my last posted thread friend

May i please knw whether u r answering for my query or used to demonstrate ur English , do u think the above thread correspons to good English , i mentioned thread in order to understand even to people who doesnt speak or write English properly , thats why used to post thread little bit mixture of colloquialism .. U knw only only ur mother tongue , but we indian can speak ,write , read more than 3 languages , which u cudnt afford my friend
Try to humble which will make u perfect ..
 
Old 02-17-2009, 06:57 AM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by vibinlakshman View Post
May i please knw whether u r answering for my query or used to demonstrate ur English , do u think the above thread correspons to good English , i mentioned thread in order to understand even to people who doesnt speak or write English properly , thats why used to post thread little bit mixture of colloquialism .. U knw only only ur mother tongue ,but we indian can speak ,write , read more than 3 languages , which u cudnt afford my friend
Try to humble which will make u perfect ..
I'm sorry, I'm not sure I understand what you are trying to say ... or who you are talking to. Let me tell you how I read that and you can correct me...

I suspect that you think that someone is criticizing your English. Let me assure you that this is not the case. For my part, I was attempting to advise caution to another that the question written down is not always what the questioner wants to know.

However - it looks like you could be saying that you think someones replies are too complicated in language ("used to demonstrate your English") for you to understand. If this is the case, then please point out the part that was giving you trouble so it can be made clear.

If you have received a reply which answers your query, please say so. If not, please refine your query so that those responding can refine their answers. This is why I asked the questions that I did. That is how we arrive at good answers which work for you.


BTW: Lets see if I can still do this...
Ce qui vous incite à me penser seulement sachez l'anglais,
es gibt viele Sprachen -
e molta gente può parlare più di una lingua:
tenga por favor más cuidado

... hmmm... seems I can mess up in five languages.
 
Old 02-17-2009, 07:32 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thumbs down

Quote:
Originally Posted by Simon Bridge View Post
Yes I noticed - it can be fun to answer the question as stated, however, it is common for people not to know how to phrase their problem as a question - particularly if English is not their first language.

This leads to the much more challenging task of working out what OP actually wants to achieve.

It seems odd, does it not: surely if OP wanted to disable UMS devices, this would be asked? Really we need to know what it is that is happening now which is not wanted. Perhaps he just doesn't want UMS devices to appear (as an icon) on the desktop?

Whatever - some respondent will have supplied the answer needed, or we'll get a redirect. I'm curious to see what OPs reply will be.
Hello Simon

It's a balance between clarifying what the questioner wants to know and giving a quick response. In this case thread the OP question seems clear, despite the unusual English. It asks how to stop removable media from being detected.

The question does not seem odd. Maybe OP has untrusted workers with access to confidential data and wants to prvent them copying GiBs of it to removable media. Maybe medical records, financial figures, membership records ...

I didn't know what UMS devices were until now (thanks -- a useful term).

Best

Charles
 
Old 02-17-2009, 09:32 AM   #13
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool This one too..

OK the guy who knows 5 languages .. Let me give a scenario

If in a institute where lab exams are to be conducted , where students are advised not to google for answers , obviously they wont listen , so sys admin had blocked online facility . So other choice wud be for students is to use an external disk like usb's ..
How can sys admin think wisely ? He would be supposed to close the ports of usb's been detecting , right ?
How can he do it ?

This was my simple question , that created this much fuss
 
Old 02-17-2009, 11:41 AM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by vibinlakshman View Post
OK the guy who knows 5 languages .. Let me give a scenario

If in a institute where lab exams are to be conducted , where students are advised not to google for answers , obviously they wont listen , so sys admin had blocked online facility . So other choice wud be for students is to use an external disk like usb's ..
How can sys admin think wisely ? He would be supposed to close the ports of usb's been detecting , right ?
How can he do it ?

This was my simple question , that created this much fuss
Hello Lakshman :-)

I think hal-disable-polling can do it but I don't know what the device names have to be. Time to experiment, plugging in a selection of devices? When I insert a USB memory stick on ubuntu 8.04.2, it's /dev/sdb1. CD/DVDs come up as /dev/scd0.

BTW, where are you in Kerala? I'm in Tamil Nadu, in Auroville near Puducherry.

Best

Charles
 
Old 02-17-2009, 04:55 PM   #15
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by vibinlakshman View Post
OK the guy who knows 5 languages .. Let me give a scenario
got it. Do you need the ports permanently disabled or just for exams?

The hal method could be worked in to a script so admins can turn it on or off ... but it may be trouble to impliment system-wide, I don't know how you are set up.

Th access-controls approach will work system wide - just switch off student access to external media. I don't know what access control mechanisms the sysadmins use, so cannot really advise more specifically.

Quote:
This was my simple question , that created this much fuss
I'm sorry you think that getting a reply right for you is "such a fuss". I'm afraid it cannot be helped.
 
  


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
LXer: Tip: Tip: Simple Regular Expressions For Reviewing Log Files LXer Syndicated Linux News 0 11-20-2008 12:41 PM
Any way to change a USB's partition? Slimmay Linux - Newbie 2 09-28-2008 01:44 PM
Want to mount different USB's as /dev/sda1 bobmac010 Linux - Newbie 2 01-22-2008 12:44 PM
Wireless USB's barrythai SUSE / openSUSE 0 02-08-2005 01:20 AM
AWOL usb's acid_kewpie Linux - General 0 06-16-2001 05:06 AM

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

All times are GMT -5. The time now is 12:13 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