Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Slackware Linux Help
Reload this Page How to disable USB security?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Slackware Linux Help For help and Discussion about Slackware linux

Reply
 
Thread Tools Display Modes
Old 04-08-2008   #1 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Question How to disable USB security?

Hello all. I have Slackware 12.0 installed and I'm trying to transfer data on my USB stick from PC to Linux. Whenever I access the folder containing the USB stick, I get a dialog box that says I don't have permission to receive this "message". I am logged in as root, so what the...

Peter
pfeigl is offline   Reply With Quote
Old 04-08-2008   #2 (permalink)
Freston
Linux Enthusiast
 
Freston's Avatar
 
Join Date: Mar 2007
Posts: 523
Sometimes not even root has enough permissions. But not in simple tasks like file transfer between media.

Can you post the output of these commands (issued when you receive said message)

Code:
mount
Checks whether the device is mounted

Code:
lsusb
Checks whether the device is recognized

And, a couple of seconds after you plug in the device:
Code:
dmesg | tail
To see the kernel response.

It could be, but I'm not sure, that the device was not properly unmounted. That sometimes causes problems.
__________________
Can't tell an OS by it's GUI
Freston is offline   Reply With Quote
Old 04-08-2008   #3 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Exclamation Output from test

Hi. Here is the output. I apologize in advance for any typos.
# mount
/dev/sda1 on /type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

#lsusb
Bus 3 Device1:ID XXXX:XXXX
Bus 3 Device2:ID XXXX:XXXX Alcor Micro Corp
Bus 1 Device6:ID XXXX:XXXX Feiya Technology Memory Bar
Bus 1 Device1
Bus 2 Device2

#dmesg | tail
sdf: Mode Sense 43 00 00 00
sdf: assuming drive cache: write through
SCSI device sdf 7929856 512-byte hdwr sectors (4060MB)
sdf:Write protect is off
sdf: Mode Sense 43 00 00 00
sdf: assuming drive cache: write through
sdf:sdf1
sd 8:0:0:0 Attached scsi removable disk sdf
sd 8:0:0:0 Attached scsi generic sg5 type 0
usb-storage device scan complete

Whew!

Peter
pfeigl is offline   Reply With Quote
Old 04-08-2008   #4 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,101
Post the output of fdisk -l command here. Its small L in fdisk -l.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 04-08-2008   #5 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
Angry More diagnostics

I'm sorry but I'm just not in the mood to write all that down. But I can tell you that from what I see is that the machine definitely sees a 4GB stick on /dev/sdf1. Interestingly, when I umounted that drive, it said it was not mounted.

Peter
pfeigl is offline   Reply With Quote
Old 04-09-2008   #6 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,101
Have you tried to mount /dev/sdaf1 using mount command? What error message does it throw?
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 04-09-2008   #7 (permalink)
Freston
Linux Enthusiast
 
Freston's Avatar
 
Join Date: Mar 2007
Posts: 523
Quote:
Originally Posted by pfeigl
I'm sorry but I'm just not in the mood to write all that down. But I can tell you that from what I see is that the machine definitely sees a 4GB stick on /dev/sdf1. Interestingly, when I umounted that drive, it said it was not mounted.
Ehm... you are the one requesting help. These diagnosis are part of helping you. That's the Bad News. The Good News is that you can just copy&paste from the terminal to the browser while posting. I sure wouldn't have felt like retyping all that either. I let my computer do that

Quote:
Originally Posted by devils casper
Have you tried to mount /dev/sdaf1 using mount command? What error message does it throw?
Probably (as root) mount: can't find /dev/sdf1 in /etc/fstab or /etc/mtab
And as user: mount: can't find /dev/sdf1 in /etc/fstab or /etc/mtab
Don't you think


I'm thinking there just needs to be an entry in fstab. But before that try this command: (as root)
Code:
mkdir /mnt/usb ; mount /dev/sdf1 /mnt/usb ; ls /mnt/usb
---

Quote:
Originally Posted by pfeigl
But I can tell you that from what I see is that the machine definitely sees a 4GB stick on /dev/sdf1. Interestingly, when I umounted that drive, it said it was not mounted.
fdisk doesn't need the device to be mounted in order to see it. It sees unmounted devices as well. From your other post I can see that your USB stick wasn't mounted, but did indeed get recognized.
I still can't explain the error message you received. But if the previous command worked, then that may not matter. You'll need to edit fstab so you can mount your usb as regular user.
__________________
Can't tell an OS by it's GUI
Freston is offline   Reply With Quote
Old 04-09-2008   #8 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,101
Quote:
Originally Posted by Freston
Probably (as root) mount: can't find /dev/sdf1 in /etc/fstab or /etc/mtab
And as user: mount: can't find /dev/sdf1 in /etc/fstab or /etc/mtab
Don't you think
Thats why I suggested him to mount /dev/sdaf1 using mount command. It doesn't mean TS has to execute mount command only. He/she has to specify device name along with other options, like the way you suggested.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 04-09-2008   #9 (permalink)
pfeigl
Just Joined!
 
Join Date: Apr 2008
Location: Ontario
Posts: 76
USB Troubles

Hello. I was writing it down because I wasn't using that machine to post. Doh! I will try what you said but when I put the stick in a dialog pops up right away asking if I want to open it or do nothing. Of course if I choose the former I get the security message.

Peter

P.S. No, there are no security "features" on the stick.
pfeigl is offline   Reply With Quote
Old 04-09-2008   #10 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,101
Execute this :
Code:
mkdir usb
mount -t vfat /dev/sdf1 usb -o defaults,umask=0
ls usb
Post exact error message here, if any.
I assumed that USB stick is formatted in FAT32 filesystem.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 04:41 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0