Letting Ordinary Users Write To Disk Key
Robert L Cochran
cochranb at speakeasy.net
Sun Aug 3 16:43:34 UTC 2003
If I edit fstab to allow for mounting a USB flash drive like this:
/dev/sda1 ext3 /mnt/flash noauto,owner 0 0
and then change the console.perms line
<console> 0600 <flash> 0600 root
to
<console> 0666 <flash> 0600 root
then login as an ordinary user cochranb, I can mount the disk key fine.
But when I attempt to write to /mnt/flash, I will be denied permission.
If I then su - and copy a file from /home/cochranb to /mnt/flash, the
file is written with the owner and group set to 'cochranb'. I can then
exit back to cochranb change the permissions on the file.
I want to let 'cochranb' write files to /mnt/flash.
What am I getting wrong here?
Thanks
Bob Cochran
On Sun, 2003-08-03 at 10:01, Jef Spaleta wrote:
> Robert L Cochran wrote, somewhere in the digest:
>
> >I have a 128 Mb disk key plugged into my test machine. Severn recognizes
> >it, and I've formatted and mounted the thing as '/mnt/dkey'. How can I
> >give an ordinary user (namely, me) write access to it?
>
> i would suggest these fstab options:
> noauto,owner
>
> and then i would suggest making sure /etc/security/console.perms
> is setup to understand the /dev/ and /mnt/ listings for yer Diskkey.
>
> The owner option is pretty slick, it tries to restrict access to devices
> and files based on which is user is physically logged into the console.
> Sure its overkill for a single user system...but its still slick. I try
> to use this for all my removable media fstab listings.
>
> -jef"the real question is...when will rhl support a boot 'floppy' mode
> for something like a usb keydrive"spaleta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20030803/13005abd/attachment.sig>
More information about the fedora-test-list
mailing list