Login fail

Using YaST, I changed the number of the user and now login does not work
When I type the password, she accepts, but the system is not up and back to the login immediately

I returned the previous number but not solved
How do I retrieve the login )

Thanks in advance

Log in as root and try this:

chown -R yourusername /home/yourusername
chown -R yourusername /home/yourusername/.*

And try to clean up /tmp and /var/tmp.

Background: you changed the UID, but all file ownership is by UID. And thus all files owned by <oldUID> must now be changed to be owned by <newUID> else that user can not use anything.

I ran the two lines whit the chown command and I cleaned the directories

Now I have no more access for the second User that was still running

When I try to log a message appears:

Cal lnuser failed (temporary directories full *). Check your installations

What can I do now *

(Please, where you see an “*” this is a question mark)

I think you must be more clear about what you had, what you wanted to change and what you did to achieve that.

As you started this, there was only one user where you changed the UID. Now you talk about “the second user” as if you were talking all the time about two users. You didn’t. This comes as a complete surprise to me. So you better explain. And you better do not use expressions like “the one user” and “the other user”, but give them their real names. And the real UID’s you used/changed, etc. Else it will be to abstract for all of us.

If you haven’t made a typing error, those two lines cannot have any effect to your second user.

Have you tried to reboot?

That error message means that the login procedure cannot create important directories in /tmp and /var/tmp.
Could you please post the output of the following (logging in as root does still work, right?):

df -h
ls -lha /tmp /var/tmp
ls -lha /home

I have two users on this PC, “sergio” and “tropecso”

The first time was logged as “tropecso”
Open a terminal as root and ran the lines


 chown-R   sergio  /home/sergio
 chown-R  sergio  /home/sergio/. *

The user sergio remains with the same problem when try to log

and after reboot when try login with the tropecso use then appear this message:

 Call to Inuser failed (temporary directories full?). Check your system

Now I ran the lines:


 chown-R   tropecso  /home/tropecso
 chown-R  tropecso  /home/tropecso/. *?code]

And the user tropecso com log in again 
But the user sergio remains returning to login after each attempt

Did you really type a " " (space) between /home/sergio/. and *?
That’s a grave mistake! In effect you have changed all files and directories in the current directory to be owned by sergio.
And since you have been logged in as tropecso, the current directory likely was /home/tropecso, so all his files/directories were suddenly owned by sergio. That’s why he couldn’t login anymore.

Now I ran the lines:

chown-R tropecso /home/tropecso
chown-R tropecso /home/tropecso/. *

And the user tropecso com log in again
But the user sergio remains returning to login after each attempt

Same here. That tropecso now works is sheer luck.

So type the following again:

chown -R sergio /home/sergio/
chown -R sergio /home/sergio/.*
chown -R tropecso /home/tropecso
chown -R tropecso /home/tropecso/.*

And this time be sure that you type it exactly as I wrote it.

Then both users should work again.

wait please

Please look at this
As you can see, the commands are right.
But the results seem wrong
Or did I do something wrong?


linux-l78t:/home # cd /home
linux-l78t:/home # ll
total 28
drwxr-xr-x  9 tropecso users  4096 Mar  6  2013 linux~
drwx------  2 tropecso root  16384 Ago 26 08:41 lost+found
drwxr-xr-x 42 tropecso users  4096 Set  9 14:05 sergio
drwxr-xr-x 27 tropecso users  4096 Set  9 14:15 tropecso
linux-l78t:/home # chown -R sergio /home/sergio/
linux-l78t:/home # chown -R sergio /home/sergio/.*
linux-l78t:/home # ll
total 28
drwxr-xr-x  9 sergio users  4096 Mar  6  2013 linux~
drwx------  2 sergio root  16384 Ago 26 08:41 lost+found
drwxr-xr-x 42 sergio users  4096 Set  9 14:05 sergio
drwxr-xr-x 27 sergio users  4096 Set  9 14:15 tropecso
linux-l78t:/home # chown -R tropecso /home/tropecso
linux-l78t:/home # chown -R tropecso /home/tropecso/.*
linux-l78t:/home # ll
total 28
drwxr-xr-x  9 tropecso users  4096 Mar  6  2013 linux~
drwx------  2 tropecso root  16384 Ago 26 08:41 lost+found
drwxr-xr-x 42 tropecso users  4096 Set  9 14:05 sergio
drwxr-xr-x 27 tropecso users  4096 Set  9 14:15 tropecso

I take it this is a straight copy/paste from your terminal window, so no typing mistakes possible, right?
Hm, that’s strange indeed then…

What happens if you omit the second line with the ‘.’ for each user?
So just:

chown -R sergio /home/sergio/
chown -R tropecso /home/tropecso/

Using YaST, I removed the user “sergio” and it signed up again using the same directory /home/sergio

This made everything work again :slight_smile:

Many thanks to all

/home/sergio/.* when expanded also contains /home/sergio/… which is /home!

Better use

/home/sergio/.^.]*

And while repairing, do not forget to make root again the owner of lost+found. And whoever is to be owner of linux~.

Be carefull, it may look that everything is allright, but do not forget my last remark about lost+found and linux~.

Yeah, right. How could I possibly overlook that?:sarcastic:
Sorry.:shame:

And whoever is to be owner of linux~.

Well, I guess linux~ is just a leftover/backup from an earlier, already deleted user (notice the ‘~’).
But sergelli should know that better I hope… :wink:

Sorry, but I am old in age but young in linux:)

Wath is talking about ?
/lost+found
or
/home/lost+found

And wath is linux~
Wath I do with this?

linux~ is a remainder of the Live installer. If you want to, you can remove it.

He means /home/lost+found and /home/linux~.

As Knurpht already said you probably can just delete /home/linux~ (well, better have a look in there first if there are files you want to keep… :wink: ).

Regarding /home/lost+found, you should run:

chown root /home/lost+found

On 2013-09-09 19:04, sergelli wrote:

I think that you have to login as root in text mode (important: runlevel
1), then run:


chown -R tropecso /home/tropecso
chown -R tropecso /home/tropecso/.*
chown -R sergio /home/sergio
chown -R sergio /home/sergio/.*

And then clear (empty) /tmp and /var/tmp completely. Try also


df -h

to find out if you have a full partition.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Carlos E. R. wrote:
> chown -R tropecso /home/tropecso
> chown -R tropecso /home/tropecso/.*

I don’t know who originally came up with this

chown -R tropecso /home/tropecso/.*

idea but it is not necessary. chown is run as root and ls lists dot
files automatically for root, so the first chown changes all files
including dot files. The second chown is not needed.