Skip to content

1.5.3. Permissions with chmod #7

@mfisher5

Description

@mfisher5

I'm connecting to farm using git bash on Windows, and I can't seem to get chmod to change permissions for the config file and ssh folder.

I'm running section 1.5.3 of the documentation. (" For example, to set correct permissions on ~/.ssh/config: chmod u=rw,go= ~/.ssh/config ")

$ ls -l ~/.ssh
total 16
-rw-r--r-- 1 AD3+marfishe 2147484161   72 Nov 26 14:37 config
-rw-r--r-- 1 AD3+marfishe 2147484161 1876 Nov 26 12:46 farm_rsa
-rw-r--r-- 1 AD3+marfishe 2147484161  406 Nov 26 12:46 farm_rsa.pub
-rw-r--r-- 1 AD3+marfishe 2147484161 1876 Nov 26 12:46 id_rsa
-rw-r--r-- 1 AD3+marfishe 2147484161  406 Nov 26 12:46 id_rsa.pub
-rw-r--r-- 1 AD3+marfishe 2147484161  686 Nov 26 13:50 known_hosts
-rw-r--r-- 1 AD3+marfishe 2147484161  102 Oct  2 13:58 known_hosts.old

$ chmod u=rw,go= ~/.ssh/config

$ ls -l ~/.ssh
total 16
-rw-r--r-- 1 AD3+marfishe 2147484161   72 Nov 26 14:37 config
-rw-r--r-- 1 AD3+marfishe 2147484161 1876 Nov 26 12:46 farm_rsa
-rw-r--r-- 1 AD3+marfishe 2147484161  406 Nov 26 12:46 farm_rsa.pub
-rw-r--r-- 1 AD3+marfishe 2147484161 1876 Nov 26 12:46 id_rsa
-rw-r--r-- 1 AD3+marfishe 2147484161  406 Nov 26 12:46 id_rsa.pub
-rw-r--r-- 1 AD3+marfishe 2147484161  686 Nov 26 13:50 known_hosts
-rw-r--r-- 1 AD3+marfishe 2147484161  102 Oct  2 13:58 known_hosts.old



$ bash -version
GNU bash, version 5.2.21(1)-release (x86_64-pc-msys)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Is there a different command for windows / git bash users?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions