Lines Matching refs:user

91     user=$4
134 chroot $rootfs useradd --create-home -s /bin/bash $user
135 echo "$user:$password" | chroot $rootfs chpasswd
168 # finish setting up the user in the container by injecting ssh key and
170 # passed-in user is either 'ubuntu' or the user to bind in from host.
173 user=$1
185 chroot $rootfs adduser ${user} $group >/dev/null 2>&1 || true
189 u_path="/home/${user}/.ssh"
193 chroot $rootfs chown -R ${user}: "$u_path"
195 echo "Inserted SSH public key from $auth_key into /home/${user}/.ssh/authorized_keys"
635 user=$2
638 pwd=`getent passwd $user` || { echo "Failed to copy password entry for $user"; false; }
641 # make sure user's shell exists in the container
644 echo "shell $shell for user $user was not found in the container."
650 shad=`getent shadow $user`
653 # bind-mount the user's path into the container's /home
654 h=`getent passwd $user | cut -d: -f 6`
665 grp=`echo $pwd | cut -d: -f 4` # group number for $user
673 $1 -h|--help [-a|--arch] [-b|--bindhome <user>] [-d|--debug]
675 [--rootfs <rootfs>] [--packages <packages>] [-u|--user <user>] [--password <password>]
679 bindhome: bind <user>'s home into the container
680 The ubuntu user will not be created, and <user> will have
690 options=$(getopt -o a:b:hp:r:v:n:FS:du: -l arch:,bindhome:,help,path:,release:,variant:,name:,flush-cache,auth-key:,debug,rootfs:,packages:,user:,password:,mirror:,security-mirror: -- "$@")
731 user="ubuntu"
741 -u|--user) user=$2; shift 2;;
825 configure_ubuntu $rootfs $name $release $user $password
843 finalize_user $user
849 echo "# Log in as user $bindhome"
851 echo "# The default user is '$user' with password '$password'!"