Customizing the live user skel

Bug #1179367 reported by Hulu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I customize 13.04, but in the /usr/share/initramfs-tools/scripts/casper-bottom/25adduser the chroot /root /usr/lib/user-setup/user-setup-apply > /dev/null don't copy file from /etc/skel.

Tags: bot-comment
Hulu (hulu)
description: updated
Hulu (hulu)
summary: - Custom live user's skel
+ Customizing the live user skel
description: updated
Hulu (hulu)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1179367/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Hulu (hulu)
affects: ubuntu → casper (Ubuntu)
Hulu (hulu)
description: updated
description: updated
Hulu (hulu)
description: updated
Hulu (hulu)
description: updated
Hulu (hulu)
affects: casper (Ubuntu) → user-setup (Ubuntu)
Hulu (hulu)
description: updated
Hulu (hulu)
description: updated
Hulu (hulu)
affects: user-setup (Ubuntu) → casper
Colin Watson (cjwatson)
affects: casper → casper (Ubuntu)
Hulu (hulu)
description: updated
Revision history for this message
Joseph Matheney (pfifo-fast) wrote :

I dont think this is a bug, if you look at the user-setup-apply script from raring;

Line 213:
if [ -x $ROOT/usr/sbin/adduser ]; then
 $log $chroot $ROOT adduser --disabled-password --gecos "$RET" $UIDOPT $ENCRYPT_HOME_OPT "$USER" >/dev/null || true
else
 $log $chroot $ROOT useradd -c "$RET" -m "$USER" $UIDOPT >/dev/null || true
fi

both methods will copy skel, and if the directory already exists;

Line 231:
if [ "$HOME_EXISTED" ]; then
 # The user's home directory already existed before we called
 # adduser. This often means that a mount point under
 # /home/$USER was selected in (and thus created by) partman,
 # and the home directory may have ended up owned by root.
 $log $chroot $ROOT chown "$USER:$USER" "/home/$USER" >/dev/null || true
fi

It will simply chown it to the user. So it looks like 1 of 2 things is happening here;

#1 The directory already exists and your changes to skel aren't getting copied because neither of the adduser programs will overwrite. In which case, you just need to delete the home directory from the live system.

#2 The package user-setup is not installed on the live system.

Test out these theories and let me know if this fixes the issue.

Changed in casper (Ubuntu):
status: New → Invalid
Revision history for this message
Hulu (hulu) wrote :

I have tested the above two cases, the user's home directory already existed before we called adduser, but where the user directory is created.

Revision history for this message
Joseph Matheney (pfifo-fast) wrote :

my guess is that the directory exists in your squashed filesystem by mistake.

Revision history for this message
Hulu (hulu) wrote :

I have found / home / user, but the system is where to delete or rename the / home / user, and where the system is to create / home / user's?

Revision history for this message
Hulu (hulu) wrote :

I have found the problem, it's generated when using uck.
Thank you for advice.

Revision history for this message
Hulu (hulu) wrote :

Beginning to discover this is a bug, but after discussion found not a bug, so instead the problem.

Changed in casper (Ubuntu):
status: Invalid → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.