LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-07-2004, 12:33 AM   #1
pablowablo
Member
 
Registered: Apr 2004
Posts: 131

Rep: Reputation: 15
permission on automounted device?


How do I set permissions on my automounted drives?

I want my automounted cdrom accessible to all users but only root can access it. When I try to chmod 777 the drive it still says permission denied even if I'm root. I guess my question is, can I set the permission in the automount settings? just like in fstab...

Here are my configurations

/etc/auto.master

Code:
/amnt                      /etc/auto.pablo

/etc/auto.pablo
Code:
cdrw            -fstype=iso9660,ro              :/dev/scd0
 floppy          -fstype=auto                       :/dev/fd0
Ron             -fstype=ntfs                         :/dev/hdb5
When I try to ls /amnt/cdrw as a normal user, it says permission denied.. How can I make my automounted drives available to normal user?

Last edited by pablowablo; 08-07-2004 at 12:35 AM.
 
Old 08-07-2004, 07:17 AM   #2
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
First, did you try to change the permissions on the directory in which the cdrom is mounted and not the device itself?? Also, you may want to look at the man page for auto.pablo.
 
Old 08-07-2004, 10:13 PM   #3
pablowablo
Member
 
Registered: Apr 2004
Posts: 131

Original Poster
Rep: Reputation: 15
I fixed it now.... Somehow chmod didn't change the permission of the directories when it is mounted. I just added the umask in auto.pablo and it's ok now.
 
Old 08-07-2004, 10:42 PM   #4
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
Good stuff, I'm happy that everything worked out for ya
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
device /dev/dsp can't be opened (Permission denied) jon_k Linux - Software 1 10-27-2004 09:51 PM
automatic set permission to device at boot mrosati Linux - Software 3 10-14-2004 04:05 AM
Automounted drives showing on the desktop. jimmy042 Fedora 5 08-14-2004 06:14 AM
HD device permission ce11 Linux - Newbie 5 07-18-2004 01:00 AM
sound device permission problem as user matjazk Slackware 5 01-31-2004 04:34 PM


All times are GMT -5. The time now is 08:07 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration