LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2006, 02:43 AM   #1
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Can only use usb camera as root


Hi! My problem is with a Canon Powershot S40 digital camera,i use gphoto2 and digikam to download the files from the camera,i have no problem to do that as root but i cannot do it as a normal user,so my problem is NOT gphoto2 or digikam it is more likely the permissions on the usb ports.
I use a usb printer,HP photosmart without problem as a normal user? anyone who knows the difference between a usb printer and a usb camera? why i can use the printer but not the camera as a normal user?
Running Slackware 10.1.

Lars.
 
Old 02-09-2006, 03:52 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
sounds like your /etc/fstab is wrong. can you show it please.

if not you might need to change your udev rules to create the device with '666' permissions.

but lets look at /etc/fstab 1st.....
 
Old 02-09-2006, 04:05 AM   #3
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
fstab

Yes here it comes.

/dev/hda9 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1
/dev/hda1 /boot reiserfs defaults 1 2
/dev/hda5 /usr reiserfs defaults 1 2
/dev/hda6 /home reiserfs defaults 1 2
/dev/hda7 /tmp reiserfs defaults 1 2
/dev/hda8 /var reiserfs defaults 1 2
/dev/sr0 /mnt/cdrom iso9660 noauto,owner,user,ro 0 0
/dev/sr1 /mnt/cdrom iso9660 noauto,owner,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/camera auto noauto,owner,user,ro 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Lars.
 
Old 02-09-2006, 06:14 AM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
Try to add to the fstab that option
Code:
 uid=username
 
Old 02-09-2006, 07:00 AM   #5
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
change /dev/sda1 /mnt/camera auto noauto,owner,user,ro 0 0

to

/dev/sda1 /mnt/camera noauto,user,ro 0 0

should be mountable as a user
 
Old 02-09-2006, 11:49 AM   #6
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Hi again! No i get the message "there are no such device" sda1 or sda0 but as root i can use the camera??
How to find out what device the camera is?

Lars.
 
Old 02-09-2006, 01:23 PM   #7
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
what command are you doing to mount the device?
 
Old 02-10-2006, 02:41 AM   #8
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
mount /dev/sda1 /mnt/camera
 
Old 02-10-2006, 07:01 AM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
hmmm
ok what does it do if you type:


"mount /mnt/camera", as a normal normal user (after changing your /etc/fstab)
 
Old 02-10-2006, 07:36 AM   #10
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
mount: special device /dev/sda1 does not exist
 
Old 02-10-2006, 08:14 AM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
are you unmounting it properly after root has used it??

and does it exist if you do a ls -l /dev/sda1??
 
Old 02-10-2006, 12:21 PM   #12
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Yes it is unmounted after root's use.
ls -l /dev/sda1
/dev/sda1: No such file or directory
 
Old 02-10-2006, 01:23 PM   #13
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
so then after u unmount it take it out and plug it back in...
 
Old 02-11-2006, 08:09 AM   #14
lars_g_k
Member
 
Registered: Sep 2005
Posts: 30

Original Poster
Rep: Reputation: 15
The same!?
 
Old 02-11-2006, 01:37 PM   #15
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i give up. dont know how it can't be there when you do ls -l.

like i say you need to take it out and plug it back in after you unmount it sometimes...
 
  


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 camera works as root but not user gumb Linux - Newbie 10 11-01-2005 05:35 PM
camera only works in root??? sneckert Mandriva 9 01-30-2005 03:50 PM
two usb issues, digital camera only as root and scanner module not found nedwardss Debian 2 10-20-2004 06:23 AM
Camera only works as root. ToolBoy Linux - Hardware 1 06-23-2003 07:29 PM
Digital Camera Software for an non-root user gboutwel Linux - Software 2 06-29-2002 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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