View Single Post
  #1   (View Single Post)  
Old 22nd July 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Default Mount filesystem with a regular user

Hello,
I have a desktop installation of FreeBSD 7, and that's why I need my regular user to have write access to some mounted filesystems. How can I mount these filesystems? I can't see an option to mount giving user ownership rights.
I tried with
sysctl -w vfs.usermount=1
then change ownership of /mnt directory:
chown ivanatora:ivanatora /mnt/*
and then issue mount /mnt/storage/ with user ivanatora, and I got:
chown: storage: Invalid argument
Wtf? What does 'Invalid argument' means? Never seen that for chown.
Anyway I tried chowning a different directory with success, and I can mount it with my user.
The question is how would it be mounted after a reboot? I don't want to remount these everytime the system starts. There must be a fstab option to set the uid of that mount, maybe?
Reply With Quote