Login password

Asked by albert quezada on 2012-07-25

Hello everyone,
  Well my issue is that whenever i start up my computer, i am able to click on "login" and it will still start up into my account, which is the root account. I have a password set but it does not ask before going into my account, i have a lot of family and i dont want anyone seeing my personal documents. What can i do to set a login password? i have already went to User Accounts and set a password for Login Options and also automatic login is off. I dont know what else to try now?
I have Ubuntu 12.04. Thank you for reading.

Question information

English Edit question
Ubuntu gdm Edit question
No assignee Edit question
Solved by:
Thomas Krüger
Last query:
Last reply:

@albert even without login, anybody else can see your files if they are logged in your computer.
All they have to do is to login and open /home/<your username>

Logging on to X is not advised or supported.

Just make your family members their own accounts and your docs will be safe as they will only see their own. You can have multiple billion accounts on your system.

Thomas Krüger (thkrueger) said : #3

Are you in the nopasswdlogin group?
To check that, enter "getent group" at the terminal and look for the line with the group's name, the last section should not contain your username.

albert quezada (albert-01234) said : #4

@Thomas i did check that and the last section does contain my username. What do i do now?

Best Thomas Krüger (thkrueger) said : #5

go to the terminal and run
sudo gpasswd -d your_username nopasswdlogin
And next time you start the machine you will have to enter your password at login again.
Now create user accounts with no special rights for the other persons using the computer.
For more security you should make sure your homefolder's rights are set to 750 (no access for users not in your personal group).

albert quezada (albert-01234) said : #6

Yes this worked thank you Thomas. Now i would like to know how can i set my homefolder's rights to 750?

If you mean recursively, you can run:

sudo chmod -R 750 $HOME

Thomas Krüger (thkrueger) said : #8

No! Don't use this command it will set all file to executable!
chmod 750 $HOME

albert quezada (albert-01234) said : #9

Thank you very much Thomas.