mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-11-04 10:54:07 +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
 | 
			
		||||
 | 
			
		||||
  * live-build/ubuntu-core/hooks/04-configure_network.chroot: use
 | 
			
		||||
 | 
			
		||||
@ -1,16 +1,19 @@
 | 
			
		||||
#!/bin/sh -x
 | 
			
		||||
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
USER=ubuntu
 | 
			
		||||
UGID=1000
 | 
			
		||||
 | 
			
		||||
echo "I: creating default user $USER"
 | 
			
		||||
adduser --gecos $USER --disabled-login $USER --uid $UGID
 | 
			
		||||
 | 
			
		||||
echo "I: set user $USER password to $USER"
 | 
			
		||||
echo "$USER:$USER" | chpasswd
 | 
			
		||||
adduser --gecos $USER --disabled-password $USER --uid $UGID
 | 
			
		||||
 | 
			
		||||
chown -R $UGID:$UGID /home/$USER
 | 
			
		||||
 | 
			
		||||
passwd -d $USER
 | 
			
		||||
echo "I: set user $USER password to $USER"
 | 
			
		||||
echo "$USER:$USER" | chpasswd
 | 
			
		||||
 | 
			
		||||
# Enable libnss-extrusers
 | 
			
		||||
sed -i 's/^group:.*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