RE: Cannot perform user mounts after upgrade

2009-01-21 Thread Ramiro Caso

> Date: Tue, 20 Jan 2009 19:56:29 +0100
> From: rsm...@xs4all.nl
> To: freebsd-questions-lo...@be-well.ilk.org
> CC: freebsd-questions@freebsd.org; misha...@hotmail.com
> Subject: Re: Cannot perform user mounts after upgrade
> 
> On Tue, Jan 20, 2009 at 01:44:48PM -0500, Lowell Gilbert wrote:
> > > The mount point still has the same ownership (me) and permissions (755) as
> > > before. Both /etc/devfs.rules, /etc/rc.conf and /etc/sysctl.conf have the
> > > relevant lines for allowing user mounts, namely:
> > >
> > > /etc/sysctl.conf==>  vfs.usermount=1
> > > /etc/devfs.rules==>  [localrules=10]
> > >  add path 'da*s*' mode 0660 group usb
> > > /etc/rc.conf==>  devfs_system_ruleset="localrules"
> > >
> > > I don't recall this being necessary, but I also have devd enabled in 
> > > rc.conf,
> > > although with no special rules for umass in devd.conf. Needless to say, I 
> > > belong
> > > to group usb. This configuration worked before just fine. Any ideas?
> > 
> > You certainly always needed permissions on a device to be able to mount
> > it.  For a device already present at boot time, you would need an entry
> > in devfs.rules.  For a device plugged in later, you would instead need
> > devd to know how to handle it.
> 
> For stuff available at boot you should use devfs.conf. The devfs.rules
> file is for devices that are plugged in later.


Thank you both for taking the time to answer!! Finally, the rule in devfs.rules 
was ok, but the file itself was a little bit messy. I cleaned it up, and it 
works perfectly now... sorry for the inconvenience, and thanks again!!
_
¿Qué puedes hacer con el nuevo Windows Live? Descúbrelo.
http://www.microsoft.com/latam/windows/windowslive/___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Cannot perform user mounts after upgrade

2009-01-20 Thread Roland Smith
On Tue, Jan 20, 2009 at 01:44:48PM -0500, Lowell Gilbert wrote:
> > The mount point still has the same ownership (me) and permissions (755) as
> > before. Both /etc/devfs.rules, /etc/rc.conf and /etc/sysctl.conf have the
> > relevant lines for allowing user mounts, namely:
> >
> > /etc/sysctl.conf==>  vfs.usermount=1
> > /etc/devfs.rules==>  [localrules=10]
> >  add path 'da*s*' mode 0660 group usb
> > /etc/rc.conf==>  devfs_system_ruleset="localrules"
> >
> > I don't recall this being necessary, but I also have devd enabled in 
> > rc.conf,
> > although with no special rules for umass in devd.conf. Needless to say, I 
> > belong
> > to group usb. This configuration worked before just fine. Any ideas?
> 
> You certainly always needed permissions on a device to be able to mount
> it.  For a device already present at boot time, you would need an entry
> in devfs.rules.  For a device plugged in later, you would instead need
> devd to know how to handle it.

For stuff available at boot you should use devfs.conf. The devfs.rules
file is for devices that are plugged in later.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpPE1yfWsAy9.pgp
Description: PGP signature


Re: Cannot perform user mounts after upgrade

2009-01-20 Thread Lowell Gilbert
Ramiro Caso  writes:

> I can't perform user mounts for my pendrive, and I used to be able to, before
> making an upgrade. Moreover, user mounts for both /dev/cd0 and /dev/fd0 are
> still operational. Root mounts are possible, but it's doesn't strike me as 
> good
> practice, and it is a little bit of an annoyance. I need help, at least a hint
> in some direction or other, because at this point I'm clueless.
>
> I'm running FreeBSD 7.1-RELEASE-p2, GENERIC kernel, i386. I just did a major
> ports updating, including perl-5.8.8 ==> perl-5.8.9. I ran the
> perl-after-upgrade script, and warned me about possible problems with
> /usr/local/sbin/snmpd and /usr/local/sbin/snmptrapd, but nothing else. I also
> recently installed /usr/ports/misc/compat5x, among other ports. I have some
> security and related ports installed, but they never caused problems before.
>
> The command I used is the expected one:
>
>   % mount -t msdosfs /dev/da0s1 ~/media/pendrive
>
> Now it gives the following (quite uninformative) error:
>
>   mount_msdosfs: /dev/da0s1: : Operation not permitted
>
> Strangely enough, a user mount with a read-only option works just fine:
>
>   % mount -o ro -t msdosfs /dev/da0s1 ~/media/pendrive
>
> The mount point still has the same ownership (me) and permissions (755) as
> before. Both /etc/devfs.rules, /etc/rc.conf and /etc/sysctl.conf have the
> relevant lines for allowing user mounts, namely:
>
> /etc/sysctl.conf==>  vfs.usermount=1
> /etc/devfs.rules==>  [localrules=10]
>  add path 'da*s*' mode 0660 group usb
> /etc/rc.conf==>  devfs_system_ruleset="localrules"
>
> I don't recall this being necessary, but I also have devd enabled in rc.conf,
> although with no special rules for umass in devd.conf. Needless to say, I 
> belong
> to group usb. This configuration worked before just fine. Any ideas?

You certainly always needed permissions on a device to be able to mount
it.  For a device already present at boot time, you would need an entry
in devfs.rules.  For a device plugged in later, you would instead need
devd to know how to handle it.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"