DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default how to allow users to mount cdrom and usb flash?

Hi Amigos !

I am on OpenBSD 5.0 , I still can't mount neither cdrom nor usb except by sudoing ..
as a user I already belong to wheel and I chowned both /dev/sd0i and /dev/cd0a as mine and set usb and cdrom directories in my ~/ as mount points ..
still I can't mount both unless I sudo ..

what am I still lacking here ?? mmm ...
Reply With Quote
  #2   (View Single Post)  
Old 26th January 2012
denta denta is offline
Fdisk Soldier
 
Join Date: Nov 2009
Posts: 73
Thanked 0 Times in 0 Posts
Default

Maybe you need to change kern.usermount. From the mount man page:
Quote:
Only the superuser may mount file systems unless kern.usermount is nonzero (see sysctl(8)), the special device is readable and writeable by the user attempting the mount, and the mount point node is owned by the user attempting the mount.
Reply With Quote
  #3   (View Single Post)  
Old 26th January 2012
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 545
Thanked 9 Times in 9 Posts
Default

There is a series of guides and howto's in the forum one of which should address your question.

http://www.daemonforums.org/showthread.php?t=2232

I found it worthwhile to peruse the entire section.
Reply With Quote
  #4   (View Single Post)  
Old 26th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi Denta !
Thank you !
I vi /etc/sysctl.conf .. couldn't find the kern.usermount=N which I added and put 1
yet the problem persists .. does it need a reboot ?

if so and because life is too short for reboots , how can I bypass that ?
Reply With Quote
  #5   (View Single Post)  
Old 26th January 2012
denta denta is offline
Fdisk Soldier
 
Join Date: Nov 2009
Posts: 73
Thanked 0 Times in 0 Posts
Default

sudo sysctl kern.usermount=1
Reply With Quote
  #6   (View Single Post)  
Old 26th January 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,429
Thanked 214 Times in 189 Posts
Default

@daemonfowl, to clarify denta's comments: the settings in sysctl.conf(5) are provisioned by rc(8) during boot. The sysctl(8) command may be used to twist most knobs at will.
Reply With Quote
  #7   (View Single Post)  
Old 26th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

thanks for this superb link :
http://www.daemonforums.org/showthread.php?t=2232

quite clear and detailed ..
J65nko : you are a Guru+Artist ./.

it works fine .. after a reboot ..

Last edited by daemonfowl; 27th January 2012 at 11:47 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

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
No multimedia/adobe-flash-plugin or www/firefox-bin-flash... c_moriarty NetBSD Package System (pkgsrc) 9 28th December 2011 11:17 AM
How do I correctly mount a flash drive in OpenBSD? Justin_i OpenBSD General 5 22nd October 2011 05:01 AM
ntfs-3g can not mount USB flash mfaridi FreeBSD Ports and Packages 13 4th January 2011 06:03 AM
Mounting CDROM issue dylanz OpenBSD Installation and Upgrading 6 5th June 2010 11:53 PM


All times are GMT. The time now is 10:24 AM.


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