On LAMP for web apps in PHP we use common ownership: all files all owned by user webmaster and group www-data. User webmaster has full access, www-data (used by apache) mostly read-only. Multiple admins/developers connect to this server via SSH on this same user (webmaster).
What I would like is to allow multiple developers login to user webmaster via SSH to interactive shell, but have their own customized startup scripts.
- Modify .profile/.bashrc to recognize different remote users. But I don't know how, I can not use remore user IP (we work often from home).
- Use ssh the way it opens interactive shell on remote server and then calls specific command on remote server inside this shell. Even better if configurable in .ssh/.config so command line can still be simple
ssh myserveralias. But I don't know how do do this either.