LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-11-2004, 03:21 AM   #1
halfzware_shag
LQ Newbie
 
Registered: Oct 2004
Location: Italy
Distribution: Fedora Core 2
Posts: 5

Rep: Reputation: 0
Question Read and write USB device with non-root access


Hello everybody, this is my first post...

Here's my issue, in short: I have access to a public Red Hat 9 box with normal user privileges, as I am no admin nor I know the password for root user. I'd like to read and write to an USB storage, but there isn't a mountpoint defined in /etc/fstab and I can't edit it. After I plug in the USB pen, the last lines of dmesg say:
Code:
hub.c: new USB device 00:1d.7-8, assigned address 2
usb.c: USB device 2 (vend/prod 0xc76/0x5) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: JetFlash  Model: TS64MJF2A         Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
and mount is
Code:
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
Any suggestions?

Hope I explained it clear...
Thanks in advance!
 
Old 10-11-2004, 03:56 AM   #2
andrade
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Ubuntu
Posts: 41

Rep: Reputation: 15
Re: Read and write USB device with non-root access

I think that don't having root permissions you can do anything... if you had you just have to define a mount point in fstab without forget ,user,uid=(youruseridn.)
 
Old 10-11-2004, 04:02 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

You'll have to get root to do some sysadmin for you.

Easiest is to give you a mount point, such as /mnt/JetFlash or if you
have your own user directory, perhaps /home/<username>/JetFlash
and then he's got to either give you something in /etc/fstab such as
Code:
/dev/sda1    /mnt/JetFlash    vfat    user,uid=<your_user's_number>,unhide,rw,noauto 0 0
so that you can mount and read/write the device. But if it won't be mounted
on /dev/sda1 every time, he may have to use something like udev and put
rules that know it's your flash drive. If you're the only one, and your drive
is the only one, I think the above example should work fine.

He could also setup rules for you using sudo. Read
man sudo
man sudoers
for more information.
 
Old 10-11-2004, 04:26 AM   #4
halfzware_shag
LQ Newbie
 
Registered: Oct 2004
Location: Italy
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Chinaman

You'll have to get root to do some sysadmin for you.
[...]
Ok, thank you... God, I'll try it!
Thanks again!
-h_s
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
Non-root write access to a USB drive (ext2) ?? jmborr Linux - Hardware 4 10-17-2005 02:38 PM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 09:35 AM
NFS non root read write access matthewkeen Linux - Networking 8 09-09-2004 10:52 PM
write access on usb storage device wincen Linux - Hardware 3 01-20-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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