Searched refs:user (Results 1 - 15 of 15) sorted by relevance

/lxc/src/tests/
H A Dlxc-test-usernic.in8 # This is a test script for the lxc-user-nic program
28 LXC_USER_NIC="@LIBEXECDIR@/lxc/lxc-user-nic"
37 sed -i '/usernic-user/d' /run/lxc/nics /etc/lxc/lxc-usernet
44 pkill -u $(id -u usernic-user) -9
46 rm -rf /tmp/usernic-test /home/usernic-user /run/user/$(id -u usernic-user)
48 deluser usernic-user
61 sudo -i -u usernic-user \
63 XDG_RUNTIME_DIR=/run/user/
[all...]
H A Dlxc-test-apparmor-mount41 XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
56 rm -Rf $HDIR /run/user/$(id -u $TUSER)
83 # create a test user
110 mkdir -p /run/user/$(id -u $TUSER)
111 chown -R $TUSER: /run/user/$(id -u $TUSER)
H A Dlxc-test-unpriv79 rm -Rf $HDIR /run/user/$(id -u $TUSER)
93 XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
96 # create a test user
126 mkdir -p /run/user/$(id -u $TUSER)
127 chown -R $TUSER: /run/user/$(id -u $TUSER)
/lxc/templates/
H A Dlxc-gentoo.in367 elif [[ "${user}" != "root" ]]; then
368 sed "s/agetty -a root/agetty -a ${user}/" -i "${rootfs}/etc/inittab"
369 printf " => Autologin on main console for %s enabled\n" "${user}"
371 store_user_message "${user} has autologin on main console"
375 store_user_message "${user} has autologin on main console"
633 if [[ "${user}" != "root" ]]; then
634 printf " non root user requested, creating... \n"
635 chroot "${rootfs}" useradd --create-home -s /bin/bash "${user}" || die 1 "failed to create user ${user}"
[all...]
H A Dlxc-ubuntu.in91 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}
[all...]
H A Dlxc-archlinux.in104 ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
314 "${rootfs_path}/etc/systemd/system/multi-user.target.wants/"
H A Dlxc-plamo.in165 < # What to do when power fails (shutdown to single user).
258 # bind-mount the user's path into the container's /home
290 [-b|--bindhome=<user>]
293 bindhome: bind <user>'s home into the container
H A Dlxc-cirros.in89 -u | --userdata U user-data file
176 rm -f "$sdir/meta-data" "$sdir/user-data" ||
185 cat "$udfile" > "$sdir/user-data" ||
186 { error "failed to write user-data to $sdir"; return 1; }
188 rm -f "$sdir/user-data"
H A Dlxc-openmandriva.in179 chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
H A Dlxc-debian.in235 chroot "${rootfs}" ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
H A Dlxc-fedora.in46 # If root_prompt_password = yes, invoke "passwd" to force the user to change
307 # Also set this password as expired to force the user to change it!
373 chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1291 # expired, forcing the user to change it at first login.
H A Dlxc-oracle.in131 # setting /proc/$$/loginuid doesn't work under user namespace, which
171 chroot $container_rootfs systemctl -q enable multi-user.target
183 # on ol4 pam_limits prevents logins when using user namespaces
465 # add oracle user
467 printf "Added container user:\033[1moracle\033[0m\n"
468 printf "Added container user:\033[1mroot\033[0m\n"
/lxc/src/lxc/
H A Dcriu.c71 /* the user-provided migrate options relevant to this action */
72 struct migrate_opts *user; member in struct:criu_opts
166 if (opts->user->predump_dir)
170 if (opts->user->pageserver_address && opts->user->pageserver_port)
174 if (strcmp(opts->action, "dump") == 0 && !opts->user->stop)
182 if (!opts->user->preserves_inodes)
186 if (opts->user->ghost_limit)
196 if (load_tty_major_minor(opts->user->directory, tty_info, sizeof(tty_info)))
209 if (opts->user
[all...]
H A Dlxc_user_nic.c131 "Failed to get number of groups the user belongs to: %s.\n",
141 "the user belongs to: %s.\n",
262 * user type bridge count
266 * Return the count entry for the calling user if there is one. Else
309 /* Found the user or group with the appropriate settings,
330 /* Now return the total number of nics that this user can create. */
537 char user[100], type[100], br[100]; local
539 ret = sscanf(p, "%99[^ \t\n] %99[^ \t\n] %99[^ \t\n] %99[^ \t\n]", user, type, br, *nic);
643 * user type bridge nicname
779 "user ID
[all...]
/lxc/src/lxc/tools/
H A Dlxc-start-ephemeral.in103 parser.add_argument("--user", "-u", type=str,
104 help=_("the user to run the command as"))
364 if args.user:
365 username = args.user
384 print(_("Unable to switch to user: %s" % username))
397 if args.user:
398 cmd += ["-l", args.user]

Completed in 44 milliseconds