-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5abf327
commit eec3164
Showing
7 changed files
with
112 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
user=$1 | ||
target_dir=$2 | ||
home=/home/$user | ||
uid=$(stat -c %u $target_dir) | ||
gid=$(stat -c %g $target_dir) | ||
|
||
mkdir -p $home | ||
chown -R $uid:$gid $home | ||
|
||
if ! getent group $gid; then | ||
groupadd -g $gid embox_user | ||
fi | ||
|
||
useradd -u $uid -g $gid -G sudo -d $home -s /bin/bash $user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
/usr/local/sbin/create_matching_user.sh user /embox | ||
|
||
mkdir -p /var/run/sshd | ||
exec /usr/sbin/sshd -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAmsnvOMna7yBhs83JRMXa6PQFh4o/zDAe9p6yYOo2DOtl6Tv9 | ||
CTjyamOXmEwesm6SaXjPIBQxUozKofcH17rDls1K6OwCaNpl0ym4rxaT/q1hAZu0 | ||
/2VninFgMw/us/paB/LeWdJ5lcdx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Q3u9D6/jt6+lErKKOA09WNf1cctr+el33mwymfR | ||
kvuYiofVWgU26Mw74Tbj+IECgYEAk6rNETlMw4/rB+G1rlTeKkYXPsSK8ausZTAu | ||
zKM7zEe1cLPYTHyrFIWa44XGteeVrHSPCfRxrnZ08pz6Gp5XU4msdiraPnilky3R | ||
v+3c8iytRbx0rM041z97Gece4hY3HqxRsRQ5ay3x92p5LvuQUeRm1vQUIdW7h+eV | ||
gR/stWECgYEApyUJXnqGQ5GGd8vjCLct38cKekmgPyTaXDbMDIhXBikAcvBzEVZQ | ||
qPdxhsFrDhUR62WiaDUW4LscOtoUpTqpjgMe6oWvXmT6fbhokn60cfz3snfxuNdn | ||
hVaSNxmzBS/xKeW6TUtYtJsFzznvbvl3JgzBJjw3COQeDY+NEkxTkv0= | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaye84ydrvIGGzzclExdro9AWHij/MMB72nrJg6jYM62XpO/0JOPJqY5eYTB6ybpJpeM8gFDFSjMqh9wfXusOWzUro7AJo2mXTKbivFpP+rWEBm7T/ZWeKcWAzD+6z+loH8t5Z0nmVx3FcwouCivhHe4j0dFyjAy8dnlHjHa1VShz1uNGQH74aY9G38BYSPr5HtSfJxPn9nvt812N/DRqEPGdkCgpKq1u8gU4bB1IMf38TsM+DcbhV/UTm50aSkAtqGnUd5Zo8kcwb+U6VVItlqErkD3YqFYjegvHU0vMsoINixK1E74MCKpD3BR7hjNKwOWB7A+94wvl8uwkM/PYT anton@twister |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
. ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export EMBOX_DIR=/embox | ||
export AUTOQEMU_KVM_ARG="" | ||
|
||
cd $EMBOX_DIR |