bugzilla-daemon at mindrot.org
2004-Mar-30 17:19 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 Summary: RFE: scp and ssh should have an option to set the group- id at login time Product: Portable OpenSSH Version: 3.8p1 Platform: All OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: Miscellaneous AssignedTo: openssh-bugs at mindrot.org ReportedBy: roland.mainz at nrubsig.org RFE: scp and ssh should have an option to set the group-id at login time. On Unix/Linux one user can be part of multiple groups (like "% /usr/bin/id uid=2306(gisburn) gid=2306(gisburn) groups=10(staff),8000(xprint)") - it would be nice if there is an option which can be given together with "-l" (like "-G") to select the group-id (either via "name" or "group number") at login time. A failure to select the requested group should be treated as login failure. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-30 21:31 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From djm at mindrot.org 2004-03-31 07:31 ------- sshd already sets up users with supplimental groups correctly. Why select one when you are already a member of all? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-30 21:50 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 07:50 ------- Damien Miller wrote:> sshd already sets up users with supplimental groups correctly. Why select one > when you are already a member of all?I want to be able to set the "current group" at login time. 1. Right now all files created by "scp" can only have the GID of the primary group and I have to "ssh" into the machine a 2nd time to run "chmod" on all new files. 2. I can't run scripts via "ssh" in any other group. In theory there is "newgrp" but that ONLY works in interactive mode since a new shell is spawned. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 00:23 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From mouring at eviladmin.org 2004-03-31 10:23 ------- I really don't see a need for this. ssh -t site script will force a TTY so newgrp will work. sftp supports 'chgrp' for scripting. Plus I'm not sure we could enforce such behavior accross all the different security methods. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 00:41 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 10:41 ------- Ben Lindstrom wrote:> I really don't see a need for this. > ssh -t site script will force a TTY so newgrp will work."newgrp" doesn't work even for "rsh" - and definately not for "ssh". "newgrp" doesn't allow to pass any arguments which will be executed. "newgrp" just starts a new shell and then does nothing until the EOF comes in. This is one of the oldest defects in Unix currently not being fixed (finally, the next version of the Single Unix Spec should fix that. Just took twenty years... ;-/ ... I hope OpenSSH will be slighly faster... :-))) ).> sftp supports 'chgrp' for scripting.Can you explain how I can use that from the ssh client side ?> Plus I'm not sure we could enforce such behavior accross all the different > security methodsUhm... login and then change the "egid" before invoking the command to execute ? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 00:50 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From mouring at eviladmin.org 2004-03-31 10:50 ------- sftp comment was refering to REPLACING your scp usage. As for the rest of it.. <shrug> write your own verison of newgrp. I still don't believe OpenSSH has any business doing this type of tom foolery. Besides, even this feature was implemented in 2.9 it would FAIL to work with 2.8 and below and SSH Corp. So why bother implementing it? We will get more complaints then it is worth. - Ben ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:01 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From djm at mindrot.org 2004-03-31 11:01 ------- I don't think this feature is warranted. It probably would require a protocol extension to work correctly, would add further complexity and bloat to the client and server and can be worked around in other ways. Why not make a little "newgrp" replacement that does what you want and stick in in your shell initialisation? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:03 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 11:03 ------- Ben Lindstrom wrote:> As for the rest of it.. <shrug> write your own verison of newgrp.Uhm... I hope this was thought as a joke, right ? :)> I still > don't believe OpenSSH has any > business doing this type of tom foolery.This is NOT foolery unless you think that the whole group-id system in Unix/Linux is foolery, too. Unfortunately this was weakly (like the problem that "newgrp" isn't usefull for non-interactive usage) implemented in the past. But now people are working hard on it to get all Unix versions fixed. And Linux. And FreeBSD; OpenBSD and even MacOSX. And this bug is part of this effort.> Besides, even this feature was > implemented in 2.9 it would > FAIL to work with 2.8 and below and SSH Corp.If OpenSSH implements it I'll get SSH.com to implement it, too.> So why bother implementing it?See comments above.> We will get more complaints then it is worth.Who should complain ? The if both SSH.com and OpenSSH implement it others will likely implement it, too. It will take some time, but that's the way new features always go. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:16 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From jmknoble at pobox.com 2004-03-31 11:16 ------- On 2004-03-31 10:41, Roland Mainz wrote:> "newgrp" just starts a new shell and then does nothing > until the EOF comes in.Exactly. Try this and you will see how easy it is to script: ssh -t host 'id; newgrp somegroup <<EOF id EOF ' The shell spawned by newgrp works just like any other program that accepts commands on standard input. Or am i missing something? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:17 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 11:17 ------- Damien Miller wrote:> I don't think this feature is warranted.Really ? See my previous comments. At some point all Unix tools should be fixed to allow proper usage of group mechanism. If OpenSSH would be skipped then this would be really a big loss... ;-(> It probably would require a protocol extension to work correctly, would add > further complexity and bloat to the client and server and can be worked around > in other ways.I disagree that this would be "bloat". You would only implement support for an existing Unix feature which is now going to be used more extensively.> Why not make a little "newgrp" replacement that does what you want and stick > in in your shell initialisation?Because there is no proper way to make such a "newgrp" replacement without huge pain. Such a wrapper MAY work in small lab environments but I doubt that a portable solution can easily be written. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:25 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 11:25 ------- Jim Knoble wrote:> Exactly. Try this and you will see how easy it is to script: > > ssh -t host 'id; newgrp somegroup <<EOF > id > EOFThis solution is not portable. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:29 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From jmknoble at pobox.com 2004-03-31 11:29 ------- On 2004-03-31 11:25, Roland Mainz wrote:> This solution is not portable.Please explain or point to pre-existing explanation. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:32 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From djm at mindrot.org 2004-03-31 11:32 -------> If OpenSSH implements it I'll get SSH.com to implement it, too.I don't think you understand: there is an IETF working group that standardises the SSH prototcol. OpenSSH implements these standards. Sometimes we might go outside this process for things that we feel are interesting or important, but this isn't one of them.> Because there is no proper way to make such a "newgrp" replacement > without huge pain.I don't believe you. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:37 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From jmknoble at pobox.com 2004-03-31 11:37 ------- On 2004-03-31 07:50, Roland Mainz wrote:> 1. Right now all files created by "scp" can only have > the GID of the primary group and I have to "ssh" > into the machine a 2nd time to run "chmod" on all > new files.Depends. On filesystems with BSD behavior, new files (and directories) inherit the group of the enclosing directory. On filesystems with SysV behavior, setting the setgid bit (02000) on the enclosing directory causes created files and directories to inherit the group from the directory. Created directories also inherit the setgid bit. Generally, setting the setgid bit on every directory where the group should be preserved does what you need without "fixing" anything. What am i missing? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 01:39 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From mouring at eviladmin.org 2004-03-31 11:39 ------->> Why not make a little "newgrp" replacement that does what you want and stick >> in in your shell initialisation? > >Because there is no proper way to make such a "newgrp" replacement without huge >pain. Such a wrapper MAY work in small lab environments but I doubt that a >portable solution can easily be written.So if there is "no proper way" to do it outside of OpenSSH... Yet you think that there is a proper way to do it within OpenSSH. You got to be joking. Give me a break. If you want this... Implement it and use it yourself. Otherwise write a SSH draft to support this and get the IETF to approve it. I think we've all wasted enough time on this. - Ben ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 02:13 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 12:13 ------- Jim Knoble wrote:> > This solution is not portable. > > Please explain or point to pre-existing explanation.The example assumes that "newgrp" accepts commands from stdin. This works for ksh88 (on Solaris, but Solaris's version of /usr/bin/ksh is heaviliy modified), ksh93 and bash2 but not for all other Unix shells. The OpenGroup manual page for "newgrp" lists "Not used" for "stdin", older docs say "behaviour undefined". That's why I say it's "not portable" - you're relying on undefined behaviour (the implementation of "newgrp" differs heavily between shells and Unix implementations anyway, just take a look at the rants in OpenGroups manual page, sections "APPLICATION USAGE" and "RATIONALE"... ;-( ). ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-31 02:20 UTC
[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
http://bugzilla.mindrot.org/show_bug.cgi?id=826 ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 12:20 ------- Ben Lindstrom wrote:> >> Why not make a little "newgrp" replacement that does what you want and > >> stick > >> in in your shell initialisation? > > > > Because there is no proper way to make such a "newgrp" replacement without > >huge > >pain. Such a wrapper MAY work in small lab environments but I doubt that a > >portable solution can easily be written. > > So if there is "no proper way" to do it outside of OpenSSH... Yet you think > that there is a proper way to do it within OpenSSH. You got to be joking. > Give me a break.I said "no proper way ... without huge pain", not "no proper way". Yes, it is possible to do it but it isn't an easy task to do it.> If you want this... Implement it and use it yourself. Otherwise write a SSH > draft to support this and > get the IETF to approve it. I think we've all wasted enough time on this.I have to report the feedback from this list back to the task force first. And yes, it seems we have to go to the IETF directly (but that wouldn't be my job then...). ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Possibly Parallel Threads
- [PATCH 1/1] paint visual host key with unicode box-drawing characters
- [Bug 815] RFE: sshd should be able to set environment variables defined by the client
- [Bug 827] RFE: Allow forwarding of Xprint servers if X11 forwarning is enabled
- [Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
- Shipping QEmu as part of Solaris Nevada (via SFWNV) ?