LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to log in to user account (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-log-in-to-user-account-4175415589/)

Macburp 07-08-2012 05:44 PM

Unable to log in to user account
 
Hello. I'm using Linux Mint 9 on a Eepc 701. THe system has a single user account, and /home is moved to an SDHC card. Setup works well.

Occasionally I'll run out of battery and so system force shuts down. When this happened today I plugged in and restarted. When logging in to my user account the system returns me to the login screen - no indication that the account has failed authentication, but the login is refused.

I can log in as root no problem. Tried changing the password in a terminal, didn't work. Have rebooted and shut down - nothing.

Can anyone suggest any further steps to get this working please. I really don't want to reinstall if a I can help it.

Thanks

TobiSGD 07-08-2012 05:48 PM

Usually this is a sign that something is wrong with your home-directory. Log in as root and launch the commands
Code:

ls -l /home
mount


Macburp 07-08-2012 06:35 PM

ls -l /home returned this:

Code:

total 20
drwsr-sr-x 2 macburp root 16384 2012-01-12 19:04 lost+found
drwsr-sr-x 59 macburp macburp 4096 2012-07-09 19:04 macburp

Ummm. The SDHC card is 16GB, but I used to use a 4GB one. Could this be the issue?

fstab line for SDHC card is:

Code:

UUID=[number] /home ext2 defaults,user,exec,noatime, errors=continue 0 0
Perhaps there should be no space between noatime and errors=continue?

chrism01 07-08-2012 06:49 PM

Could be, give it a try .. :)

BTW, I've never seen lost+found dir owned by other than root:root.
Also, never seen suid+sgid perms set on either of those dirs either.

TobiSGD 07-08-2012 06:52 PM

Yes, there should be no space between the options. Just to make that clear:
You usually used a 4GB card and replaced it with a 16GB card. This shouldn't matter, the 701 can read 16GB cards, I used one myself with a 16GB card. Have you adapted the UUID in fstab after the change?
What is the output of
Code:

mount

Macburp 07-08-2012 06:52 PM

Well, I took out the space in fstab, but I still can't log in :(.

Any ideas?

guyonearth 07-08-2012 07:09 PM

Extra spaces in fstab don't mean anything, options can be separted by a space or comma. I suspect the UUID of the new SD card is different, so it's not recognized. Even two identical cards would have a different UUID. I'd suggest changing it to the device string, like /dev/sdb1 or whatever.

TobiSGD 07-08-2012 07:28 PM

Quote:

Originally Posted by guyonearth (Post 4722511)
Extra spaces in fstab don't mean anything, options can be separted by a space or comma.

Sorry, but no. If I do extra spaces in the options for the mountpoint /server on my machine I get this:
Code:

root@dragon ~ :) # mount /server
[mntent]: line 9 in /etc/fstab is bad
mount: can't find /server in /etc/fstab or /etc/mtab

(and vim marks this as error). It works fine without the spaces.

Macburp 07-08-2012 07:36 PM

Quote:

Originally Posted by guyonearth (Post 4722511)
I suspect the UUID of the new SD card is different, so it's not recognized. Even two identical cards would have a different UUID. I'd suggest changing it to the device string, like /dev/sdb1 or whatever.

When I changed SD Cards I updated the UUID, so the UUID is correct. When I log in as root, /home mounts. I just can't log in as me :(

guyonearth 07-08-2012 07:42 PM

Quote:

Originally Posted by TobiSGD (Post 4722525)
Sorry, but no. If I do extra spaces in the options for the mountpoint /server on my machine I get this:
Code:

root@dragon ~ :) # mount /server
[mntent]: line 9 in /etc/fstab is bad
mount: can't find /server in /etc/fstab or /etc/mtab

(and vim marks this as error). It works fine without the spaces.

It must be a quirk of the format you're using, because I've edited many fstabs, and have never had an issue like that. I don't use vim to do it.

TobiSGD 07-08-2012 07:46 PM

It would be hard to believe that the text editor causes this, especially when it is vim, which is one of the most used text editors.
Anyways, since this seemingly can cause issues on some OSes it is better to avoid such a format.

@Macburp: Still waiting for the output of the mount-command.
Also, try it with a newly created user. If that works it is likely that it is a misconfiguration in your users settings that is causing this.

guyonearth 07-08-2012 07:47 PM

Quote:

Originally Posted by Macburp (Post 4722528)
When I changed SD Cards I updated the UUID, so the UUID is correct. When I log in as root, /home mounts. I just can't log in as me :(

Then you've got some kind of weird permission issue going on. Try simplifying it. This is what the line in my fstab looks like (I also have home on a different drive):

UUID=3edb3098-3c74-441b-9102-fbb46e01b85f /home ext4 defaults 0 2

Macburp 07-08-2012 07:59 PM

@TobiSGD, here's the result of mount:

Code:

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sdb1 on /home type ext2 (rw,nosuid,nodev,noatime,errors=continue)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
//192.168.1.32/Xvids on /home/macburp/Highview type cifs (rw,mand)

@guyonearth, I'm slightly reluctant to change fstab settings for the SD ced as I had serious problems getting it to work initially. I'll keep it in mind.

Macburp 07-08-2012 08:17 PM

Quote:

Originally Posted by TobiSGD (Post 4722537)
Also, try it with a newly created user. If that works it is likely that it is a misconfiguration in your users settings that is causing this.

Well, I created a new account and was able to log in OK. Still can't log in to the original account. How do I do a disk check on the SD card to see if there are any errors?


All times are GMT -5. The time now is 12:40 PM.