Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No users when i run the script on Ubuntu 14.04.3 32-bit #10

Open
Mithul opened this issue Oct 9, 2015 · 2 comments
Open

No users when i run the script on Ubuntu 14.04.3 32-bit #10

Mithul opened this issue Oct 9, 2015 · 2 comments

Comments

@Mithul
Copy link

Mithul commented Oct 9, 2015

No users when i run the script on Ubuntu 14.04.3 32-bit. I cant login using root or ubuntu or the user that existed in the source ubuntu. Also how do I retain the source user and the home directory in the live-cd ?

@zakariaGatter
Copy link

i have the same problem with no one care here

@zzpu
Copy link

zzpu commented Jan 9, 2017

modify distroshare-ubuntu-imager.sh like this may help
#Remove non-system users
#echo "Removing non-system users"
#for i in cat "${WORK}"/rootfs/etc/passwd | awk -F":" '{print $1}'
#do

uid=cat "${WORK}"/rootfs/etc/passwd | grep "^${i}:" | awk -F":" '{print $3}'

[ "$uid" -gt "998" -a "$uid" -ne "65534" ] && \

chroot "${WORK}"/rootfs /bin/bash -c "userdel --force ${i} 2> /dev/null"

#done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants