Is it possible to change Live CD user's password?

Asked by heethen

How can I change Live CD user's password? I need to restrict its access to sudo, ideally by making account password protected. Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Solved by:
heethen
Solved:
Last query:
Last reply:
Revision history for this message
heethen (heethen) said :
#1

Solved.

Had to manually unpack remaster-iso/initrd.lz (script uck-remaster-unpack-initrd apparently doesn't work with ubuntu 9.10):

As root:

# cd ~/tmp/remaster-iso/casper
# mkdir temp
# cd temp
# lzma -dc -S .lz ../initrd.lz | cpio -imvd --no-absolute-filenames

Then edit script 10adduser and change password there (hash ca be generated by mkpasswd tool which is in whois package):

# gedit scripts/casper-bottom/10adduser

And then pack initrd.lz again using this command:

# find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../initrd.lz

Then I continued building and it seems to be working.