diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2011-04-20 23:57:59 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2011-04-20 23:57:59 -0700 |
commit | 7663a27030cbcd138fd2c9e7b324e314fb1f7d4c (patch) | |
tree | 561493773129e76427e0cd1568c4238ed76f59c2 /pinyadmin | |
parent | a1a447406787efa2567b403334eb0031a7c45ad2 (diff) | |
download | piny-code-7663a27030cbcd138fd2c9e7b324e314fb1f7d4c.tar.gz piny-code-7663a27030cbcd138fd2c9e7b324e314fb1f7d4c.zip |
Hard-coding gid for newuser
Diffstat (limited to 'pinyadmin')
-rwxr-xr-x | pinyadmin/sbin/newuser | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/newuser b/pinyadmin/sbin/newuser index ef61cd7..22c73ef 100755 --- a/pinyadmin/sbin/newuser +++ b/pinyadmin/sbin/newuser @@ -158,7 +158,7 @@ print GITCONFIG <<END; END close( GITCONFIG ); -chown( $u->uid, $u->group->gid, $u->home . "/.gitconfig" ); +chown( $u->uid, (getgrnam("users"))[2] , $u->home . "/.gitconfig" ); print "Your user has been created. Try logging in!\n"; |