I need to grant jenkins user permission to access some specific directories like usr/lib or usr/local/include so that he can copy some files into those directories during the execution of some Jenkins jobs. How can I do that?
I need to grant jenkins user permission to access some specific directories like usr/lib
Share
The idea that something accessed from the web can overwrite system files is very scary (and insecure), but I think you would need to grant the user under which Jenkins is running the privileges need to write there.
Again, there are good reasons why ordinary user’s aren’t granted permissions to write to those directories. You might want to consider running the job in a chroot jail. That way, if something goes wrong, you won’t destroy your system.