[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Mar 31 11:37:22 EST 2004


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.




More information about the openssh-bugs mailing list