DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default Mounting devices on standard user account

How do you mount any device on an account that does not have access to the wheel group?


This works on the root account for cd0 and for sd2 <-flash drive.

Code:
# mount /dev/cd0c /mnt
# mount /dev/sd2i /mnt
However, the following results in 'permission denied' using a standard account.

Code:
$ mount /dev/cd0c /home/user/cdrom
$ mount /dev/sd2i /home/user/mnt
Reply With Quote
  #2   (View Single Post)  
Old 25th March 2016
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,164
Default

That is because of permissions:

Code:
$ ls -l /dev/cd0c

brw-r-----  1 root  operator    6,   2 Dec 26  2012 /dev/cd0c
For one approach see see HOWTO: mounting an USB device as normal non-root user in OpenBSD.

You also can also use sudo or doas(1).
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 25th March 2016 at 01:19 AM.
Reply With Quote
  #3   (View Single Post)  
Old 25th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

I took a brief look at the how to. I will be going that route.

Thank-you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: mounting an USB device as normal non-root user in OpenBSD J65nko Guides 6 20th May 2017 12:03 PM
Mounting USB as a normal user rex FreeBSD General 23 5th March 2012 01:52 PM
Cannot initialise Gnome with user account Saint OpenBSD Packages and Ports 3 24th May 2011 09:26 PM
Mounting samba share as normal user rex FreeBSD General 4 27th October 2008 05:17 PM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick