On our Virtualmin server, we have one primary webmaster. However, due to a lack of linux experience he does not have root access. Organizational policy requires that we use SCP with certificates rather than FTP for file transfer.
In order to allow him to get on with his job, I attempted to put his SSH key into /etc/skel/.ssh/authorized_keys. This way he can create new domains and immediately access them to upload files. However, something about the way virtualmin creates a new domain appears to delete the contents of this file.
Running useradd as root correctly copies the skel files into the new home directory (including file contents), but creating a new domain with virtualmin creates the files with the correct permissions but it doesn't copy the contents (authorized_keys is there, but empty).
Is there something in Virtualmin that is doing this intentionally? The server is running a fully patched Centos 5.4 and Virtualmin GPL.
Here are the file permissions on the /skel files:
-bash-3.2# ls -alhr total 64K -rw-r--r-- 1 root root 658 Jan 7 2007 .zshrc drwx------ 2 root root 4.0K Aug 6 06:29 .ssh -rw-r--r-- 1 root root 124 Jan 21 2009 .bashrc -rw-r--r-- 1 root root 176 Jan 21 2009 .bash_profile -rw-r--r-- 1 root root 33 Jan 21 2009 .bash_logout drwxr-xr-x 75 root root 12K Sep 9 10:48 .. drwxr-xr-x 3 root root 4.0K Aug 6 06:29 . -bash-3.2# ls -alh /etc/skel/.ssh/ total 24K drwx------ 2 root root 4.0K Aug 6 06:29 . drwxr-xr-x 3 root root 4.0K Aug 6 06:29 .. -rw-r--r-- 1 root root 808 Aug 6 06:29 authorized_keys