I added a user (user2) in a WSL2 environment and then wanna change that user2's home directory to a different directory.But something must be wrong.
$ usermod -d /var/lib/app1 user2usermod: no changes
$ vim /etc/passwduser2:x:1001:1001::/var/lib/app1:/bin/sh
$ sudo su user2
It wasn't /var/lib/app1 but /home/abc.
Could you check what the problem is?