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). - Ste

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). - St

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 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

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

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

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 b

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 log

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 chan

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 >

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 log

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 cha

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 >

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 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.

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 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.

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-31 Thread Julian Elischer
so where re you at the moment? julian On Wed, 1 Sep 1999 [EMAIL PROTECTED] wrote: > Comments welcome. > > > > Adrian > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

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

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

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 * st.

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 PROTE

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

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 majord...

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 "uns

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 : fo

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

1999-08-29 Thread Chris D. Faulhaber
On Sun, 29 Aug 1999, Warner Losh wrote: > In message > "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 feature to h

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 config

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 varia

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

1999-08-29 Thread Warner Losh
In message 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 majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the m

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

1999-08-29 Thread Warner Losh
In message "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 majord...@freebsd.org with "unsubscribe freebsd-hackers" in th

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

1999-08-29 Thread Warner Losh
In message <[EMAIL PROTECTED]> "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 : formats to try. Doesn't. 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 confi

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

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 vari

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 t

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

1999-08-29 Thread Warner Losh
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. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebs

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 > > > > i

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 > > >

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 proba

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: s

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 > > > >

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

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

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/umou

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 al

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 prob

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:

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 > > >

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

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

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

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

1999-08-29 Thread Natty Rebel
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. > > vs> Discussion welcome! > > You can allo

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 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 th

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

1999-08-29 Thread Volker Stolz
Hi, I whacked mount and umount into shape for using an option "user" in /etc/fstab which allows normal users to mount/umount devices. Both programs have to be set-uid-root. I´d like that someone reviews the patches (and includes them :). The diffs are at http://www-i2.informatik.rwth-aachen.de/~sto

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

1999-08-29 Thread Volker Stolz
Hi, I whacked mount and umount into shape for using an option "user" in /etc/fstab which allows normal users to mount/umount devices. Both programs have to be set-uid-root. I´d like that someone reviews the patches (and includes them :). The diffs are at http://www-i2.informatik.rwth-aachen.de/~st