atsign-foundation / noports

Connect to any device with no external listening ports open
https://noports.com
BSD 3-Clause "New" or "Revised" License
271 stars 15 forks source link

Client unable to create and write to ~/.atsign/sshnp after install from universal.sh #996

Closed cpswan closed 6 months ago

cpswan commented 6 months ago

Describe the bug

SHOUT|2024-04-26 12:21:21.518233| SshnpdChannel |Exception: PathAccessException: Creation failed, path = '/home/ubuntu/.atsign/sshnp' (OS Error: Permission denied, errno = 13)

This happens because .atsign is still owned by root because we chown -R $user:$user "$user_home"/.atsign/keys when we should chown -R $user:$user "$user_home"/.atsign

Steps to reproduce

  1. First I created a fresh Ubuntu 24.04 VM
  2. Then I downloaded universal.sh from the 5.2.0-rc1 pre-release
  3. And then I ran sudo sh universal.sh and did a client install
  4. Then copied in my atKeys
  5. Then ran np.sh to connect to my test device

Expected behavior

Directory permissions should be set so that sshnp can write to ~/.atsign/sshnp