Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give folder ownership to user with UID 1000?

Tags:

linux

The reason I need to give folder ownership to UID 1000 is to make sure Docker container can write to the mounted volume based on this answer.

But the answer assumes reader knows how to change ownership. I don't know. After some research, I know how to change ownership with this, but can't make it work.

chown UID 1000 /u ./jenkins_home

My above command doesn't work. How do I change ownership to UID 1000???

like image 594
Nicolas S.Xu Avatar asked Dec 11 '22 11:12

Nicolas S.Xu


1 Answers

The accepted answer does explain how to change ownership. The correct command would be chown 1000 ./jenkins_home.

like image 122
Nagaraj Avatar answered Jan 06 '23 17:01

Nagaraj