LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-08-2003, 04:15 AM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Rep: Reputation: 33
usb camera permissions


I have an usb photo camera.
I'm mounting it at /mnt/photo
using mount /dev/sda1 /mnt/photo
but I cant access this directory with an user's account
I tryed to make an entry in the /etc/fstab
/dev/sda1 /mnt/photo auto noauto,user,umask=000 0 0
but nothing changed
Do you have any ideas how could I access my /mnt/photo with an ordinary users account
Thanks
 
Old 12-08-2003, 04:25 AM   #2
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
Slack 9.1 (same with 9.0) kernel 2.4.20, 2.4.21, 2.4.22, 2.4.23
 
Old 12-08-2003, 04:35 AM   #3
lamekain
LQ Newbie
 
Registered: Apr 2003
Location: Finland
Distribution: Mandrake 9.1
Posts: 14

Rep: Reputation: 0
do you have the correct permissions set for the mnt/photo-dir? Do this:[list=1][*]cd /mnt[*]ls -l #gives u a long description of the contents[*]#see if the photo-dir has permissions set for your user, if it doesn't then change the permissions, while being root, by typing:[*]chown your_user_name photo #this changes the photo-dirs user(owner) into your_user_name[/list=1]

Now you should be able to browse and change that dirs contents with your_user_name. Also you might want to check that umask -setting you have in fstab. Setting the umask into 000 means not giving anyone any permissions to the directory. I think you should set a value like 660 to the umask.
 
Old 12-08-2003, 05:03 AM   #4
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
I can't change the ownership of the directory
chown: operation not permitted ... etc.
but I don't want to change the ownership
any other ideas?
It's very difficult to understand the permissions in the Slackware
 
Old 12-08-2003, 08:02 AM   #5
lamekain
LQ Newbie
 
Registered: Apr 2003
Location: Finland
Distribution: Mandrake 9.1
Posts: 14

Rep: Reputation: 0
are you logged in as root , when you try chown?
I believe the only solution to your problem is changing the permissions.
Aren't the permissions the same in Slackware as they are in other distros? The basic permissions are VERY easy and you should learn to understand them if you want to use linux more efficiently. Look for a linux tutorial on the net or type man chmod in the console to get more information about permissions.
 
Old 12-08-2003, 08:44 AM   #6
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
I did everything exactly as you said except umask=660 because it's bullshit
but the result is different every time
if I have been included this entry in the fstab when I chown of photo, I recieve
no such file or directory,
if I haven't, I'm changing the ownership, but when I browse to this directory, I recieve
you don't have permissin to browse photo
There's no sense changing owner ship because I want and other users to access this directory.
I want root to be the owner of the directory, but to allow other users to browse it and read and write into ti.
I have vfat partition on my disk and I mount it with this entry in fstab
/dev/hda1 /mnt/hd vfat defaults,umask=000 0 0
before I added umask=000, the situation withj this partition was similar
so I need the same for my /mnt/photo except mounting on boot, because the camera is not connected all the time
I want to use this device same way as cdrom and floppy
tell me how
 
Old 12-08-2003, 09:17 AM   #7
davidschob
Member
 
Registered: May 2003
Posts: 56

Rep: Reputation: 17
I mount my camera just fine by using this...

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

Without any umask or funky permissions/ownerships.

Good luck.

btw I basically just copied the default entry from slack's cdrom entry and added user...
 
Old 12-08-2003, 09:36 AM   #8
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
I did it!!!
Just chmod 644 sda1
fucken permissions.
default was 640
 
Old 12-09-2003, 04:40 AM   #9
lamekain
LQ Newbie
 
Registered: Apr 2003
Location: Finland
Distribution: Mandrake 9.1
Posts: 14

Rep: Reputation: 0
nice to hear u have it workin'.
btw. if u want to give access to everyone to a directory just: chmod a+rwx directoryname..
 
  


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
Permissions accessing USB Digital Camera edmundo_ba Slackware 6 11-01-2005 01:32 PM
usb camera 2.6.9 Ipolit Debian 4 03-24-2005 10:02 PM
help with usb camera ? synapse Slackware 2 03-19-2004 03:00 PM
USB camera zokik Linux - Hardware 10 05-02-2003 02:07 PM
USB Camera needs SCSI?! DiBosco Linux - Hardware 7 03-10-2003 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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