"Authentication failure" at console

Asked by Hernan Foffani

When booting the Live CD, I get an "Authentication failure" in all the virtual consoles ALT-F1/F6.
I tried the text only booting menu option and as far as I can see the relinux boots fine and it shows that's able to launch all the entries in my rc.d (save one service that needs to be run under a specific user id).

I'm sort of a newbie regarding ubuntu boot disks and not getting any shell prompt lives me clueless.

Environment: VirtualBox 4.1.6, host OSX Lion, guest: relinux.iso with Ubuntu 11.10.

Regards,
Hernan.

Question information

Language:
English Edit question
Status:
Answered
For:
relinux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anonymous Meerkat (lkjoel) said :
#1

Could you try running Debug, Live, and Text-Only mode, and give me approximately what it says?

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#2

I'll try to figure out if I can capture the console output. There's a lot of messages and they seem like a working Ubuntu boot log.

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#3

I've recorded the screen in debug and text only modes. The resulting video format is QuickTime's default one; if you are not able to watch them, don't hesitate to ask me to convert them to the format that suits you best.

I were changing consoles to see different outputs (ALT-F1/F2/F3...F7) that's why it jumps screens in the middle of the videos.

Files are 8MB each.

http://dl.dropbox.com/u/4396164/relinux-boot-debug.mov
http://dl.dropbox.com/u/4396164/relinux-boot-textonly.mov

Hope it helps,
-Hernán.

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#4

The debug.mov is completely gibberish for me, but the text-only one shows this: "sudo: unknown user custom".
Could you give me the output of running relinux to create the ISO?

BTW, If you didn't see, it also showed: "Starting LightDM Display Manager ... [FAIL]". Did you install lightdm?

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#5

Sorry for the delay.

The output of "sudo relinux iso relinux.conf" is:
----

Checking for bash [ OK ]
Checking for sed [ OK ]
Checking for find [ OK ]
Checking for passwd [ OK ]
Checking for rsync [ OK ]
Checking for mount [ OK ]
Checking for eject [ OK ]
Checking for libdebian-installer4 [ OK ]
Checking for memtest86+ [ OK ]
Checking for casper [ OK ]
Checking for mksquashfs [ OK ]
Checking for unsquashfs [ OK ]
Checking for genisoimage [ OK ]
Checking for os-prober [ OK ]
Checking for ubiquity [ OK ]
Checking for user-setup [ OK ]
Checking for discover-config [ OK ]
Checking for laptop-detect [ OK ]
Checking for xterm [ OK ]
Checking for syslinux [ OK ]
Checking for util-linux [ OK ]
Checking for xresprobe [ OK ]
Checking for archdetect [ OK ]
Checking for tree [ OK ]
Checking for dialog [ OK ]
Checking for initramfs-tools [ OK ]
Checking for coreutils [ OK ]
########################
## STEP 1 of SquashFS ##
########################
Installing/Removing all packages needed to install/remove
########################
## STEP 2 of SquashFS ##
########################
Creating CD tree in /home/relinux
Done
/home/relinux
├── dummysys
│   ├── dev
│   ├── etc
│   ├── media
│   │   └── cdrom
│   ├── mnt
│   ├── proc
│   ├── sys
│   ├── tmp
│   └── var
└── ISOTMP
    ├── casper
    ├── isolinux
    └── preseed

14 directories, 0 files
########################
## STEP 3 of SquashFS ##
########################
Copying /etc and /var to a temporary directory, so that we can work on them
Done. Removing unneeded files, and changing others
find: `/home/relinux/dummysys/var/tmp': No such file or directory
Done
########################
## STEP 4 of SquashFS ##
########################
Setting up ISOLINUX
Creating filesystem.manifest and filesystem.manifest-desktop
Setting Casper, Ubiquity, and LSB_RELEASE options
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Copying your kernel and initrd to the livecd
########################
## STEP 5 of SquashFS ##
########################
Creating filesystem.squashfs
This will take a while so be patient
Adding stage 1 files/folders that the livecd requires.
Adding stage 2 files/folders that the livecd requires.
This will probably take longer than the first stage.
Calculating the installed filesystem size for the installer
Done
Creating MD5 sum
Done
Finished generating SquashFS file.
##############################
## STEP 1 of ISO Generation ##
##############################
Detecting your tools for ISO generation
Done
##############################
## STEP 2 of ISO Generation ##
##############################
Verifying your SquashFS file
Done. No errors.
##############################
## STEP 3 of ISO Generation ##
##############################
Making disk compatible with Ubuntu Startup Disk Creator.
##############################
## STEP 4 of ISO Generation ##
##############################
Making temporary MD5 Sums for generation of the ISO file
###########################################
## STEP 5 of ISO Generation (final step) ##
###########################################
Creating the ISO file and MD5 sum for it
Creating ubu-02.iso in /home/relinux
Creating ubu-02.iso.md5 in /home/relinux
Done

/home/relinux/ubu-02.iso is generated. It is recommended to run it inside a virtual machine before you release it.

The size of /home/relinux/ubu-02.iso is 852M
You will need to burn a DVD/USB/Blu-Ray disk instead of a CD.

It is recommended to run 'sudo relinux clean' (without quotes) once you have burned and tested ubu-02.iso
It will not delete ubu-02.iso or ubu-02.iso.md5

-----

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#6

Is it OK if we suspend this question until relinux 0.4? It might fix it, and if it doesn't, it will give a log file, so that I can further examine your problem.
Just make sure that lightdm is installed first.

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#7

Regarding LightDM, I did uninstall it. My Ubuntu is text only, I hope it doesn't interfere with Relinux. (It's an Ubuntu 11.10 desktop, not server).
BTW, I'm using Relinux 0.3.0a2. I've modified the relinux shell script in the exclude section and commented the "userdel" invocation because it deletes a legit user name (the Roundup bug tracker install the "roundup" user with 999 as its userid).

When you mentioned the "custom" user, I went through the conf file and looked at "/home/dummysys/etc/passwd" file. There is no "custom" there, nor a couple of entries that I'd rather keep so some init.d processes don't fail at startup. These couple of users have userid 1000 and 1001.

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#8

I can wait, sure.
My only objection about installing LightDM is that I'd rather have it disabled on init. Is that configuration compatible with Relinux?

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#9

Did I read this correctly: "the Roundup bug tracker install the "roundup" user with 999 as its userid"?
That's your problem! You need to change the userid to something else, less than 999. 999 is reserved for Casper, and if it exists on the CD, it will crash, just like yours did. Also, if you want to remove lightdm, you should remove GDM also, as I think it is installed for some reason on your system.

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#10

Yup. That's right. The roundup user was created by, as far as I can remember, its installer with the userid 999.

I'm sorry I wasn't aware of that conflict. I'll change its userid (reverting the changes in the relinux script).

BTW, this is the output of "dpkg -l gdm lightdm". Both are reported as removed, but there are config files around there as it seems.

hernan@ubu-02:~$ dpkg -l gdm lightdm
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===================-===================-======================================================
rc gdm 3.0.4-0ubuntu11 GNOME Display Manager
rc lightdm 1.0.1-0ubuntu6 Display Manager

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#11

Try this:

sudo apt-get install lightdm gdm; sudo apt-get purge lightdm gdm

That should fix the lightdm/gdm problem. It will simply install them, then it will purge them (with the configuration files).

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#12

Thanks for the suggestion about purge, that removed them as you told me.

Regarding the "Authentication failure" error I'm afraid things haven't worked out.
I've changed the roundup's uid to avoid conflicts and chowned everything accordingly.

When booting the live cd it still shows that the "custom" user is not defined.
It still shows the "sudo: unknown user custom" message.
That's a bit weird because I changed the LIVEUSER config to point to "hernan", and later confirmed that the "hernan" entry
appears in /home/relinux/dummysys/etc/passwd and in /home/relinux/dummysys/etc/casper.conf

I'll try again by leaving LIVEUSER="custom" and adding the "custom" user to the Ubuntu.

Anyway, I think there's a bug in the relinux script, that might be related or not to this problem.
Two lines above ". $WORKDIR/cleantmpusers" there's a grep that look for users ids from 599 to 999 to remove them later. I think it's a bit too much. Let me know if you want me to file a bug report.

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#13

Well, make sure that your user's ID is 598 or less.

Revision history for this message
Hernan Foffani (hfoffani-u) said :
#14

> Well, make sure that your user's ID is 598 or less.

Heh... Ok, I can live with that.

Regrettably my last intent didn't succeed either. While it doesn't show "sudo: unknown user custom" error message, it keeps reporting the "Authentication failure" in ALT/F1-F6.

I leave it now as is and I'll wait for the 0.4 release. Unless, of course, you come out with some other suggestion.

Regards,
Hernán.

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#15

Yeah, 0.4 should fix it

Revision history for this message
ABIX - Adam Jurkiewicz (a-jurkiewicz) said :
#16

I want to add, that I'm using relinux for making Ubuntu for schools, and I found that when I'm making relinux with Ubuntu, everything is ok, but when I do relinux with KDE, in ISO there is a problem with creating LiveCD user. I found that I must not copy $HOME to skel in KDE, then everything is ok.
Maybe this will help you.

Adam

Revision history for this message
Anonymous Meerkat (lkjoel) said :
#17

So copying $HOME to skel in Ubuntu works fine, but not in Kubuntu?

Revision history for this message
ABIX - Adam Jurkiewicz (a-jurkiewicz) said :
#18

Dnia 2012-01-24, wto o godzinie 04:35 +0000, Joel Leclerc pisze:
> Question #181666 on relinux changed:
> https://answers.launchpad.net/relinux/+question/181666
>
> Joel Leclerc requested more information:
> So copying $HOME to skel in Ubuntu works fine, but not in Kubuntu?
>

Yes,
I found that directory $HOME/.kde is the problem, when I copy it to
skel, then in starting Live CD there is an error somewere in the
scripts:
groupadd: error creating `groupdel user`
or something similar; I dont' remember exactly, because when I realize
that .kde is the problem, I just not copy it.

But if you want, I will try today and post exactly error and place in
the sripts.

Adam
--
Bo życie jest weselsze, milej płynie czas, gdy świeży podmuch wiatru w
żaglach masz....
....
ABIX - Linuksowe Systemy Wspomagania Biznesu www.abix.info.pl
ABIX - Hosting WWW/E-mail/Domeny http://vps.abix.info.pl
ABIX - FanPage http://www.facebook.com/Abix.Linux.Warszawa

Can you help with this problem?

Provide an answer of your own, or ask Hernan Foffani for more information if necessary.

To post a message you must log in.