passwords

Asked by Jan Vermeer on 2018-08-09

when ubuntu starts, anybody can get in without a password.
i want to install a password to get in.
How do i manage that?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2018-08-14
Last query:
2018-08-14
Last reply:
2018-08-10

As your user, run:

passwd

Set your password, or did you set your system to automatically log in without a username?

Best Manfred Hampl (m-hampl) said : #2

You have to be aware that here are two different login modes possible in a Ubuntu system:

1. Named users
2. Guest session

If the guest session is enabled, everybody can log on as "guest" without the need for entering a password. This is some kind of "kiosk" mode where you can surf the internet etc., but whatever you do as "guest" is forgotten when logging off. You cannot save files to keep for the next logon, because everything is deleted at logoff time.

To be able to answer your question the first item to check is: Are you logging in as "named user" or as "guest session"?

If it is "guest session", then there is no need for a password, and it is working as designed. The only choice that can be made is completely disabling guest sessions.

If you are logging in as "named user", then you simply have to set a password for your user (e.g. with the passwd command).

And finally there is a third possibility which could lead to the effect that you do not need a password for logging in:
You can configure a Ubuntu system, that at startup there is an automatic login for a certain user; in that case the password is not asked for. Solution for this case: disable auto-logon.

Jan Vermeer (vermeertje) said : #3

Thanks Manfred Hampl, that solved my question.