Re: [SLUG] Permission denied to CF card.

From: Eben King (eben01@verizon.net)
Date: Fri Aug 11 2006 - 15:22:29 EDT


On Fri, 11 Aug 2006, Chuck Hast wrote:

> On 8/11/06, Chuck Hast <wchast@gmail.com> wrote:
>> On 8/11/06, Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com> wrote:
>> > Try putting "user" and "umask=000" in your fstab entries for the
>> > camera? Mine looks like:
>> >
>> > /dev/sda1 /camera vfat defaults,user,umask=000,noauto
>> > 0 0
>> >
>> I used the camera as that is the most common place I pull CF type cards
>> from, I also have a Garmin Nuvi that I use, it has to be viewed the same
>> way, so do not want to specify it as a camera but just as a removable
>> drive. So anytime any CF type device is plugged in it will be available for
>> access from a user screen. Root does get access to it once it is mounted.
>>
>
> Here is what it looks like now
> /dev/sda1 /media/usbdisk vfat
> users,gid=users,umask=0002,utf8=true 0 0
>
> Now I have to figure out how to automount it, as I sitll have to go in as
> root and do a:
> mount /dev/sda1
> Then it is actually mounted, so that fixed the non-root access after it was
> mounted.

FWIW, I (Ubuntu 5.10) have autofs or whatever it's called -- /etc/auto.* .
What I could divine is:

/etc/auto.master defines a daemon, which controls a mount tree ], all with a
particular set of options (including timeout). Each daemon has a control
file /etc/auto.foo, which specify what dirs it should watch. Minus all the
comments, my /etc/master is:

/mnt/auto /etc/auto.misc --timeout 1500
/mnt/dvd /etc/auto.dvd --timeout 5

/etc/auto.misc is:

scratch -rw,fstype=ext3 :/dev/hdc8
media -rw,fstype=ext3 :/dev/hdc6
schedules -rw,fstype=minix,loop :/var/schedules.img

/etc/auto.dvd is:

dvd1 -fstype=auto,ro,mode=0666 :/dev/cdrom
dvd1_exec -fstype=auto,ro :/dev/cdrom

eben@pc:~$ grep hda /etc/mtab
eben@pc:~$ ls /dvd1/ > /dev/null ; grep hda /etc/mtab
/dev/hda /mnt/dvd/dvd1 iso9660 ro,mode=0666 0 0
(wait 5 seconds)
eben@pc:~$ grep hda /etc/mtab
eben@pc:~$ ls -l /dvd1
0 lrwxrwxrwx 1 root root 13 2006-08-06 12:18 /dvd1 -> /mnt/dvd/dvd1

dvd2 is loaned out right now, so I disabled it.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.no-ip.org:81

He who will not reason is a bigot; he who cannot is a fool; and he who dares not is a slave. -Sir William Drummond ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:59:16 EDT