i have a CRITIC problem with user !

Asked by Duy Anh on 2011-04-10

when i tried to login automatic in ubuntu, i go to system - user and group, then i modifed my account to login with no need to enter pass. But when i restart, its a disaster. When i login, ubuntu show nothing but the nautilus doesnt have right to make some folder. Omg !

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gdm Edit question
Assignee:
No assignee Edit question
Solved by:
Duy Anh
Solved:
2011-04-11
Last query:
2011-04-11
Last reply:
2011-04-10

Can you give the exact error please

Duy Anh (myfanisuuuu) said : #2

its all above. System . User and group, then i chose login without password. Maybe i untick some rights of account :(

Duy Anh (myfanisuuuu) said : #3

its all above. System . User and group, then i chose login without password. Maybe i untick some rights of account :(

Sam_ (and-sam) said : #4

Please open a terminal: ctrl+alt+t
and post outputs.
Type:
stat ~/.ICEauthority

id

ls -l /home/<username>

## it shows permissions

Type:
groups <username>

## it shows if user is in admin group

In case give permissions of /home back to user.
Lets say user and group is Bob, example:
sudo chown Bob:Bob -R /home/Bob

To make sure user can access /home:
sudo chmod -R u+rwX /home

If access to root via 'sudo' isn't possible, boot into recovery mode ('Shift' key, right after boot in case you don't see a boot menu).
http://unixlab.blogspot.com/2009/08/exploring-ubuntu-recovery-mode.html

Choose option 'root shell'.
Type:
chown -R <username> /home/<username>
chmod -R 755 /home/<username>
chmod 644 /home/<username>/.dmrc
chmod 600 /home/<username>/.ICEauthority
exit
reboot

In addition if user isn't in admin group.
adduser <username> admin

Maybe consider not to autologin regarding security and in case having a hard time to repair a system, while playing with root.

Duy Anh (myfanisuuuu) said : #5

thanks for your help, although i cant do it because i cant go to home folder :(
I have re install Ubuntu and its great :)