chmod shows change to permissions, but ls-l doesn't
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
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
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
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.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
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!)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.