Bug 271669

Summary: freefall: /home/grahamperrin: Permission denied
Product: Services Reporter: Graham Perrin <grahamperrin>
Component: Core InfrastructureAssignee: Cluster Admin <clusteradm>
Status: Closed FIXED    
Severity: Affects Only Me CC: dbaio, lwhsu
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   

Description Graham Perrin freebsd_committer freebsd_triage 2023-05-27 10:47:48 UTC
I somehow locked myself out of my home. Maybe through misuse of chown or chmod whilst my home was mounted at /media/freefall with sshfs.

Now: 

…
Could not chdir to home directory /home/grahamperrin: Permission denied
> ls -dhl /home/grahamperrin
drw-------  5 grahamperrin  devel    11B May 27 10:29 /home/grahamperrin
> exit
logout
Connection to freefall.freebsd.org closed.
%
Comment 1 Danilo G. Baio freebsd_committer freebsd_triage 2023-05-27 13:06:06 UTC
Hi.

Before:

drw-------     5 grahamperrin   devel            11B May 27 10:29 grahamperrin

After:

drwx------     5 grahamperrin   devel            11B May 27 13:04 grahamperrin


Give it a try now.

Regards.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-05-27 14:35:02 UTC
(In reply to Danilo G. Baio from comment #1)

Thanks!

I changed the mode to 755, matching what appears to be the norm (compared with three other homes):

grahamperrin@freefall:~ % chmod 755 /home/grahamperrin
grahamperrin@freefall:~ % ls -dhl /home/grahamperrin
drwxr-xr-x  5 grahamperrin  devel    11B May 27 13:04 /home/grahamperrin
grahamperrin@freefall:~ %
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2023-06-02 03:35:13 UTC
Just be curious, I think it's able to change the permission yourself as you're still the owner of that directory. And in the cluster we store ssh public keys in another location so it should be still able to login.
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2023-06-02 04:42:23 UTC
(In reply to Li-Wen Hsu from comment #3)

AFAIR I could log in, but not change the mode, which did surprise me.