����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# purpose of this script is copy the user vagrant and its home dir to the rescue image
# only required when working with vagrant of course
if PASSWD_VAGRANT=$(grep vagrant /etc/passwd) ; then
#vagrant:x:1000:1000:vagrant:/home/vagrant:/bin/bash
echo "$PASSWD_VAGRANT" >>$ROOTFS_DIR/etc/passwd
IFS=: read user ex uid gid gecos homedir junk <<<"$PASSWD_VAGRANT"
CLONE_GROUPS+=( "$gid" admin )
mkdir -p $v -m 0700 "$ROOTFS_DIR$homedir"
chown $v ${user}:${gid} "$ROOTFS_DIR$homedir"
COPY_AS_IS+=( $homedir/.s[s]h )
# grab the shadow entry - if hashed use that one otherwise generate generic entry with password vagrant
IFS=: read user hash junk <<<$(grep $user /etc/shadow)
case "$hash" in
'$1$'*) echo "$user:$hash:$junk" >> $ROOTFS_DIR/etc/shadow ;;
* ) echo "$user:$(echo vagrant | openssl passwd -1 -stdin):::::::" >> $ROOTFS_DIR/etc/shadow ;;
esac
Log "Vagrant user created including home directory on rescue image"
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 010_merge_skeletons.sh | File | 1.8 KB | 0644 |
|
| 020_create_skeleton_dirs.sh | File | 1.91 KB | 0644 |
|
| 100_hostname.sh | File | 675 B | 0644 |
|
| 200_etc_issue.sh | File | 331 B | 0644 |
|
| 300_patch_root_home.sh | File | 535 B | 0644 |
|
| 430_prepare_timesync.sh | File | 2.33 KB | 0644 |
|
| 500_ssh.sh | File | 5.91 KB | 0644 |
|
| 550_vagrant.sh | File | 989 B | 0644 |
|
| 850_save_sysfs_uefi_vars.sh | File | 8.35 KB | 0644 |
|
| 860_set_uefi_vars.sh | File | 488 B | 0644 |
|
| 900_clone_users_and_groups.sh | File | 4.37 KB | 0644 |
|
| 910_copy_logfile.sh | File | 858 B | 0644 |
|