If you use authconfig --enablemkhomedir to make sure that users get home directories when they login for the first time when login to server.<br />
<br />
Then you want to create these files for helping people<br />
<br />
mkdir /etc/skel/.ssh<br />
touch /etc/skel/.ssh/authorized_keys<br />
chmod -R go= /etc/skel<br />
<br />
Just make peoples life little bit easier when they configure ssh public key access to server.<br />
<br />
However with SELinux you need to file and directory context right. That is what useradd will do for these files, but mkhomedir does not.
↧