LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-28-2003, 09:12 PM   #1
Fade_to_Blah
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat 9
Posts: 2

Rep: Reputation: 0
USB Problems - Want non-root Access


I have a digital camera and everything works fine as root. Get images, delete images. But I do NOT want to run things as root. How can I access (easily) usb devices as a non-root user.

Redhat 9

Thanks in advance
 
Old 12-29-2003, 04:37 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
umm... could this be something to do with permissions?
try the chmod command (changes user permissions)
or if that fails, use the su command. (will "emulate" any user, root as default)

agree with you on the running as root. see my distro to the left to see why I agree with you... it wasn't a pretty sight.

titanium_geek
 
Old 12-29-2003, 04:48 PM   #3
Fade_to_Blah
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat 9
Posts: 2

Original Poster
Rep: Reputation: 0
I dont want to have to change permissions on the usb devices /dev or wherever they are in /proc manually. There is some other way (yet to be discovered). Su works ofcourse, but again I dont want to run this thing as root.
 
Old 12-29-2003, 05:05 PM   #4
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
clarify why you don't want to change the permissions?

titanium_geek
 
Old 12-29-2003, 05:15 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You could specify the umask to use when mounting the device, but that would actually change the permissions (from a user point of view that is, no physical change would be made to the medium until written to).

If your USB device is mounted as /dev/sda1, try something like this: mount -t vfat -o rw,umask=0007 /dev/sda1 /mnt/mp3player or something to the same effect. The rw and umask options can be entered in /etc/fstab so the device will always be mounted with those options.


Håkan
 
  


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
Only root access to automounted USB drive denis1314 Linux - Software 11 07-19-2005 09:01 AM
How to access usb ports as non-root user m.harshavardhan Linux - Software 5 07-07-2005 06:19 AM
how can a non-root user access usb ports m.harshavardhan Linux - Software 2 06-29-2005 10:18 AM
External USB disks --access as USER not ROOT 1kyle Linux - Hardware 4 10-31-2004 01:55 PM
Only root access in USB harddrive in mandrake 10 O smiler Linux - Newbie 2 06-24-2004 12:52 PM

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

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