Using unix groups looks like the correct approach here. I gave a try. It woks fine. Thanks.
Now, since I maintain a centralized jenkins instance that are used by different groups and want to run the test cases as application user(u2, u3, ...) rather than jenkins runtime user (u1). Is there a way I can invoke the maven and ant targets as a different user (u2) than my jenkins run user(u1). In case of shell scripts I can do someting like sudo -u u2 run_script.sh. But I am not able to figure out how to do this for maven and ant steps. On Thursday, 3 July 2014 19:12:11 UTC+5:30, Fritz Elfert wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 07/03/2014 02:23 PM, varun srivastava wrote: > > > Not really a jenkins question. More like a generic Unix question: > "How to share certain directories or files between different users, > where each user shall be able to write/delete" > > Solution: > That's what groups are intended for. > Create a dedicated group for this and make all participating users a > member of this group. Then, give directories rwx permissions for that > group and files at least rw permissions for that group. > > CU > -Fritz > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlO1XWoACgkQboM4mAMyprAOpACfUwVSbHkYE2fpnVIHI1wuG1Ba > OBEAoJPZ7gUEsREYIJFaaBBgB4F9Ky7u > =OlDa > -----END PGP SIGNATURE----- > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
