Too dumb to mount as non privileged user

2006-09-18 Thread norbert
Hello,

using a 6.2-PRERELEASE I am not able to let a normal user mount a cdrom.
I have tried the following:

o vfs.usermount=1 to sysctl.conf
o added group usermounters
o added user to usermounters
o own acd0 root:usermounters to devfs.conf
o perm acd0 0660 to devfs.conf
o created directory with ownership of non privileged user
o reboot

Trying to mount as user to the users own directory yields 'operation not 
permitted' error.

So I changed the ownerships to 0666 but this didn't help either.
I doublechecked sysctl, groups and ownerships. Can please anybody give me a 
hint?

TIA

Norbert
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too dumb to mount as non privileged user

2006-09-18 Thread George Potapov
On Monday 18 September 2006 15:12, [EMAIL PROTECTED] wrote:

 So I changed the ownerships to 0666 but this didn't help either.
 I doublechecked sysctl, groups and ownerships. Can please anybody give me a
 hint?

IIRC the mount point directory must be owned by the user attempting the mount.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too dumb to mount as non privileged user

2006-09-18 Thread Jona Joachim
[EMAIL PROTECTED] wrote:
 Hello,
 
 using a 6.2-PRERELEASE I am not able to let a normal user mount a cdrom.
 I have tried the following:
 
 o vfs.usermount=1 to sysctl.conf
 o added group usermounters
 o added user to usermounters
 o own acd0 root:usermounters to devfs.conf
 o perm acd0 0660 to devfs.conf
 o created directory with ownership of non privileged user
 o reboot
 
 Trying to mount as user to the users own directory yields 'operation not 
 permitted' error.
 
 So I changed the ownerships to 0666 but this didn't help either.
 I doublechecked sysctl, groups and ownerships. Can please anybody give me a 
 hint?

Make sure the cd9660 kernel module is loaded before you mount a CD as
user. The first time you mount a CD the module is loaded but a user is
not allowed to load a kernel module. You may want to load the module
during boot time by putting a corresponding entry in /boot/loader.conf

--jona
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too dumb to mount as non privileged user

2006-09-18 Thread Norbert Kaufmann
Jona Joachim wrote:
 Make sure the cd9660 kernel module is loaded before you mount a CD as
 user. The first time you mount a CD the module is loaded but a user is
 not allowed to load a kernel module. You may want to load the module
 during boot time by putting a corresponding entry in /boot/loader.conf
 
 --jona

Thanks, that's it!

Norbert
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]