On Sat, Apr 22, 2006 at 10:45:05PM -0700, Mr O wrote: > Just what it says. How can I give a user write access to a > device under /mnt/blah? USB key? Camera? I can read and copy but > not delete and create.
in OpenBSD, there is a sysctl called kern.usermount. if the sysctl is nonzero and the device node to be mounted is readable and writable by the user, then the user can mount filesystems from that device on directories they own. since the user owns the directory, they can add/delete/do whatever. example: <insert USB key> $ ls -l /dev/sd0i (this is the node for the fs on the key) brw-r----- 1 root operator 4, 8 Jan 31 23:26 /dev/sd0i $ groups jakemsr wheel operator wsrc users $ sudo chmod g+w /dev/sd0i (so I have write access to /dev/sd0i, Password: since I'm in the operator group) $ sysctl kern.usermount kern.usermount=0 $ sudo sysctl kern.usermount=1 kern.usermount=1 $ sudo mkdir /mnt/jakemsr $ sudo chown jakemsr /mnt/jakemsr $ mkdir /mnt/jakemsr/usbkey $ mount /dev/sd0i /mnt/jakemsr/usbkey $ ls -a /mnt/jakemsr/usbkey . .. $ touch /mnt/jakemsr/usbkey/newFile $ ls -a /mnt/jakemsr/usbkey . .. newFile $ probably something rather similar in Linux, I would imagine. -- <[EMAIL PROTECTED]> _______________________________________________ EUGLUG mailing list [email protected] http://www.euglug.org/mailman/listinfo/euglug
