Owner and Group not Displaying after Chroot

Latest response

Hello everyone,

So I am a little stuck with a problem I am having. It is not exactly linux related but I cannot seem to figure it out or find solution on the internet.

So what I have done is I have chrooted a group to a particular directory on my server and that works absolutely fine, this is not the problem.

My problem is that I have my user ssh to the server via WinSCP and it drops them in the correct folder. However the problem is that the Owner and Group do not show up correctly. The show up as the PID in the passwd/group file.

I tried copying the /etc/passwd & /etc/group to the chrooted folder but this did not help. I deleted the other users and groups that don't have rights to this chrooted folder so as to not have a security concern.

So I am wondering what do I have to do to have the user/group show up on the permissions in WinSCP. Is it a winscp issue or what step have I forgot to do.

The attached image may make it clearer.

Again thank you for the help within the community as always.

Regards,
Patrick

Responses