LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 10-11-2011, 06:57 AM   #1
Cushie
LQ Newbie
 
Registered: Dec 2006
Location: uk
Distribution: Ubuntu 13.04 +Unity
Posts: 25
Blog Entries: 1

Rep: Reputation: 15
Ubuntu 11.10 cannot login and cannot shut down


I have just upgraded 11.04 to the latest daily version of 11.10 (Beta2+)using Update manager on my Acer Aspire One netbook. I got many hangups and errors so I reinstalled the upgrade option again from live usb. I have keept my original separate 'home' directory and username. I chose auto login during the install which did not succeed but get to a login screen yet I cannot login to my usename or shut down but I can login a guest.

I reset the 'passwd' just in case, then did another reinstall to make sure I was using the correct password (same one I have always used) but still cannot login or shut down.
Is there a simple fix to reconfigure or reinstall something to get over this problem. Suggestions would be appreciated (I have tried Ubuntuforums but got no reply).

BTW I can get to # prompt terminal via recovery option and I can login to a terminal with 'username' and password, so I know they are correct, this allows me to list the home directory and all the files are intact. As a point of interest what command would run the desktop manager gdm (not installed)? startx (another hangup)? or something new to 11.10?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-12-2011, 12:33 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Have you checked who owns the files in your home directory? It might just be an ownership issue. You could try running
Code:
sudo chown -R <username here:username here>

Make sure you are in your home/username directory before running the above command
.
 
Old 10-12-2011, 02:07 PM   #3
Cushie
LQ Newbie
 
Registered: Dec 2006
Location: uk
Distribution: Ubuntu 13.04 +Unity
Posts: 25
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks Nexus I can get to # root prompt (from recovery mode).
I can log in as username/passwd.
My home directory is /dev/sda6/home/username. I have tried some commands and get an error read only file system, so the problem is here somewhere.

I can get the $ prompt after login 'username' and then password. If I do ls -l I get a list of / directory and if I cd /home and ls -l I get 0 ie empty. So that home is not my original home.

I am a little stuck here. How do I change directory into /dev/sda6/home? or /dev/sda6/home/username (I get not a directory) before I try 'chown'?

Could you please point me in the right direction? Thanks
 
Old 10-12-2011, 04:01 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
This might be a difficult for you to do, but can you do:
Code:
sudo fdisk -l
then post the result here.

The way to log out via commandline is:
Code:
sudo shutdown -h now or poweroff

Last edited by {BBI}Nexus{BBI}; 10-29-2011 at 06:54 PM. Reason: Additional info added
 
Old 10-13-2011, 12:45 PM   #5
Cushie
LQ Newbie
 
Registered: Dec 2006
Location: uk
Distribution: Ubuntu 13.04 +Unity
Posts: 25
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Using Oneiric usb live disk:
cd /media/Home then ls -ld gives drwxr-xr -x root root 4096 2011-08-03 15:46
ls -l gives drwx------ 3 root root etc.... lost+found
drwxr -xr -x 90 1000 1000 etc....myname
cd myname
ubuntu@ubuntu:/media/Home/myname$ sudo chown -R myname:myname
chown: missing operand after `myname:myname'


ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000600c2

Device Boot Start End Blocks Id System
/dev/sda1 * 63 9218047 4608992+ 83 Linux
/dev/sda2 100358055 102462569 1052257+ 82 Linux swap / Solaris
/dev/sda3 9221371 100358054 45568342 5 Extended
/dev/sda4 102462570 234436544 65986987+ 83 Linux
/dev/sda5 9221373 29704184 10241406 83 Linux
/dev/sda6 29704248 100358054 35326903+ 83 Linux


sda5 is / and sda6 is Home for Ubuntu
Hope this helps, nearly there, many thanks
 
Old 10-14-2011, 10:15 AM   #6
knulp79
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
I had the same issue.
There was a .Xauthority file in my home folder owned by root and that prevented me from logging in.
Logging in a text console (Alt+Ctrl+F1 at the login screen) and issuing:
sudo rm ~/.Xauthority
solved the issue.
I hope it helps.
 
4 members found this post helpful.
Old 10-15-2011, 02:55 AM   #7
pankajso
LQ Newbie
 
Registered: Oct 2011
Location: Pune, India
Distribution: ubuntu
Posts: 1

Rep: Reputation: Disabled
@knulp79, Thanks .. It solved my problem
 
Old 10-15-2011, 04:17 PM   #8
kkorbz
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Thanks knulp! This was my issue as well. Once I rm'd it I was in and everything works like a charm. Darn Xauthority file. Who's the SU on this box...oh me!

Quote:
Originally Posted by knulp79 View Post
I had the same issue.
There was a .Xauthority file in my home folder owned by root and that prevented me from logging in.
Logging in a text console (Alt+Ctrl+F1 at the login screen) and issuing:
sudo rm ~/.Xauthority
solved the issue.
I hope it helps.
 
Old 10-17-2011, 05:20 AM   #9
karatedog
LQ Newbie
 
Registered: May 2004
Location: Hungary
Distribution: Ubuntu 9.10
Posts: 13

Rep: Reputation: 0
Thanks knulp79!
 
Old 10-17-2011, 07:12 PM   #10
lvcosme
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
I left my computer and 20 min later when I came back, my password did not work anymore. I tried everything you guy mentioned and did not solved. Gonna format it againnnnnnnnnnnnn. why did I upgrade.... The problem is not formatting, the problem is losing everything.
 
Old 10-18-2011, 02:12 AM   #11
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
Don't jump the gun on reformatting. It's likely a simple permissions issue. It's easy to overlook things; if you are worried about losing everything, by all means, wait for more help.

Could you run the following groups of commands, posting the output of each?

Code:
cd /home
ls -la
Code:
cd /home/{your user id}
ls -la
Code:
grep {your user id} /etc/passwd
 
1 members found this post helpful.
Old 10-18-2011, 11:08 AM   #12
lvcosme
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Code:
cd /home
ls -la
drwxr-xr-x 5 root root 4096 2011-10-17 15:40 .
drwxr-xr-x 25 root root 4096 2011-10-14 11:33 ..
drwxr-xr-x 54 koala2 koala2 4096 2011-10-17 14:29 koala2
drwxr-xr-x 2 root root 4096 2011-10-17 15:40 netlogon
drwxrwxrwx 2 root nobody 4096 2011-10-17 15:40 pdf-documents


Code:
cd /home/{your user id}
ls -la
there are lots of files, but
-rw------- 1 koala2 koala2 50 2011-10-17 14:29 .Xauthority

Can't delete it tho, it says ready-only file system


Code:
grep {your user id} /etc/passwd
koala2:x:1000:1000:Slotmanlab,,,:/home/koala2:/bin/bash

I had to use to recovery mode to get it. The alt ctrl F1 works but then the passwd that I enter cannot be authenticated. Well I have a backup from yesterday. What takes time is to install/configure all software that I use for some analysis. I can create a new user too. I think I got this problems while setting up a ftp server.
Thank you
 
Old 10-20-2011, 02:06 AM   #13
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
Why is your filesystem read only? Dirty shut down? I would recommend booting to a live CD/USB such as Knoppix and running:

e2fsck -f /dev/[your boot drive (or home drive, if it's on a separate partition)]

CAUTION: make sure the boot drive is NOT mounted or the command WILL break your system.

Once the check is done, mount the filesystem and remove the .Xauthority file:

mount /dev/[your boot drive (or home drive, if it's on a separate partition)] /mnt
cd to your home directory and rm .Xauthority

You can skip the e2fsck command if you want, most likely.. it's just a safety to make sure that your partition doesn't have any errors before you go make changes. You should now be able to reboot and login again.
 
1 members found this post helpful.
Old 10-20-2011, 11:23 PM   #14
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by lvcosme View Post
The problem is not formatting, the problem is losing everything.
The 3 B's. BackUp, BackUp, BackUp.
 
Old 10-22-2011, 01:52 PM   #15
nh_linux
LQ Newbie
 
Registered: Jul 2006
Location: In the world! :-)
Distribution: Ubuntu11.10
Posts: 16

Rep: Reputation: 0
Hello all.

I just upgraded from Ubuntu 11.04 to 11.10 today and I'm having issues.

1) Ubuntu won't shut down even with the shutdown and poweroff commands.This is the only problem I have so far. I can login to my account with no problem.I attempted to change the session so I can boot into an older version of Ubuntu but it doesn't happen.From the commandline here's the input/output from my attempt to shut down :

elothas@Inspiron-530s:~$ poweroff
poweroff: Need to be root
elothas@Inspiron-530s:~$ shutdown
shutdown: time expected
Try `shutdown --help' for more information.
elothas@Inspiron-530s:~$ shutdown -h
shutdown: time expected
Try `shutdown --help' for more information.
elothas@Inspiron-530s:~$

I don't know what "time expected" means.

2) I found another glitch. Parcellite doesn't load.

So far I see that "freedom is restricted" in this version of Ubuntu. Linux is supposed to be about freedom.

Suggestions will be appreciated.Thanks.

Last edited by nh_linux; 10-22-2011 at 02:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu 8.04 restarting itself when shut down is selected techemically Linux - Software 3 11-21-2008 12:32 PM
laptop will not shut down completely under Ubuntu 7.04 vansch76 Linux - Laptop and Netbook 8 12-16-2007 04:17 AM
Ubuntu will not shut down fully preeth26 Linux - Newbie 5 07-15-2006 09:15 AM
Ubuntu shut down X Slyth99 Linux - Newbie 5 10-07-2005 08:10 PM
Ubuntu how do i shut down X Slyth99 Ubuntu 3 10-07-2005 02:24 PM


All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration