This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix bug on modifying sshd username (
#5624
)
Should
fix
#5623
tags/v1.21.12.1
Moshi Binyamini
techknowlogick
6 years ago
parent
74b9a13f84
commit
76060613ef
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
docker/usr/bin/entrypoint
+ 1
- 1
docker/usr/bin/entrypoint
View File
@@ -4,7 +4,7 @@ if [ "${USER}" != "git" ]; then
# rename user
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
# switch sshd config to different user
sed -i -e "s/AllowUsers git/AllowUsers ${USER}/g" /etc/ssh/sshd_config
sed -i -e "s/AllowUsers git
$
/AllowUsers ${USER}/g" /etc/ssh/sshd_config
fi
## Change GID for USER?
Write
Preview
Loading…
Cancel
Save