chmod shows change to permissions, but ls-l doesn't
Finally with the help of these forums got my digitalcamera working under Slack, but now I have another problem.
I can only see my camera (mounted under /mnt/camera) as root. Any attempt to view it as user returns the error 'permission denied' So I issued the command chmod a+rwx /mnt/camera -v and the feedback said mode of `/mnt/camera' changed to 0777 (rwxrwxrwx). I then did this for the further sub directories dcim and 100media. But I still get the permission denied error as user. So I checked the directory mode with ls-l and it returns drwxr--r-- 3 root root 8192 1970-01-01 01:00 camera, which is obviuosly the problem. So, how do I change the permissions to rwxrwxrwx without chmod giving me false information? |
what are the permissions of the /mnt/ directory itself.............??
users need to have write/execute access to this also in order to do anything in /mnt/camera |
The more simple in my sense is to chown camera device to video group, in which you add your user if it isn't already.
chown root:video /dev/camera (where 'camera' is your camera device file) |
320mb
The permissions on my /mnt directory are drxwrxwrxw. I have still not succesfully got the permissions for /mnt/camera to be this. As I said previously, when I issue the command chmod a+rwx /mnt/camera -v, the verbose feedback tells me that the change was successfull, but an ls-l shows this not to be the case. Consequently, I cannot enter the directory /mnt/camera as anything but root, and as we all know, this is not the best thing to do. Do you have any other ideas. BTW keefaz, I tried your suggestion, but still have the same error. |
There are some mounted drives that you can't set permissions to that way (such as a mounted FAT partition) because they don't support permissions...that is probably why it is doing that...I'm not sure a workaround, but hopefully someone here does.
|
Shouldn't that be decided by /etc/fstab ? :S
|
Well I don't know how, or why, but rebooting my box seems to have cured the permissions problem. I can now mount my camera as user.
Still confused as to why, but happy to live with it. (at least for now!) |
All times are GMT -5. The time now is 09:32 PM. |