Author Topic: [SOLVED] Why is root the only login that works?  (Read 731 times)

Offline joseppi

  • Sr. Member
  • ****
  • Posts: 309
    • The Invitation Bible
[SOLVED] Why is root the only login that works?
« on: July 27, 2010, 01:16:09 AM »
Something has just gone haywire with one of my systems. While I have 3 added three users, the only way I can login is as root.  The other three users are correctly added and appear in the "Manage users on the system" section of the control center system administration area.  However, when I try to login, the system goes through all the usual motions of loggin in andthen returns to the login page.

I can login as root and then 'su' and enter the password for any of the established user names and all the files show the correct user name as the owner of the files that are there, but I cannot login to any of them.

How can I fix this?

== Changing the permissions on /tmp to 777 fixed the problem.
Thanks again to all who provided answers.
« Last Edit: July 30, 2010, 04:26:00 AM by Texstar »

Offline hounddog

  • Hero Member
  • *****
  • Posts: 1414
  • Go ... and catch a falling star ...
Re: Why is root the only login that works?
« Reply #1 on: July 27, 2010, 02:45:48 AM »
It could be that the /tmp folder is full.

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12495
Re: Why is root the only login that works?
« Reply #2 on: July 27, 2010, 02:47:44 AM »
Or the /tmp folder in the users home folder has the wrong permissions.


Thanks to everyone who donates. You keep the servers running.

uncleV

  • Guest
Re: Why is root the only login that works?
« Reply #3 on: July 27, 2010, 03:15:37 AM »
It could be that the /tmp folder is full.
Are there size restrictions for /tmp? Doesn't that mean the whole "/" is full?

@joseppi
Are you sure you fill correctly both the name and password of an user?
What if you try creating one more user just for checking things?

Quote
I can login as root and then 'su' and enter the password for any of the established user names
I can't understand exactly what you are doing with su in root account?

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Why is root the only login that works?
« Reply #4 on: July 27, 2010, 03:42:54 AM »
Is /home on a separate partition? If so, it could be corrupted. While logged in as root, open a terminal and type:

Code: [Select]

umount /home
fsck -f /dev/[color=blue]<sdax>[/color]
where sdax is the location of your /home partition. You can find that out by looking in /etc/fstab

If it finds errors, always accept the default. When it finishes, remount/home by typing:
Code: [Select]

mount /home

Then log out and try logging in as a normal user.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline hounddog

  • Hero Member
  • *****
  • Posts: 1414
  • Go ... and catch a falling star ...
Re: Why is root the only login that works?
« Reply #5 on: July 27, 2010, 07:34:59 AM »
It could be that the /tmp folder is full.
Are there size restrictions for /tmp? Doesn't that mean the whole "/" is full?

Yes, it means that "/" has been used up and could stop users from logging in.  Clearing /tmp can sometimes do the trick.

Offline joseppi

  • Sr. Member
  • ****
  • Posts: 309
    • The Invitation Bible
Re: Why is root the only login that works? (Solved)
« Reply #6 on: July 27, 2010, 08:51:46 AM »
Changing the permissions on /tmp to 777 fixed the problem.
Thanks again to all who provided answers.

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Why is root the only login that works? (Solved)
« Reply #7 on: July 27, 2010, 09:14:23 AM »
The correct permission is 1777. This prevents users deleting each other's files.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline joseppi

  • Sr. Member
  • ****
  • Posts: 309
    • The Invitation Bible
Re: Why is root the only login that works? (Solved)
« Reply #8 on: July 27, 2010, 09:34:40 AM »
Thanks again for that correction.
Very helpful.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: Why is root the only login that works?
« Reply #9 on: July 27, 2010, 01:23:19 PM »
I can't understand exactly what you are doing with su in root account?

I suppose this is off topic, but the question has to be answered -- simply because it still pops up.

Using the su command is not just a way of becoming root. It does not stand for "super user". It stands for "substitute user" and lets you become any user on your system, if you just know that user's password.

This can be useful even if you are logged in as root. The syntax of the command in its simplest form is
Code: [Select]
su <username>after which you will be asked for username's password. If you don't specify the name of the user you wish to become, it's understood to be root.

So su-ing to ordinary users while logged in as root was a very sensible thing to do in joseppi's case.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

uncleV

  • Guest
Re: Why is root the only login that works? (Solved)
« Reply #10 on: July 28, 2010, 12:05:58 AM »
I know this but when you are root you are not asked for password of the user when you do
su <user>
You log strait to users account.
And joseppi
I can login as root and then 'su' and enter the password for any of the established user names and all the files show the correct user name as the owner of the files that are there, but I cannot login to any of them.

That why I was wondering.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: Why is root the only login that works? (Solved)
« Reply #11 on: July 28, 2010, 09:07:49 AM »
You are so right, uncleV. My mistake.

Why joseppi used su to become some of his users is no mystery. Why he had to enter their passwords is.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

uncleV

  • Guest
Re: Why is root the only login that works? (Solved)
« Reply #12 on: July 28, 2010, 10:41:47 AM »
Well, joseppi said problem is solved so let's not worry (till now). :)