Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have created a persistent live usb of Lubuntu 12.10 on a 16 GB flash pendrive with a 4GB space for persistency.

It basically works like an installation, as new programs can be installed and new settings and customizations added and remembered. Except that the username in terminal is lubuntu and at boot/startup am not asked for a password and the system starts without passing through the logging stage.

But there is a problem if one (e.g. in order to initiate certains settings) is logging out instead of restarting/rebooting: the logging screen appears and contains initially no name and no space for password, and there's no login button: but if i click or press enter the name of user is "Other" and space for pass and login button appear. The name of the user cannot be changed (i guess there's no real user registered) and login doesn't work without password entered. Also, the passwords "ubuntu" or "lubuntu" are reported as incorrect.

Is there a way of using logout-and-in or should this be avoided?

share|improve this question
add comment

4 Answers 4

up vote 2 down vote accepted

Yeah there is a way to have a consistent user:

  1. Boot up the live USB again and create a new user account. You want it to be an administrator. Set the password, name, etcetera.
  2. Log out
  3. Log in to the account you just created

To create new user you need gnome-system-tools (more detail on that here).

But this is not a complete solution: indeed it is possible to log back in after logout, but only with the new/different user. This is useful in persistent USB in order to avoid restarting the computer after having logged out for some reason. Without a new user it was not possible to log in back at all without restart. After creating a new user, one can log in with that new user, but not with the initial "live" one.

So, the problem is not completely solved, the initial user (here called "lubuntu") cannot log back in without reboot.

share|improve this answer
    
@vasa1: I don't know how to add new user from CLI. (the answer does not tell how to add the new user so i edited to add an info on that, according to what i was able to find out. I do not remember if in Lubuntu "Users and Groups" from gnome-system-tools is included by default or not.) –  cipricus Jan 11 '13 at 13:12
    
@vasa1: indeed it does: that is, it creates a new user. this is useful in persistent USB in order to avoid having to restart the computer after having logged out for some reason. without a new user i was not able to log back in without restart. after creating a new user, one can log in with that new user, but not with the initial "live" one, so, the problem is not solved, the initial user (here called "lubuntu") cannot log back in without reboot. maybe i should re-edit the answer to add this info –  cipricus Jan 11 '13 at 13:21
add comment

go to console ctrl+alt+f1 if you're on a netbook or another funky keyboard you might have to press 'Fn' to activate the F buttons

it is already logged in and as far as i can tell you can't log out

run passwd when it asks for CURRENT password press enter, that is, give it a blank password.

then enter a new password

finally use this new password to log in in x windows

share|improve this answer
add comment

I've got it under lubuntu 14:04 beta2:

  • Go to TTY1: Ctrl+Alt+F1
  • Type sudo passwd lubuntu (just passwd will not work because lubuntu ask you for the old password)
  • Choose a new password
  • Go back to the X session with Alt+F7
  • choose lubuntu as a user and type in your new password

Welcome back!

share|improve this answer
add comment
Go to TTY1: Ctrl+Alt+F1
Type sudo passwd lubuntu (just passwd will not work because lubuntu ask you for the old password)
Choose a new password
Go back to the X session with Alt+F7
choose lubuntu as a user and type in your new password

Worked for me as well—on a lubuntu 14.04 live usb stick.

I'd added 'nm-applet' to the default applications in order to get the panel applet icon to appear in order to configure wi-fi and then needed to restart the session to activate it.

tnx

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.