I need to login as a guest user via a terminal for experimental purposes for checking the working of one of scripts.

I know I can log in as a different user using su username or su - username. However, I can't log in using this command as su guest. I can auto-complete this as su guest-<some_id>, but this asks for a password I am unaware of.

How do I login, then, as the guest user?


Ubuntu "guest users" are added and deleted on the fly. They are account without passwords (and locked so). You can find details on guest user also on Ubuntu Wiki.

If you want a fixed guest user, you should create one (you can do this via the control settings graphic interface of via commandline with adduser)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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