RSSAmplifier

Ammar Najjar - Blog · Jul 3, 2016

Fedora23 Upgrade (unlabeled home)

0
Sign in to vote or save

Ammar Najjar · ammar-najjar.com

When I tried to update from the fedora23 to fedora24, I faced the issue that the home directoy lost its labeling:

> ls -lZ /home/
drwxr-x---. 83 username username system_u:object_r:unlabeled_t:s0   4096 Jun 22 14:55 username
drwx------.  2 root     root     system_u:object_r:lost_found_t:s0  16384 Sep 30 2015 lost+found
drwx------.  5 root     root     system_u:object_r:unlabeled_t:s0   4096 Jan 13 11:48 testuser

And the issue prevents the user username from logging in to its home directory, instead it directs the user to the root directory with an error message regarding permission issues.

The solution was found in this helpful answer.

The command to re-label the directory is:

sudo restorecon -R /home

After that everythig went ok and logging is back to normal:

> ls -lZ /home/
drwxr-x---. 83 username username system_u:object_r:user_home_dir_t:s0  4096 Jun 22 14:55 username
drwx------.  2 root     root     system_u:object_r:lost_found_t:s0     16384 Sep 30 2015 lost+found
drwx------.  5 root     root     system_u:object_r:user_home_dir_t:s0  4096 Jan 13 11:48 testuser

Go to Top


← OlderBuild Vim from SourceNewer →Custom Selenium Webdrivers using Decorators

Read the original on ammar-najjar.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.