19.3 xfce, can’t login

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

19.3 xfce, can’t login

Post by Fornhamfred »

tuzzer wrote:
Tue Apr 28, 2020 12:51 pm
This happened to me when i changed the home directory for my user, and forgot to reassign the privileges to the new dir.

Try to log into a terminal (ctrl+alt+F1) with your user and password, so you check that password is correct.
After the login (which probably will have no problems), type grep yourname /etc/passwd, you should see at least one line, there you can see the path to your home dir (usually /home/yourname)
Then check if that dir is rwx (readable, writable and executable) by your user , if not, adjust the permissions rwx to your user.
I have the same problem on two machines. On 19.3 XFCE have proved the user name and password and found the home dir but do not know how to check if rwx or to adjust the permissions. Any help would be appreciated. Both machines have this problem since recent updates.

User avatar
Moem
Level 20
Level 20
Posts: 11261
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: 19.3 xfce, can’t login

Post by Moem »

Mod note:
Split off from this topic. A new question deserves a new topic.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
tuzzer
Level 3
Level 3
Posts: 165
Joined: Mon Oct 09, 2017 1:00 pm
Location: Rome, Italy
Contact:

Re: 19.3 xfce, can’t login

Post by tuzzer »

do not know how to check if rwx or to adjust the permissions. Any help would be appreciated.
  1. Open a terminal by pressing ctrl+alt+F1 and log in
  2. Move to your home dir by writing cd $HOME
  3. Move to its parent dir with cd ..
  4. Once there ls -l to have a list of its content (-l is to have details)
  5. You sould see something like drwxr----- 32 usename username 4096 apr 29 12:32 username
The object username that we are seeing (the last word after date and time) is a directory (d letter at the beginning of the line stands for directory)
Then there are 9 positions to be considered in groups of 3 rwx r-- --- the first 3 are for the user (username), then 3 for the user's group (username), the last 3 for al the others
You have to check that at least the first three are rwx (Read, Write, eXecute) and that user and group report your username

If the situation is different you can change owner (chown) and/or permissions (chmod) with:
sudo chown -R youruser:youruser foldername
and
sudo chmod -R u+rwx foldername
(-R means recursive, so the same permissions will be applied to all the objects contained in you dir)

This procedure fixed things in my case.
In some cases a similar behavior of falling back to login screen could be due to lack of disk space.
Check disk space with df -h
Cinnamon
19.1-macmini(mid2011)-i5@2.30GHz-16Gb-120+500SSD
19.3-Dell Vostro 1220-C2Duo@1.8GHz-6Gb-120+250SSD
19.3-Dell Inspiron 3162-2Gb-32Gb+64Gb MMC(Win10 dual boot)
18.2-MacBookPro(2008)-C2Duo@2.6GHz-4Gb-500HD(ElCapitan dual boot)

User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: 19.3 xfce, can’t login

Post by Fornhamfred »

Thanks for the reply.
I think that the problem is that the system partition of 20gb is full.
USR - 8.4gb
LIB - 5.6gb
VAR - 3.3gb
Boot - 1.5gb

LIB has 5,2 gb of kernels

The root partition is /dev/sdb9

How do I remove unwanted files when I am unable to login?

User avatar
Moem
Level 20
Level 20
Posts: 11261
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: 19.3 xfce, can’t login

Post by Moem »

You boot from an external medium, such as the USB stick or DVD that you used when installing Mint.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
tuzzer
Level 3
Level 3
Posts: 165
Joined: Mon Oct 09, 2017 1:00 pm
Location: Rome, Italy
Contact:

Re: 19.3 xfce, can’t login

Post by tuzzer »

How do I remove unwanted files when I am unable to login?
If you're curious about how to do that via command line, You could search for information about these commands, just to have an idea:
cd /path to move into a dir
ls to list the content
du -sh . to know the size of the dir you're in
sudo mount /dev/sdX /mnt to mount a USB drive
cp -r /origpath /destpath to copy a dir and all its sub-dirs
sudo umount /mnt remove the USB drive
rm -rf /path to delete a dir, with all of its content, and remove the empty dir (be very careful, there is no trash, once deleted, it's gone)

Anyway, via GUI is much more easy, fast and secure.
Cinnamon
19.1-macmini(mid2011)-i5@2.30GHz-16Gb-120+500SSD
19.3-Dell Vostro 1220-C2Duo@1.8GHz-6Gb-120+250SSD
19.3-Dell Inspiron 3162-2Gb-32Gb+64Gb MMC(Win10 dual boot)
18.2-MacBookPro(2008)-C2Duo@2.6GHz-4Gb-500HD(ElCapitan dual boot)

Post Reply

Return to “Newbie Questions”