I have installed jenkins on our dev server, and I added the user "jenkins" to some groups for example www-data.
now when I run this command on the terminal:
groups jenkins
I get this output
jenkins www-data
and that is ok, but in one of my jobs I created an ssh command that simply does
groups jenkins
and the result is
jenkins
as you can see the "www-data" group is missing, so I have some permissions errors.
Any ideas why this weird bug happens??
Have you restarted Jenkins since adding the group to the user?
Richard.
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c12cee83-2dd1-47d3-af3d-3844b9f111e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Any ideas why this weird bug happens??

Did you mean to restart jenkins right?
command: cat /etc/group | grep jenkins
result: www-data:x:33:tzook,jenkins
jenkins:x:115:
command:groups jenkinsresult:
jenkins : jenkins www-data web
command:
groups
result:jenkins
it's like the "real" user jenkins has the groups, but thejenkins user that is currently running has no groups
Is the job running on a slave?
Matthew
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/7Jmoeh44Vg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6836E1DC2DDC174C9D64B7860E5AF5FC9D780BFD%40EXCHMBX01.fed.cclrc.ac.uk.
For more options, visit https://groups.google.com/d/optout.
Tzook Bar Noy
"Life is what happens while you are busy making other plans"
Phone: +972.52.4625353
Email: tzo...@gmail.com
![]()
sorry it is not ssh, it is a
jenkins:x:115:
jenkins : jenkins www-data web
jenkins
jenkins