LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2004, 08:25 PM   #1
ernestteo
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Mounting USB Thumbdrive as non-root?


Is there anyone here who knows how to mount/umount usb thumbdrives as a non-root user? I'm using Redhat Linux 7.3. Really need help in this. Thanks!

Last edited by ernestteo; 12-22-2004 at 08:28 PM.
 
Old 12-22-2004, 09:11 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Add an entry to your /etc/fstab similair to this one:
Code:
/dev/sda1        /mnt/jumpdrive   vfat        noauto,user,rw             0   0
 
Old 12-22-2004, 09:29 PM   #3
ernestteo
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I cannot edit my /etc/fstab as i'm a non-root user. As i only have certain computers that i can access as root, i need to use my thumbdrive on pcs that i have no root access. is there a workaround for non-root users? Thanks
 
Old 12-22-2004, 10:31 PM   #4
dgeronimo
LQ Newbie
 
Registered: Nov 2004
Location: USA
Distribution: Slackware Linux 9.1
Posts: 8

Rep: Reputation: 0
On the machines where you don't have root access to mount your thumbdrive or edit /etc/fstab, i believe it best to ask an administrator to mount it for you, or ask him to edit /etc/fstab.
 
Old 12-23-2004, 07:17 PM   #5
ernestteo
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
If that's the case then how do i actually continue to use my thumbdrive when i'm logged in as a non-root user? I noticed that i only can write and mount/unmount as root but not as a non-root user where i actually tried unmounting but the files still shows in konqueror. Thanks!
 
Old 12-24-2004, 09:40 AM   #6
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
You need to pass the 'users' or 'user' (with 'user', only the person who mounted the device can unmount it. With 'users', anyone can unmount it) option to the mount command:

e.g.
mount -t vfat /dev/sda /mnt/usbstick -o users,sync
 
Old 12-24-2004, 09:49 AM   #7
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
maybe better would be to mount it to a folder in your home directory, so anyone else logged into the sae system can't see it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
USB thumbdrive mounting problem sashhoney Linux - Hardware 1 05-31-2005 06:06 AM
Mounting USB Memorex 512MB Thumbdrive ckovacs Linux - Hardware 3 12-06-2004 10:33 AM
mounting usb thumbdrive and going in circles slackist Linux - Hardware 11 07-27-2004 08:30 PM
Mounting a usb thumbdrive st windows files can be read qkslvrwolf Linux - Newbie 2 04-12-2004 09:52 AM

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

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