Re: allowing users to mount cdrom again (thanks)
On Thursday 08 July 2004 14:34, you wrote: > On Thu, 8 Jul 2004 00:41:59 +0200 > > Grant Speelman <[EMAIL PROTECTED]> wrote: > > Hi > > > > I read in the previous post about allowing users to mount cdrom > > and wanted to try it for myself > > I did the follow : > > > > added vfs.usermount=1 to /etc/sysctl.conf > > changed the permissions on /dev/acd0 to include the user > > restarted freebsd (It's amazing what a restart does for me > > sometimes) > > > > but this happens: > > > > Grant > mount /mnt/cdrom1 > > cd9660: /dev/acd1: Operation not permitted > > I suspect that you may be trying to mount (as a user) to a > mount point that the user (Grant) does not own. > > > I am working in Kde usings Kde's Konsole and have two cdroms on > > FreeBSD 5.2.1 > > Please help > > The FAQ has an entry about this: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USE >R-FLOPPYMOUNT > > Its easy to overlook that the ordinary users have to own the mount > point to be used. Follow the steps outlined there and see if that > takes care of your problem. > > HTH, > > Randy Thanks this helped with the problem. Grant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom again
On Thu, 8 Jul 2004 00:41:59 +0200 Grant Speelman <[EMAIL PROTECTED]> wrote: > Hi > > I read in the previous post about allowing users to mount cdrom and > wanted to try it for myself > I did the follow : > > added vfs.usermount=1 to /etc/sysctl.conf > changed the permissions on /dev/acd0 to include the user > restarted freebsd (It's amazing what a restart does for me sometimes) > > but this happens: > > Grant > mount /mnt/cdrom1 > cd9660: /dev/acd1: Operation not permitted I suspect that you may be trying to mount (as a user) to a mount point that the user (Grant) does not own. > I am working in Kde usings Kde's Konsole and have two cdroms on > FreeBSD 5.2.1 > Please help The FAQ has an entry about this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT Its easy to overlook that the ordinary users have to own the mount point to be used. Follow the steps outlined there and see if that takes care of your problem. HTH, Randy -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom again
On Thu, 8 Jul 2004 00:41:59 +0200, Grant Speelman <[EMAIL PROTECTED]> wrote: > Hi > > I read in the previous post about allowing users to mount cdrom and > wanted to try it for myself > I did the follow : > > added vfs.usermount=1 to /etc/sysctl.conf > changed the permissions on /dev/acd0 to include the user > restarted freebsd (It's amazing what a restart does for me sometimes) /dev is not a real filesystem. Once you reboot, changes are lost. You would want to put permissions in /etc/devfs.conf so it's more permanent. Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
allowing users to mount cdrom again
Hi I read in the previous post about allowing users to mount cdrom and wanted to try it for myself I did the follow : added vfs.usermount=1 to /etc/sysctl.conf changed the permissions on /dev/acd0 to include the user restarted freebsd (It's amazing what a restart does for me sometimes) but this happens: Grant > mount /mnt/cdrom1 cd9660: /dev/acd1: Operation not permitted I am working in Kde usings Kde's Konsole and have two cdroms on FreeBSD 5.2.1 Please help Grant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom
hey! On Sat, 2004-07-03 at 23:55, Mikko Työläjärvi wrote: > On Sat, 3 Jul 2004, jobse wrote: > > > Dear List, > > When trying to mount the cdrom I get Operation not permitted. > > sysctl: vfs.usermount=0(what does that mean and how can I *permanently* > > change it to 1) > > I'd rather not set the sticky bit on mount/umount if I mustn't. > > > > suggestions? > > /jobse > > vfs.usermount allows non-root users to perform a mount, provided that > they have sufficient access to both device being mounted and the > mountpoint. Users won't be permitted to do other privileged > operations, such as loading kernel modules, so in some cases the mount > may still fail. k! > > To set vfs.usermount=1 on every boot, add it to /etc/sysctl.conf (see > sysctl.conf(8)). Did that. > > One way to give access to assorted files and devices to the user > currently logged in on the local console is to use /etc/fbtab (see > fbtab(5)), thus: > >/dev/ttyv0 0600/dev/acd0 >/dev/ttyv0 0755/cdrom That was the trick! thanx > ... I dunno, I'm not using a GUI login thingy). Me neither. >$.02, >/Mikko > jobse ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom
On Sat, 3 Jul 2004, jobse wrote: Dear List, When trying to mount the cdrom I get Operation not permitted. sysctl: vfs.usermount=0(what does that mean and how can I *permanently* change it to 1) I'd rather not set the sticky bit on mount/umount if I mustn't. suggestions? /jobse vfs.usermount allows non-root users to perform a mount, provided that they have sufficient access to both device being mounted and the mountpoint. Users won't be permitted to do other privileged operations, such as loading kernel modules, so in some cases the mount may still fail. To set vfs.usermount=1 on every boot, add it to /etc/sysctl.conf (see sysctl.conf(8)). One way to give access to assorted files and devices to the user currently logged in on the local console is to use /etc/fbtab (see fbtab(5)), thus: /dev/ttyv0 0600/dev/acd0 /dev/ttyv0 0755/cdrom When using some GUI based login doohickey (xdm, gdm, kdm, whatever), there are usually some kind of "pre-session" script where suitable code can be inserted to tweak permissions on things when someone is logging in on the local console (unless they are already reading /etc/fbtab... I dunno, I'm not using a GUI login thingy). $.02, /Mikko ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom
On Sat, 2004-07-03 at 17:09, jobse wrote: > Dear List, > When trying to mount the cdrom I get Operation not permitted. > sysctl: vfs.usermount=0(what does that mean and how can I *permanently* > change it to 1) > I'd rather not set the sticky bit on mount/umount if I mustn't. > > suggestions? > /jobse > Are you trying to mount the cdrom for playing music cd's? - #mount /dev/acd0 /cdrom if you get an error here. - try changing the permissions on /dev/acd0 to include your user trying to access/mount the device. Bruce ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: allowing users to mount cdrom
jobse wrote: > Dear List, > When trying to mount the cdrom I get Operation not permitted. > sysctl: vfs.usermount=0(what does that mean and how can I *permanently* > change it to 1) It means, that users are not allowed to mount file systems. To change it, run (as root) # sysctl vfs.usermount=1 To make this permanent, add vfs.usermount=1 to /etc/sysctl.conf. Now, regular users are allowed to mount file systems on directories they own. > I'd rather not set the sticky bit on mount/umount if I mustn't. s/sticky/suid/ Simon signature.asc Description: Digital signature
allowing users to mount cdrom
Dear List, When trying to mount the cdrom I get Operation not permitted. sysctl: vfs.usermount=0(what does that mean and how can I *permanently* change it to 1) I'd rather not set the sticky bit on mount/umount if I mustn't. suggestions? /jobse ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"