NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Mounting devices with KDE?



On Mon, 10 Aug 2009 16:58:53 +0200
Geert Hendrickx <ghen%telenet.be@localhost> wrote:

> Hi,
> 
> under NetBSD 3.x, the following KDE .desktop file used to work to mount a FAT
> formatted USB drive as an unprivileged user (with vfs.generic.usermount=1).
> 
> [Desktop Entry]
> Dev=/dev/sd1e
> Encoding=UTF-8
> FSType=msdos
> Icon=usbpendrive_mount
> MountPoint=/home/sofie/usb
> ReadOnly=false
> Type=FSDevice
> UnmountIcon=usbpendrive_unmount
> 
> But this no longer works on NetBSD 5.0 as it requires -o nodev,nosuid for
> unpriv'ed users, and there is no mount options attribute AFAIK.

What if you create a /usr/sbin/mount_msdos_unprived wrapper that execs
`mount -t msdos -o nodev,nosuid "$@"` and then set the FSType to
"msdos_unprived"? (I didn't actually try this.)

dieter


> Anyone has this working with KDE on NetBSD 5 in a user-friendly way?
> 
>       Geert
> 
> 
> -- 
> Geert Hendrickx  -=-  ghen%telenet.be@localhost  -=-  PGP: 0xC4BB9E9F
> This e-mail was composed using 100% recycled spam messages!
> 


Home | Main Index | Thread Index | Old Index