Quantcast

Permissions denied when creating files and directories

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Permissions denied when creating files and directories

voldit
This post has NOT been accepted by the mailing list yet.
Hi, I get a permissions denied when I run my job with jenkins. My job consists of 2 scripts, one creates folder1 and populates it with files, then script 2 runs and creates folder1/folder2 and populates it with files. When using jenkins, none of the folders and files can get created because of a permissions issue. My whole structure is: ~/mydev/trunk/f1/f2. Jenkins runs as jenkins:nogroup so if I create f1 and f2 ahead of time and give them the permissions jenkins:voldit or voldit:nogroup, all the files get created in those folders when Jenkins runs. Pre-creating those folders (default as voldit:voldit) and then giving it 777, also works. Currently the trunk is voldit:voldit and is drwxrwxr-x, so giving the parent (trunk) a write for 'others' making it 777 wouldn't be idea, right?

So my question is what is the best way to have Jenkins be able to create directories and files without having to use 777 or pre-creating them with the right ownership (I would only need to pre-create them once though on the very first run)?
Loading...