$HOME variable over SSH
#1
Hello everone,

I just booted postmarketOS from my SD card and logged into it over SSH. I noticed that
Code:
cd ~
takes me to /root and not to /home/user. Is there a reason for that and can it be changed? I tried
Code:
usermod -d /home/user user
but it only said
Code:
usermod: no changes
#2
What user are you logged in as?
$ whoami

What shell are you running?
$ ps

What does /etc/passwd list as user's home directory? (Second-to-last field)

My first guess is you're getting logged in as root since nobody else should have /root set as their home directory.
#3
(06-26-2020, 02:45 PM)Dendrocalamus64 Wrote: My first guess is you're getting logged in as root since nobody else should have /root set as their home directory.
Sounds like this is it really. `cd ~` definitely brings me to my home directory and the only real explanation would be executing that command as root.
#4
Thank you for your replies. I don't remember which user it was but have not had an issue with it anymore. Thank you


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to choose which Waydroid Apps can appear on PostmaketOS Home Screen? Avisando 6 2,103 05-28-2023, 10:54 PM
Last Post: Avisando
  Adding a program to home screen. pcdoodle 1 3,185 08-12-2020, 12:02 AM
Last Post: Boern

Forum Jump:


Users browsing this thread: 1 Guest(s)