LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   chmod shows change to permissions, but ls-l doesn't (https://www.linuxquestions.org/questions/slackware-14/chmod-shows-change-to-permissions-but-ls-l-doesnt-200408/)

vdemuth 07-02-2004 02:59 PM

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?

320mb 07-02-2004 03:11 PM

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

keefaz 07-02-2004 03:33 PM

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)

vdemuth 07-03-2004 01:29 AM

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.

CartersAdvocate 07-03-2004 02:10 AM

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.

gbonvehi 07-03-2004 02:51 AM

Shouldn't that be decided by /etc/fstab ? :S

vdemuth 07-03-2004 04:29 AM

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.