SOLVED Home Directory Permissions

qq8554650

Dabbler
Joined
Feb 7, 2022
Messages
23
user1_1.png

user1_2.png
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
If you disable the password, you need to define a key.

Code:
$ pwd
/mnt/software/opt/user
$ install -dm 0700 .ssh
$ cat > .ssh/authorized_keys << 'EOF'
ssh-ed25519 q2oorWOQPsssdGMI36WHXmq8BuXp0SRtC3qH8z1Yo1nmF5pyyiyy44hyn7qE25NgGOVF user@domain.com
EOF
$ chmod 0600 .ssh/authorized_keys

I don't know if adding the public key inside the user UI will create the above directory structure with the right permissions. I always do it from terminal, manually.

Following Linux standards, permissions should always have a 022 umask.

Screen Shot 2022-12-05 at 5.54.34 PM.png
 
Last edited:
Top