Timeline for My Ubuntu Linux home directory is /home/ls. Why is it "ls" and not my user name?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 22 at 1:34 | comment | added | telcoM | @ikegami That information was not originally present. The user provided that information as the result of discussion in the comments, and it looks like Kusalananda has then added the extra information revealed in comments to the question post where it belongs. | |
| Apr 21 at 22:23 | comment | added | ikegami | Re "That might be caused by the home directory being set to /home/ls in the user account information in /etc/passwd", This is the case. As shown in the question, they are running as user ls (uid=1000(ls) from id), and its home dir is set to /home/ls in passwd. Not sure why you suggest using getent passwd perdiem when they are running as ls. | |
| Apr 21 at 14:12 | comment | added | Yay295 | I'm still using WSL 1, but my home directory is /home/Yay295 (\\wsl$\Ubuntu\home\Yay295). I don't think this is a WSL thing. | |
| Apr 21 at 13:16 | comment | added | Stack Exchange Broke The Law | I suggest that "ls" could stand for "Linux subsystem". Note that WSL is not a normal Linux system and this could be intentional. | |
| Apr 20 at 16:01 | comment | added | Anne Eve | TelcoM, I tried to upvote, but I am not yet allowed to do so. | |
| Apr 20 at 15:59 | vote | accept | Anne Eve | ||
| Apr 20 at 15:59 | comment | added | Anne Eve | telcoM, Thanks for the detailed analysis! After following your suggestions (and other's) for investigating further (getent, and greps above) my conclusion is that there are errors (or features :) ) in the WSL scripts that simply ignore the username entered, or incorrectly use it, and this is what you get. WSL seems very simple and easy for someone who is not versed in the intricacies of Linux (that's me), but you get what you pay for. Again, Thanks! | |
| Apr 20 at 11:18 | history | answered | telcoM | CC BY-SA 4.0 |