LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-02-2004, 02:59 PM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
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?
 
Old 07-02-2004, 03:11 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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
 
Old 07-02-2004, 03:33 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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)
 
Old 07-03-2004, 01:29 AM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98
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.
 
Old 07-03-2004, 02:10 AM   #5
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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.
 
Old 07-03-2004, 02:51 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Shouldn't that be decided by /etc/fstab ? :S
 
Old 07-03-2004, 04:29 AM   #7
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98
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!)
 
  


Reply



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
How do I change my windows partition permissions. chmod won't work. brandonloserkid Slackware 2 12-03-2004 05:39 PM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
How can I change the permissions of /dev/ptyp* (chmod does not work) gderou Mandriva 0 08-24-2004 10:37 AM
Changing permissions (chmod) teyesahr Linux - Newbie 1 07-31-2003 04:52 PM
chmod and file permissions help qages Linux - General 5 01-27-2003 06:08 AM

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

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