Re: [mount.c]: Option user-patch

1999-09-02 Thread Boris Popov
On Wed, 1 Sep 1999 [EMAIL PROTECTED] wrote: On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I provided a solution via send-pr (bin/11031) over four months ago, which is, in my opinion, superior in many ways to this sysctl approach. The patch

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
On Thu, Sep 02, 1999, Boris Popov wrote: without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed at runtime. It is always better to avoid setuid'ed binaries, this is more

Re: [mount.c]: Option user-patch

1999-09-02 Thread Andrew J. Korty
On Wed, 1 Sep 1999 [EMAIL PROTECTED] wrote: On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I provided a solution via send-pr (bin/11031) over four months ago, which is, in my opinion, superior in many ways to this sysctl approach. The

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
On Thu, Sep 02, 1999, Andrew J. Korty wrote: You realise that this kind of stuff can be done in kernelspace, without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed at

Re: [mount.c]: Option user-patch

1999-09-02 Thread Jamie Bowden
On Fri, 3 Sep 1999 [EMAIL PROTECTED] wrote: :Then all you need to do is think of a sane way to chown console devices :(floppy, cdrom, etc..) to the user when they login? Perhaps an extension :to login/xdm/whatever kde uses ? You can do this in /etc/fbtab. You already chown the console for X

Re: [mount.c]: Option user-patch

1999-09-02 Thread Andrew J. Korty
On Thu, Sep 02, 1999, Andrew J. Korty wrote: You realise that this kind of stuff can be done in kernelspace, without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
The user would still have to know what type of filesystem is on the volume. My code tries filesystem types from a list, one by one, so the same command or desktop icon will mount a FAT, UFS, or EXT2FS floppy, for example. The system administrator can also specify default mount options on

Re: [mount.c]: Option user-patch

1999-09-02 Thread C. Stephen Gunn
On Fri, Sep 03, 1999 at 03:01:26AM +0800, [EMAIL PROTECTED] wrote: The user would still have to know what type of filesystem is on the volume. My code tries filesystem types from a list, one by one, so the same command or desktop icon will mount a FAT, UFS, or EXT2FS floppy, for

Re: [mount.c]: Option user-patch

1999-09-02 Thread C. Stephen Gunn
This still doesn't entirely Oops. I didn't finish that thought again after the vi -r. I meant to say that even with a modifed kernel mount() call, there are difficulties getting all of the configuration possibities into the kernel propper. (Mount Options, What FS types to try, etc). -

Re: [mount.c]: Option user-patch

1999-09-02 Thread Boris Popov
On Wed, 1 Sep 1999 adr...@freebsd.org wrote: On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I provided a solution via send-pr (bin/11031) over four months ago, which is, in my opinion, superior in many ways to this sysctl approach. The patch

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
On Thu, Sep 02, 1999, Boris Popov wrote: without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed at runtime. It is always better to avoid setuid'ed binaries, this is more worse

Re: [mount.c]: Option user-patch

1999-09-02 Thread Andrew J. Korty
On Wed, 1 Sep 1999 adr...@freebsd.org wrote: On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I provided a solution via send-pr (bin/11031) over four months ago, which is, in my opinion, superior in many ways to this sysctl approach. The

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
On Thu, Sep 02, 1999, Andrew J. Korty wrote: You realise that this kind of stuff can be done in kernelspace, without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed at

Re: [mount.c]: Option user-patch

1999-09-02 Thread Jamie Bowden
On Fri, 3 Sep 1999 adr...@freebsd.org wrote: :Then all you need to do is think of a sane way to chown console devices :(floppy, cdrom, etc..) to the user when they login? Perhaps an extension :to login/xdm/whatever kde uses ? You can do this in /etc/fbtab. You already chown the console for X

Re: [mount.c]: Option user-patch

1999-09-02 Thread Andrew J. Korty
On Thu, Sep 02, 1999, Andrew J. Korty wrote: You realise that this kind of stuff can be done in kernelspace, without needing yet another setuid binary/binaries.. Well, sysctl with list of pathes for user mounts looks good. Configuration is simple and can be easliy changed at

Re: [mount.c]: Option user-patch

1999-09-02 Thread adrian
The user would still have to know what type of filesystem is on the volume. My code tries filesystem types from a list, one by one, so the same command or desktop icon will mount a FAT, UFS, or EXT2FS floppy, for example. The system administrator can also specify default mount options on a

Re: [mount.c]: Option user-patch

1999-09-02 Thread C. Stephen Gunn
On Fri, Sep 03, 1999 at 03:01:26AM +0800, adr...@freebsd.org wrote: The user would still have to know what type of filesystem is on the volume. My code tries filesystem types from a list, one by one, so the same command or desktop icon will mount a FAT, UFS, or EXT2FS floppy, for

Re: [mount.c]: Option user-patch

1999-09-02 Thread C. Stephen Gunn
This still doesn't entirely Oops. I didn't finish that thought again after the vi -r. I meant to say that even with a modifed kernel mount() call, there are difficulties getting all of the configuration possibities into the kernel propper. (Mount Options, What FS types to try, etc). -

Re: [mount.c]: Option user-patch

1999-08-31 Thread Doug Rabson
On Mon, 30 Aug 1999, Andrew J. Korty wrote: I suppose there already was a rather lengthy discussion about a "user"-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: [mount.c]: Option user-patch

1999-08-31 Thread adrian
On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I suppose there already was a rather lengthy discussion about a "user"-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :)

Re: [mount.c]: Option user-patch

1999-08-31 Thread Doug Rabson
On Mon, 30 Aug 1999, Andrew J. Korty wrote: I suppose there already was a rather lengthy discussion about a user-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz *

Re: [mount.c]: Option user-patch

1999-08-31 Thread adrian
On Tue, Aug 31, 1999, Doug Rabson wrote: On Mon, 30 Aug 1999, Andrew J. Korty wrote: I suppose there already was a rather lengthy discussion about a user-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really

Re: [mount.c]: Option user-patch

1999-08-31 Thread Julian Elischer
so where re you at the moment? julian On Wed, 1 Sep 1999 adr...@freebsd.org wrote: Comments welcome. Adrian To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the body of the message

Re: [mount.c]: Option user-patch

1999-08-30 Thread Volker Stolz
I suppose there already was a rather lengthy discussion about a "user"-option. I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz * [EMAIL PROTECTED] * PGP To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: [mount.c]: Option user-patch

1999-08-30 Thread Andrew J. Korty
I suppose there already was a rather lengthy discussion about a "user"-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz * [EMAIL PROTECTED] * PGP I provided a solution via send-pr (bin/11031)

Re: [mount.c]: Option user-patch

1999-08-30 Thread Volker Stolz
I suppose there already was a rather lengthy discussion about a user-option. I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz * st...@pool.informatik.rwth-aachen.de * PGP To Unsubscribe: send mail to

Re: [mount.c]: Option user-patch

1999-08-30 Thread Andrew J. Korty
I suppose there already was a rather lengthy discussion about a user-option . I hope this sysctl-thing will make it into the mount-manpage, because if not, it might turn out to be a really FAQ :) -- Volker Stolz * st...@pool.informatik.rwth-aachen.de * PGP I provided a solution via send-pr

Re: [mount.c]: Option user-patch

1999-08-29 Thread JK3
vs I whacked mount and umount into shape for using an option "user" in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. vs Discussion welcome! You can allow non-root users to mount and unmount devices if the

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Natty Rebel wrote: Quoting JK3 ([EMAIL PROTECTED]): vs I whacked mount and umount into shape for using an option "user" in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff.

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Chris Piazza wrote: On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in /etc/rc.sysctl sysctl -w vfs.usermount=1 Maybe it's

Re: [mount.c]: Option user-patch

1999-08-29 Thread Kris Kennaway
On Sun, 29 Aug 1999, Chris Piazza wrote: # set sysctl variables early as we can if [ -f /etc/rc.sysctl ]; then . /etc/rc.sysctl fi Mind you it doesn't look like it was merged into releng_3 Could someone do this before 3.3? It's useful functionality. Kris To Unsubscribe: send

Re: [mount.c]: Option user-patch

1999-08-29 Thread Kris Kennaway
On Mon, 30 Aug 1999, Alban Hertroys wrote: I have seen this line a lot lately. It isn't in FreeBSD 3.2-STABLE, is it? My /usr/src/sbin/mount/mount.c says: /* * If the mount was successfully, and done by root, tell mountd the * good news. Pid checks are probably

Re: [mount.c]: Option user-patch

1999-08-29 Thread Natty Rebel
Quoting Chris D. Faulhaber ([EMAIL PROTECTED]): On Sun, 29 Aug 1999, Chris Piazza wrote: On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in

Re: [mount.c]: Option user-patch

1999-08-29 Thread Warner Losh
In message [EMAIL PROTECTED] Kris Kennaway writes: : Could someone do this before 3.3? It's useful functionality. As the committer of this feature, I've just sent mail to jkh asking for permission. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in

Re: [mount.c]: Option user-patch

1999-08-29 Thread Anthony Kimball
vs I whacked mount and umount into shape for using an option "user" in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. You can allow non-root users to mount and unmount devices if the sysctl variable

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Chris D. Faulhaber" writes: : Maybe it's just me, but I think you are confusing this with : {Net|Open}BSD. /etc/rc.sysctl does not exist in FreeBSD. rc.sysctl does too. I added it. Excellent. That will be a nice

Re: [mount.c]: Option user-patch

1999-08-29 Thread C. Stephen Gunn
On Sun, Aug 29, 1999 at 10:47:05PM -0600, Warner Losh wrote: As the committer of this feature, I've just sent mail to jkh asking for permission. How does this change relate to bin/11031? The above patches weren't written by me, but by a co-worker of mine. It allows for a termcap-like

Re: [mount.c]: Option user-patch

1999-08-29 Thread JK3
vs I whacked mount and umount into shape for using an option user in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. vs Discussion welcome! You can allow non-root users to mount and unmount devices if the

Re: [mount.c]: Option user-patch

1999-08-29 Thread Natty Rebel
Quoting JK3 (j...@bgl.vsnl.net.in): vs I whacked mount and umount into shape for using an option user in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. vs Discussion welcome! You can allow non-root

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Natty Rebel wrote: Quoting JK3 (j...@bgl.vsnl.net.in): vs I whacked mount and umount into shape for using an option user in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff.

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris Piazza
On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in /etc/rc.sysctl sysctl -w vfs.usermount=1 Maybe it's just me, but I think you are confusing this with

Re: [mount.c]: Option user-patch

1999-08-29 Thread Alban Hertroys
On 29 Aug, Chris Piazza wrote: On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in /etc/rc.sysctl sysctl -w vfs.usermount=1 I have seen this line a lot lately.

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Chris Piazza wrote: On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in /etc/rc.sysctl sysctl -w vfs.usermount=1 Maybe it's

Re: [mount.c]: Option user-patch

1999-08-29 Thread Kris Kennaway
On Sun, 29 Aug 1999, Chris Piazza wrote: # set sysctl variables early as we can if [ -f /etc/rc.sysctl ]; then . /etc/rc.sysctl fi Mind you it doesn't look like it was merged into releng_3 Could someone do this before 3.3? It's useful functionality. Kris To Unsubscribe: send

Re: [mount.c]: Option user-patch

1999-08-29 Thread Kris Kennaway
On Mon, 30 Aug 1999, Alban Hertroys wrote: I have seen this line a lot lately. It isn't in FreeBSD 3.2-STABLE, is it? My /usr/src/sbin/mount/mount.c says: /* * If the mount was successfully, and done by root, tell mountd the * good news. Pid checks are probably

Re: [mount.c]: Option user-patch

1999-08-29 Thread Natty Rebel
Quoting Chris D. Faulhaber (jed...@fxp.org): On Sun, 29 Aug 1999, Chris Piazza wrote: On Sun, Aug 29, 1999 at 06:30:35PM -0400, Chris D. Faulhaber wrote: On Sun, 29 Aug 1999, Natty Rebel wrote: This procedure can be automated by entering the following command in /etc/rc.sysctl

Re: [mount.c]: Option user-patch

1999-08-29 Thread Warner Losh
In message pine.bsf.4.10.9908291829260.61952-100...@pawn.primelocation.net Chris D. Faulhaber writes: : Maybe it's just me, but I think you are confusing this with : {Net|Open}BSD. /etc/rc.sysctl does not exist in FreeBSD. rc.sysctl does too. I added it. Warner To Unsubscribe: send mail to

Re: [mount.c]: Option user-patch

1999-08-29 Thread Warner Losh
In message pine.bsf.4.10.9908291552200.47871-100...@hub.freebsd.org Kris Kennaway writes: : Could someone do this before 3.3? It's useful functionality. As the committer of this feature, I've just sent mail to jkh asking for permission. Warner To Unsubscribe: send mail to

Re: [mount.c]: Option user-patch

1999-08-29 Thread Anthony Kimball
vs I whacked mount and umount into shape for using an option user in [snip] vs http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff vs http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. You can allow non-root users to mount and unmount devices if the sysctl variable

Re: [mount.c]: Option user-patch

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Warner Losh wrote: In message pine.bsf.4.10.9908291829260.61952-100...@pawn.primelocation.net Chris D. Faulhaber writes: : Maybe it's just me, but I think you are confusing this with : {Net|Open}BSD. /etc/rc.sysctl does not exist in FreeBSD. rc.sysctl does too. I

Re: [mount.c]: Option user-patch

1999-08-29 Thread C. Stephen Gunn
On Sun, Aug 29, 1999 at 10:47:05PM -0600, Warner Losh wrote: As the committer of this feature, I've just sent mail to jkh asking for permission. How does this change relate to bin/11031? The above patches weren't written by me, but by a co-worker of mine. It allows for a termcap-like

Re: [mount.c]: Option user-patch

1999-08-29 Thread Warner Losh
In message 1999083324.a29...@tsunami.waterspout.com C. Stephen Gunn writes: : The above patches weren't written by me, but by a co-worker of : mine. It allows for a termcap-like configuration file /etc/mountcap : that allows you to specify a mountpoint/device, options, and filesystem :