My Oracle Support Banner

How to Restore files under user's home directory to default (Doc ID 1955585.1)

Last updated on MARCH 20, 2023

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64


If accidentally the context or file permission of files under user's home directory had been changed, permission errors or unexpected application behavior might be encountered after this user login system.

For instance, if the file permission of /home/UID/.bash_profile is wrong, login UID will get prompt "/home/UID/.bash_profile: Permission denied":

This document instructs how to restore files/sub directories under user's home directory to default.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 The skel directory
 Restore a file under home directory
 Restore a sub directory under home directory
 Restore whole home directory from scratch

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.