|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
Mount a portable usb drive as normal user
I did some searches, and found this
HOWTO: mounting an USB device as normal non-root user in OpenBSD And it seems straight forward but I ran into something that confuses me. Also reading 'man mount', but here is what is confusing me. Quote:
and put the line in it, but that did not work. I still get this error: Code:
# sysctl kern.usermount=1 sysctl: second level name usermount in kern.usermount is invalid Thanks Note: I am using OpenBsd 6.1 , new install. Edited again,... Never mind I was doing more searches and found this: http://www.undeadly.org/cgi?action=a...20160715125022 Quote:
Quote:
as root, but and it is not "random", I know what I want to mount, and know what is in it.
__________________
My best friends are parrots Last edited by PapaParrot; 20th May 2017 at 11:58 AM. Reason: add version od openbsd |
|
|||
You can write script wrapping around mount(8). Argument would be device file. Script would validate whether this device is really a usb drive. If script would be non-writable for users (usermount group included), then even usermount group could not made it to mount random filesystems.
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase |
|
||||
Ok , thanks
Question, the "doas.conf" file , do I need to create it manually ? It does not yet exist on my system. The manual 'man doas' and 'man doas.conf' do not seem to really say on that, I figure I do need to create it. ----- edit ---- Ideally, the usb stick, or device would just mount, when I plug it in, but again, it is no big deal to be mounting manually. I like the option of mounting it in my 'home' directory, unfortunately the example in the manual does not include this, or something similar. thanks Last edited by PapaParrot; 21st May 2017 at 10:45 AM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mounting USB as a normal user | rex | FreeBSD General | 23 | 5th March 2012 01:52 PM |
normal user for dedicated firewall? | unixjingleman | OpenBSD Security | 3 | 20th January 2011 08:47 PM |
WD Passport Portable external drive | Beastie | General Hardware | 7 | 25th April 2009 12:50 PM |
How to Run K3B with normal user openBSD 4.4 | mfaridi | OpenBSD General | 6 | 12th November 2008 10:25 PM |
Wireshark not run in normal user | mfaridi | FreeBSD Ports and Packages | 2 | 7th November 2008 09:49 PM |