Spaces:
Paused
Paused
| # Ensure .bashrc is in the root directory | |
| if [ ! -f /root/.bashrc ]; then | |
| cp /etc/skel/.bashrc /root/.bashrc | |
| chmod 444 /root/.bashrc | |
| fi | |
| # Ensure .profile is in the root directory | |
| if [ ! -f /root/.profile ]; then | |
| cp /etc/skel/.bashrc /root/.profile | |
| chmod 444 /root/.profile | |
| fi | |
| # Start SSH service | |
| exec /usr/sbin/sshd -D | |