Login password

Asked by albert quezada

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

Language:
English Edit question
Status:
Solved
For:
Ubuntu gdm Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Ramchandra Apte (ramchandra.apte) said :
#1

@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>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

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.

Revision history for this message
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.

Revision history for this message
albert quezada (albert-01234) said :
#4

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

Revision history for this message
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).

Revision history for this message
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?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

If you mean recursively, you can run:

sudo chmod -R 750 $HOME

Revision history for this message
Thomas Krüger (thkrueger) said :
#8

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

Revision history for this message
albert quezada (albert-01234) said :
#9

Thank you very much Thomas.