I am trying to mount another SSD I have for storage as user. I have added my user to operator group and changed the devfs.rules and devfs.conf files. I have edited sysctl.conf and rc.conf with relevant options and added the drives to fstab. Not sure what I'm missing but I always get "Operation not permitted". The drive mounts fine as root.
The drive is ada0s3 that I'm getting permissions errors on and it's a second SSD for storage internal SATA.
fstab
sysctl.conf
rc.conf
devfs.rules
devfs.conf
The drive is ada0s3 that I'm getting permissions errors on and it's a second SSD for storage internal SATA.
fstab
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/ada2s2a / ufs rw 1 1
/dev/ada1s1 /mnt/internal-storage ext2fs rw 0 0
/dev/ada2s1 /mnt/internal-ssd ext2fs rw 0 0
/dev/ada0s3 /mnt/arch ext2fs rw,noauto 0 0
/dev/ada0s2 /mnt/windows ntfs-3g rw,uid=1001,gid=1001,noauto 0 0
sysctl.conf
Code:
# $FreeBSD: releng/12.1/sbin/sysctl/sysctl.conf 337624 2018-08-11 13:28:03Z brd $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
# Chromium
kern.ipc.shm_allow_removed=1
# HD
vfs.read_max=128
# Desktop
kern.sched.preempt_thresh=224
# Enhance shared memory X11 interface
kern.ipc.shmall=16777216
kern.ipc.shmmax=1610673810
# Allow users to mount
vfs.usermount=1
# Turn off core dumps
kern.coredump=0
kern.corefile=/dev/null
rc.conf
Code:
hostname="lenovo"
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
moused_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
#Update microcode
microcode_update_enable="YES"
devfs_system_ruleset="localrules"
fusefs_enable="YES"
linux_enable="YES"
#Time synchronization
ntpd_enable="YES"
ntpd_sync_on_start="YES"
#ntpdate_enable="YES"
ntpd_oomprotect="YES"
# For drm-kmod
kld_list="/boot/modules/i915kms.ko ext2fs fuse"
devfs.rules
Code:
[localrules=10]
add path 'ada[0-9]\*' mode 0666 group operator
add path 'da*' mode 0666 group operator
devfs.conf
Code:
# Copyright (c) 2003 The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: releng/12.1/sbin/devfs/devfs.conf 338204 2018-08-22 15:55:23Z brd $
# These are examples of how to configure devices using /etc/rc.d/devfs.
# The first parameter is always the action to take, the second is always the
# existing device created by devfs, and the last is what you want to change.
# The name of the action is only significant to the first unique character.
#
# Examples:
# Commonly used by many ports
#link cd0 cdrom
#link cd0 dvd
# Allow a user in the wheel group to query the smb0 device
#perm smb0 0660
# Allow members of group operator to cat things to the speaker
#own speaker root:operator
#perm speaker 0660
own /dev/ada1s1 root:operator
perm /dev/ada1s1 0666
own /dev/ada0s3 root:operator
perm /dev/ada0s3 0666
own /dev/ada0s2 root:operator
perm /dev/ada0s2 0666
Last edited by a moderator: