We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fbe475 commit 14d922cCopy full SHA for 14d922c
workspace/core/ssh-entrypoint.nix
@@ -4,12 +4,6 @@ let
4
sshEntryPoint = pkgs.writeScript "ssh-entrypoint" ''
5
#!${pkgs.bashInteractive}/bin/bash
6
7
- # Handle SCP protocol directly
8
- if [ "$#" -gt 0 ] && echo "$1" | grep -q "^scp "; then
9
- exec "$@"
10
- fi
11
-
12
- # Handle other commands or interactive shell
13
if [ "$#" -gt 0 ]; then
14
$SHELL "$@"
15
else
workspace/core/sudo.py
@@ -31,7 +31,7 @@ def main():
31
else:
32
error(f"{program}: unknown user: {args.user}")
33
34
- groups = [group.gr_id for group in grp.getgrall() if user.pw_name in group.gr_mem]
+ groups = [group.gr_gid for group in grp.getgrall() if user.pw_name in group.gr_mem]
35
if user.pw_gid not in groups:
36
groups.append(user.pw_gid)
37
0 commit comments