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 |
Slack 9.1 (same with 9.0) kernel 2.4.20, 2.4.21, 2.4.22, 2.4.23
|
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. |
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 |
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. |
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 |
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... |
I did it!!!
Just chmod 644 sda1 fucken permissions. default was 640 |
nice to hear u have it workin'.
btw. if u want to give access to everyone to a directory just: chmod a+rwx directoryname.. |
All times are GMT -5. The time now is 02:35 AM. |