2

I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in their home directory, which creates a lot of other issues.

I wanted to know a simple way we can get around this situation, without affecting any other users who already have their home directories.

Victor
  • 9,244
Hrish
  • 2,399

1 Answers1

2

We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.

authconfig --enablemkhomedir --update
Hrish
  • 2,399