Skip to content

Podman ssh permissions problem #26304

Answered by eriksjolund
alainseys asked this question in Q&A

You must be logged in to vote

Is /workspaces/demo a volume? One theory could be that you bind-mount a directory from a filesystem that does not support traditional Unix permissions.

A symptom of that could be

root@ansible-dev-container:/workspaces/demo# chmod 600 private_key 
root@ansible-dev-container:/workspaces/demo# ls -al | grep private_key 
-rwxrwxrwx 1 root root 1773 May 28 07:51 private_key

(The command chmod 600 private_key succeeds but afterwards the file private_key has permission 777)

Maybe it would work if you changed the filepath /workspaces/demo/private_key to be outside
/workspaces/demo?

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@alainseys

@alainseys

Answer selected by alainseys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants