| Issue | Primary Cause | Main Solution |
|---|---|---|
| Ubuntu 24.04 Login Failed | Incorrect ownership of /home/user | sudo chown -R $USER:$USER /home/$USER |
| Xsession/Wayland Errors | Incorrect file permissions (chmod) | chmod 755 /home/$USER |

What is Fix Ubuntu 24.04 Home Directory Permissions?
Fixing Ubuntu 24.04 home directory permissions involves restoring the correct ownership and access rights to a user’s personal folder. When these permissions are misconfigured, Ubuntu often fails to load the desktop environment, resulting in a “Login Failed” message or a recursive login loop.
This problem typically occurs after an improper system migration, a recursive chown command run by mistake, or manual file system changes. Because the system cannot write to essential configuration files like .Xauthority or .config, it denies access to the graphical interface.
Step-by-Step Solutions
1. Access the TTY Terminal
Since you cannot log in via the graphical user interface, you must use the TTY console. On the login screen, press Ctrl + Alt + F3. This will open a full-screen command-line interface.
# Enter your username and password when prompted
2. Verify Current Ownership
Check if your home directory is owned by “root” instead of your actual user account. Use the following command to see the current ownership status.
ls -ld /home/$USER
If the output shows “root root,” you have found the cause of the login failure. Your user account must own this directory to function correctly.
3. Restore Ownership and Group Permissions
Use the chown command to recursively change the owner and group back to your specific user. This is the most common fix for Ubuntu 24.04 login issues.
sudo chown -R $USER:$USER /home/$USER
4. Fix Directory and File Modes
Sometimes, the read/write permissions (the “mode”) are also incorrect. Ensure your home folder has the standard 755 permissions so the system can traverse the directory.
sudo chmod 755 /home/$USER
Additionally, ensure hidden configuration files are readable by your user. This allows the desktop manager to initialize your session settings correctly.
5. Finalize and Reboot
Once the commands have been executed, return to the graphical login screen or simply restart the system to apply the changes.
sudo reboot
After the reboot, you should be able to log in to Ubuntu 24.04 without any “Permission Denied” or “Login Failed” errors.