C. K. | 16 Sep 2007 01:22

Chapter 12.5 should be updated


Hi,

2.5. Allowing normal users to access CDs

The command

mount -t cd9660 /dev/cd0a `pwd`/cdrom

does not work, instead 

mount -t cd9660 -o nodev,nosuid /dev/cd0a `pwd`/cdrom

should be used.

Tested on NetBSD 4.99.29

Regards,

--

-- 
View this message in context: http://www.nabble.com/Chapter-12.5-should-be-updated-tf4449413.html#a12695011
Sent from the netbsd-docs general mailing list archive at Nabble.com.

Mark Weinem | 21 Sep 2007 01:15
Picon

Re: Chapter 12.5 should be updated

Hi,

> The command
> 
> mount -t cd9660 /dev/cd0a `pwd`/cdrom
> 
> does not work, instead 
> 
> mount -t cd9660 -o nodev,nosuid /dev/cd0a `pwd`/cdrom
> 
> should be used.

Thank you for reporting this! But it still works on NetBSD 3.1 and
NetBSD 4.0_BETA1
What are the reasons that it doesn't work on -current any more?

> Tested on NetBSD 4.99.29

The guide doesn't support NetBSD-current.

kind regards, Mark Weinem

David Laight | 21 Sep 2007 08:51
Picon

Re: Chapter 12.5 should be updated

On Fri, Sep 21, 2007 at 01:15:46AM +0200, Mark Weinem wrote:
> Hi,
> 
> > The command
> > 
> > mount -t cd9660 /dev/cd0a `pwd`/cdrom
> > 
> > does not work, instead 
> > 
> > mount -t cd9660 -o nodev,nosuid /dev/cd0a `pwd`/cdrom
> > 
> > should be used.
> 
> Thank you for reporting this! But it still works on NetBSD 3.1 and
> NetBSD 4.0_BETA1
> What are the reasons that it doesn't work on -current any more?

I suspect it has something to do with kauth ....

	David

--

-- 
David Laight: david <at> l8s.co.uk

Martin Husemann | 21 Sep 2007 11:01
Picon

Re: Chapter 12.5 should be updated

On Fri, Sep 21, 2007 at 01:15:46AM +0200, Mark Weinem wrote:
> Thank you for reporting this! But it still works on NetBSD 3.1 and
> NetBSD 4.0_BETA1

For 4.0 and -current it only works for root. As a normal user, you need the
nodev,nosuid options - see mount(8):

     In NetBSD, a file system can only be mounted by an ordinary user who owns
     the point node and has access to the special device (at least read per-
     missions).  Also, the vfs.generic.usermount sysctl(3) must be set to 1 to
     permit file system mounting by ordinary users, see sysctl(8).  Finally,
     the flags nosuid and nodev must be given for non-superuser mounts.

Martin

John Nemeth | 21 Sep 2007 11:43
Picon
Favicon

Re: Chapter 12.5 should be updated

On Feb 11,  5:37am, Martin Husemann wrote:
} On Fri, Sep 21, 2007 at 01:15:46AM +0200, Mark Weinem wrote:
} > Thank you for reporting this! But it still works on NetBSD 3.1 and
} > NetBSD 4.0_BETA1
} 
} For 4.0 and -current it only works for root. As a normal user, you need the
} nodev,nosuid options - see mount(8):
} 
}      In NetBSD, a file system can only be mounted by an ordinary user who owns
}      the point node and has access to the special device (at least read per-
}      missions).  Also, the vfs.generic.usermount sysctl(3) must be set to 1 to
}      permit file system mounting by ordinary users, see sysctl(8).  Finally,
}      the flags nosuid and nodev must be given for non-superuser mounts.

     Could mount(2) be fixed to force nodev,nosuid for non-superuser
mounts instead of throwing an error?

}-- End of excerpt from Martin Husemann

Mark Weinem | 23 Sep 2007 22:50
Picon

Re: Chapter 12.5 should be updated

Should be fixed now.

Thank you & kind regards,

Mark Weinem


Gmane