LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission on automounted device? (https://www.linuxquestions.org/questions/linux-newbie-8/permission-on-automounted-device-214517/)

pablowablo 08-06-2004 11:33 PM

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?

Archite 08-07-2004 06:17 AM

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.

pablowablo 08-07-2004 09:13 PM

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.

Archite 08-07-2004 09:42 PM

Good stuff, I'm happy that everything worked out for ya;)


All times are GMT -5. The time now is 10:47 PM.