View Single Post
Old 24th July 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Default

I've already posted it, but here it is again -
1) Setting vfs.usermount = 1
2) Unmounting all filesystems
2) Chowning the /mnt tree - chown -R ivanatora:ivanatora /mnt
3) Set permissions for these devices - chmod a+rw /dev/ad*
and then added into /etc/defvs.rules:
Code:
[myrules=10]
add path 'ad*' mode 0666
and into rc.conf:
Code:
devfs_system_ruleset="myrules"
NOTE: This is sorta *not so secure* permission set. It would be better to use 660 permissions and add your group to the group owner of the /dev/ad*
4) Added these filesystems to /etc/fstab so they will be automatically mounted after next reboot:
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s1a             /               ufs     rw              1       1
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
/dev/ad0s7              /mnt/storage    msdosfs rw              0       0
/dev/ad0s5              /mnt/ntfs       ntfs    rw              0       0
/dev/ad0s1              /mnt/xp         ntfs    rw              0       0
/dev/ad0s8              /mnt/linux      ext2fs  rw              0       0
/dev/ad0s6              /mnt/extra      reiserfs        ro      0       0
/dev/da1s1              /mnt/mmc        msdosfs,noauto  rw              0       0
Reply With Quote