Re: vfs.usermount=1, bug?

2004-02-07 Thread Didier Wiroth
Damn, :-)) that was fast and correct answer: 
kldstat | grep ntfs 
 71 0xc7846000 c000 ntfs.ko 
 
Thanks 
 
 
On Sat, 2004-02-07 at 15:18, Didier Wiroth wrote:
 Hi, 
 using freebsd5.2-release 
 I've set vfs.usermount=1 in sysctl.conf. 
 Normal user get permission denied when trying to 
 mount an ntfs permission (slice ars01), until root 
 has mount and umount it at least once. 
 See the following 
  
 File permission on /dev/ar0s1 is 644 and owned by 
 root:operator 
  
 User ddais member of group dda, wheel  operator. 
  
 A) Mounting as user dda: 
 [EMAIL PROTECTED]:~ mount_ntfs /dev/ar0s1 mnt/ntfs/ 
 mount_ntfs: /dev/ar0s1: Operation not permitted 
  
 Mounting was not permitted  
  
 Changing to root: 
 [EMAIL PROTECTED]:~ su 
 Password: 
 [EMAIL PROTECTED]:/home/dda# mount_ntfs /dev/ar0s1 
 mnt/ntfs 
  
 Slice was mounted without problem, let's umount 
 it, and change back to user dda. 
 [EMAIL PROTECTED]:/home/dda# umount mnt/ntfs 
 [EMAIL PROTECTED]:/home/dda# exit 
 exit 
  
 B) TRY AGAIN NOW AS USER DDA 
 [EMAIL PROTECTED]:~ mount_ntfs /dev/ar0s1 mnt/ntfs/ 
  
 NOw it works?! Hmm...!? 
  
 Any suggestions?! 

The ntfs.ko kernel module wasn't loaded until root issued the command. 
While usermount allows users to mount file systems, it does not allow
users to load kernel modules.

Joe

 Thx 
  
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vfs.usermount=1, bug?

2004-02-07 Thread Michael Nottebrock
On Saturday 07 February 2004 21:22, Joe Marcus Clarke wrote:
 On Sat, 2004-02-07 at 15:18, Didier Wiroth wrote:
 Any suggestions?! 

 The ntfs.ko kernel module wasn't loaded until root issued the command.
 While usermount allows users to mount file systems, it does not allow
 users to load kernel modules.

Workaround: Put

ntfs_load=YES

in /boot/loader.conf.local

-- 
   ,_,   | Michael Nottebrock   | [EMAIL PROTECTED]
 (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org


pgp0.pgp
Description: signature


Re: vfs.usermount=1, bug?

2004-02-07 Thread Joe Marcus Clarke
On Sat, 2004-02-07 at 15:18, Didier Wiroth wrote:
 Hi, 
 using freebsd5.2-release 
 I've set vfs.usermount=1 in sysctl.conf. 
 Normal user get permission denied when trying to 
 mount an ntfs permission (slice ars01), until root 
 has mount and umount it at least once. 
 See the following 
  
 File permission on /dev/ar0s1 is 644 and owned by 
 root:operator 
  
 User ddais member of group dda, wheel  operator. 
  
 A) Mounting as user dda: 
 [EMAIL PROTECTED]:~ mount_ntfs /dev/ar0s1 mnt/ntfs/ 
 mount_ntfs: /dev/ar0s1: Operation not permitted 
  
 Mounting was not permitted  
  
 Changing to root: 
 [EMAIL PROTECTED]:~ su 
 Password: 
 [EMAIL PROTECTED]:/home/dda# mount_ntfs /dev/ar0s1 
 mnt/ntfs 
  
 Slice was mounted without problem, let's umount 
 it, and change back to user dda. 
 [EMAIL PROTECTED]:/home/dda# umount mnt/ntfs 
 [EMAIL PROTECTED]:/home/dda# exit 
 exit 
  
 B) TRY AGAIN NOW AS USER DDA 
 [EMAIL PROTECTED]:~ mount_ntfs /dev/ar0s1 mnt/ntfs/ 
  
 NOw it works?! Hmm...!? 
  
 Any suggestions?! 

The ntfs.ko kernel module wasn't loaded until root issued the command. 
While usermount allows users to mount file systems, it does not allow
users to load kernel modules.

Joe

 Thx 
  
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part