You are not logged in.
Yes it does. Should I create this file? What should it contain?
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
No xauth failing to create the file is the issue. What are the permissions on that users home directory?
stat ~
Online
It seems you are right
Plik: /home/zbyszek
rozmiar: 4096 bloków: 8 bloki I/O: 4096 katalog
Urządzenie: 804h/2052d inody: 6160386 dowiązań: 2
Dostęp: (0000/d---------) Uid: ( 0/ root) Gid: ( 0/ root)
Dostęp: 2019-11-04 00:49:28.633728443 +0100
Modyfikacja: 2019-11-04 00:46:47.020386654 +0100
Zmiana: 2019-11-04 00:49:28.633728443 +0100
Utworzenie: 2019-11-02 23:02:39.729436836 +0100
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
https://wiki.archlinux.org/index.php/Co … s_and_code
For non-English locale users: Please prepend LC_ALL=C to posted commands so that the output will be in English.
Offline
The following should find anything not owned by the uid and gid in the users home directory:
find ~ -\! -uid `id -u` -o -\! -gid `id -g`
In general everything in a users home directory should be owned by that user and you could recursively chown everything to the users uid and gid.
Online
https://wiki.archlinux.org/index.php/Co … s_and_code
code of conduct wrote:For non-English locale users: Please prepend LC_ALL=C to posted commands so that the output will be in English.
I'll remember that.
The following should find anything not owned by the uid and gid in the users home directory:
find ~ -\! -uid `id -u` -o -\! -gid `id -g`
In general everything in a users home directory should be owned by that user and you could recursively chown everything to the users uid and gid.
I created my regular user with the command useradd and didn't change any rights to the /home folder afterwards. Correct me if I'm wrong, but shouldn't be created with the proper ownership and rights with this command?
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
As root have you copied or moved any files into that users home directory or executed any commands in that users home directory?
If you create another user using the same command apart from the username what permissions are that users home directory created with?
What filesystem type is /home using?
Online
When I execute as regular user
find ~ -\! -uid `id -u` -o -\! -gid `id -g`
I got "permission denied". When I run with sudo
/home/zbyszek
/home/zbyszek/.xinitrc
/home/zbyszek/.bash_profile
As root have you copied or moved any files into that users home directory or executed any commands in that users home directory?
If you create another user using the same command apart from the username what permissions are that users home directory created with?
What filesystem type is /home using?
Yes, I did copy some configuration files. The filesystem is ext4 for the whole Linux partition.
Last edited by Zibi1981 (2019-11-04 09:03:40)
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
You should've done the copying as your normal user... As mentioned chown these to your user and group and ensure that their owner/user flags are correct:
sudo chmod 700 /home/zbysek
sudo chmod 644 /home/zbysek/.xinitrc
sudo chmod 644 /home/zbyszek/.bash_profile
Because you did mention it in your previous post, adjust the .xinitrc so that the
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
block is not removed/commented, it's important and should remain in the file, the part with twm and the clock can be left out. Try to start xorg.
Offline
Well, much easier was deleting my regular user and creating a new account with the same name. This time X11 and plasma seem to be starting correctly. Now the next task would be to make it login directly to graphic login manager, not console, but that's another topic.
Than you all for the effort.
SOLVED.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline