I would like to have at least two users signing in the same home folder, so them need to have full access to this folder, but with different 'profile' behavior.
- user1 :
/home/foo-folder -> .profile -> exec foo-program
- user2 :
/home/foo-folder -> .profile -> shell
host-bar - Need access to
host-foo without password:
ssh user2@host-foo ls
Each one user needs to have different 'profiles' (or something like that), where one cannot have access to the shell, so he'll have a program being auto-run at login (eg: exec foo-program, in .profile), and the other one user needs direct access to the shell prompt.
The other aspect is the need to authorize the 'user with shell access' to sign in without password through ssh. Keep in mind that ssh requires home folder to deny write access on 'group' and 'others' permissions. So, I cannot have two users expanding permissions to group.
Is this possible ? How ?