SSH auto script
-
So we are locking SSH down to keyed only accounts, multiple admins mean multiple keys, means multiple users; right now when you log into SSH on any account other then admin you don't get the menu (mostly used for "16 - Restart PHP-FPM" when the GUI decides to not play any more).
Is there any way of running a script on SSH login to run "sudo /etc/rc.initial" (the sudo part works fine, just want it to run it when users login)
I've tried the usual linuxy things like .profile and .bashrc
Can anyone help please?
-
Sorry to bump but can anyone help?
-
check .profile and .shrc in the root directory.
copying those to the other users might do the trick