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 2nd February 2009
marc's Avatar
marc marc is offline
Port Guard
 
Join Date: Jul 2008
Location: Poland
Posts: 25
Thanked 0 Times in 0 Posts
Default FFS permission issue

Hello,
I have just finished configuring my OBSD installation, dd`ed it onto the first HDD [the second one containt two partitions:

1. OpenBSD installation partition which contains few typical system slices
2. OpenBSD FFS storage partition [which is accessible from within OBSD as "wd1i"]

I was going to make wd1i writable for me [user was added to wheel and operator group], but apparently I have no luck with writing onto this partition.
I tried to change permissions, but It gave me nothing. The only thing that helped was to chown -R user /dev/wd1i.
I really want to avoid messing with /dev permissions if possible, so my question is: is it possible to let the regular user mount wd1i in a non-invasive manner?
What should I configure? and how should the /mnt dir permissions look like?

Thanks for any help
marc
Reply With Quote
  #2   (View Single Post)  
Old 2nd February 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

mount(8)
Code:
A mount point node must be an existing directory for a mount to succeed
     (except in the special case of /, of course).  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.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 2nd February 2009
marc's Avatar
marc marc is offline
Port Guard
 
Join Date: Jul 2008
Location: Poland
Posts: 25
Thanked 0 Times in 0 Posts
Default

Thank you for your answer.
What do you think are the best permissions for this type of dev and mnt dir?

EDIT: I did not make myself clear.
I would like to make a regular user able to write to wd1i partition, although
I don not want him to be able of mounting that particular partition.

EDIT2: OK, this issue is currently the past.
I`ve managed to solve it just by chowning mounted /mnt/wd1i/* files.
It is a perfect an non-invasive way I was willing to implement, because the unmounted mount point has typical system permissions - root/wheel.

Last edited by marc; 2nd February 2009 at 08:26 PM.
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
Permission problems after restore Crotalus FreeBSD Installation and Upgrading 3 5th February 2009 02:17 PM
MySQL permission oddity Mantazz FreeBSD Ports and Packages 4 13th December 2008 09:06 PM
Permission denied (publickey). Help pls rex FreeBSD General 13 14th October 2008 08:54 PM
user permission... lumiwa FreeBSD General 12 30th September 2008 02:28 AM
Permission denied delboy FreeBSD Ports and Packages 11 24th May 2008 09:26 PM


All times are GMT. The time now is 01:11 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