=
I have three pcs :
- 192.168.0.70 dell has an ldap server
- 192.168.0.60 pb should be configured to connect to dell's ldap server
- 192.168.0.80 mac
if I ssh to pb with an ldap user account (here pduchesne) I will log to pb into pduchesne home dir, but with my own name :
romain@Mac:~$ ssh pduchesne@pb
pduchesne@pb's password:
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-53-generic x86_64)
romain@pb:~$ pwd
/home/users/pduchesne
romain@pb:~$ whoami
romain
Question
How can I connect and be changed for the pduchesne
account / user ?
EDIT 1
Access log : I just disconnected from pb and reconnected from mac through ssh pduchesne@pb:
Jan 13 11:58:15 pb sshd[14130]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.0.80 user=pduchesne
Jan 13 11:58:15 pb sshd[14130]: Accepted password for pduchesne from 192.168.0.80 port 64369 ssh2
Jan 13 11:58:15 pb sshd[14130]: pam_unix(sshd:session): session opened for user pduchesne by (uid=0)
Jan 13 11:58:15 pb systemd-logind[18050]: New session 2084 of user romain.
Jan 13 11:58:15 pb sshd[14130]: pam_unix(sshd:session): session opened for user pduchesne by (uid=0)
Jan 13 11:58:17 pb sshd[14158]: Received disconnect from 192.168.0.80 port 64369:11: disconnected by user
Jan 13 11:58:17 pb sshd[14158]: Disconnected from 192.168.0.80 port 64369
Jan 13 11:58:17 pb sshd[14130]: pam_unix(sshd:session): session closed for user pduchesne
Jan 13 11:58:17 pb sshd[14130]: pam_unix(sshd:session): session closed for user pduchesne
Jan 13 11:58:17 pb systemd-logind[18050]: Removed session 2084.
Note
PS : This question follow another one, here : Impossible to connect with ldap