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 29th February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default vnconfig .. for non-root users

Hello there !

I don't know why I still can't mount isos via vnconfig , unless by sudoing .. while I can mount devices as a user ..

I own the file an folder and I mount them as described in the man :

Code:
$ sudo vnconfig vnd0 ~/isos/isofile.iso    
$ sudo mount -t cd9660 /dev/vnd0c ~/isomounts
I wonder if there anything I need to set up in sysctl.conf .. or does kern.usermount=1 suffice ?
do I have to "chown me vnd0c" ? (well I did in fact) .. I still have to sudo ..
Help appreciated .. thanks ..
Reply With Quote
  #2   (View Single Post)  
Old 29th February 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,643
Thanked 214 Times in 189 Posts
Default

mount and vnconfig are separate functions. Only mount can be configured to be executed by a normal user. If you wish to have vnconfig run in a single command, consider using your shell's alias tool.
Reply With Quote
  #3   (View Single Post)  
Old 29th February 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,643
Thanked 214 Times in 189 Posts
Default

I've just read your post again. You will be able to mount as a user if the user has r/w access to /dev/vnd* nodes.

From mount(8) --highlight mine:
Code:
...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
  #4   (View Single Post)  
Old 29th February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

thanks Jgimmi ..
I've already chowned myself /dev/vnd0 and chmoded 770 the isofile ..
Reply With Quote
  #5   (View Single Post)  
Old 29th February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

sorry .. I also have a similar question :
How can I mount .bin images under OpenBSD ?
I have no clue .. no man page ..
Reply With Quote
  #6   (View Single Post)  
Old 1st March 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,643
Thanked 214 Times in 189 Posts
Default

There are many different uses for the ".bin" file type, so you will actually have to determine what program wrote it. If this is a Mac .bin, you will not be able to use it, if CDRwin .bin, you might be able to treat it as an .iso file.

Do some Googling.
Reply With Quote
  #7   (View Single Post)  
Old 1st March 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

I guess it was made on/for windows platform
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
OpenBSD PF users rejoice! ocicat News 0 21st October 2010 01:31 PM
ssh key access non root users carpman FreeBSD Security 7 12th August 2009 06:09 PM
TeX for troff users? DrJ Off-Topic 0 2nd May 2008 09:29 PM


All times are GMT. The time now is 05:40 PM.


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