mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-08 16:41:35 +00:00
* live-build/ubuntu-core/hooks/01-setup_user.chroot:
- run with -e
This commit is contained in:
parent
6d34c7a9e9
commit
e226eb6331
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
livecd-rootfs (2.275+ppa3) vivid; urgency=low
|
||||||
|
|
||||||
|
* live-build/ubuntu-core/hooks/01-setup_user.chroot:
|
||||||
|
- run with -e
|
||||||
|
|
||||||
|
-- Michael Vogt <michael.vogt@ubuntu.com> Fri, 16 Jan 2015 18:28:10 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.275+ppa2) vivid; urgency=medium
|
livecd-rootfs (2.275+ppa2) vivid; urgency=medium
|
||||||
|
|
||||||
* live-build/ubuntu-core/hooks/04-configure_network.chroot: use
|
* live-build/ubuntu-core/hooks/04-configure_network.chroot: use
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
#!/bin/sh -x
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
USER=ubuntu
|
USER=ubuntu
|
||||||
UGID=1000
|
UGID=1000
|
||||||
|
|
||||||
echo "I: creating default user $USER"
|
echo "I: creating default user $USER"
|
||||||
adduser --gecos $USER --disabled-login $USER --uid $UGID
|
adduser --gecos $USER --disabled-password $USER --uid $UGID
|
||||||
|
|
||||||
echo "I: set user $USER password to $USER"
|
|
||||||
echo "$USER:$USER" | chpasswd
|
|
||||||
|
|
||||||
chown -R $UGID:$UGID /home/$USER
|
chown -R $UGID:$UGID /home/$USER
|
||||||
|
|
||||||
|
passwd -d $USER
|
||||||
|
echo "I: set user $USER password to $USER"
|
||||||
|
echo "$USER:$USER" | chpasswd
|
||||||
|
|
||||||
# Enable libnss-extrusers
|
# Enable libnss-extrusers
|
||||||
sed -i 's/^group:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
sed -i 's/^group:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
||||||
sed -i 's/^passwd:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
sed -i 's/^passwd:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user