Discussion:
Wrapper as non-root user
Daniel McGreal
2015-09-10 12:32:00 UTC
Permalink
Hi Karaf Users,
Is it possible to configure wrapper to run as a different user? If not, how would I go about achieving similar?
Best, Dan.
Jean-Baptiste Onofré
2015-09-10 12:33:46 UTC
Permalink
Hi Daniel,

yes, in etc/karaf-wrapper.conf, you can specify RUN_AS_USER

Take a look on:

http://karaf.apache.org/manual/latest/users-guide/wrapper.html

Regards
JB
Post by Daniel McGreal
Hi Karaf Users,
Is it possible to configure wrapper to run as a different user? If not, how would I go about achieving similar?
Best, Dan.
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Jean-Baptiste Onofré
2015-09-10 12:36:11 UTC
Permalink
Sorry, I meant bin/karaf-service (the script that you copy in
/etc/init.d). It's where you can specify RUN_AS_USER.

Regards
JB
Post by Jean-Baptiste Onofré
Hi Daniel,
yes, in etc/karaf-wrapper.conf, you can specify RUN_AS_USER
http://karaf.apache.org/manual/latest/users-guide/wrapper.html
Regards
JB
Post by Daniel McGreal
Hi Karaf Users,
Is it possible to configure wrapper to run as a different user? If
not, how would I go about achieving similar?
Best, Dan.
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Daniel McGreal
2015-09-10 12:41:48 UTC
Permalink
Thanks JB,
Of course that’s where!
Best, Dan.

PS I did have a look in the linked documentation before and after your reply, but I don’t see this mentioned there.
Sorry, I meant bin/karaf-service (the script that you copy in /etc/init.d). It's where you can specify RUN_AS_USER.
Regards
JB
Post by Jean-Baptiste Onofré
Hi Daniel,
yes, in etc/karaf-wrapper.conf, you can specify RUN_AS_USER
http://karaf.apache.org/manual/latest/users-guide/wrapper.html
Regards
JB
Post by Daniel McGreal
Hi Karaf Users,
Is it possible to configure wrapper to run as a different user? If
not, how would I go about achieving similar?
Best, Dan.
--
Jean-Baptiste Onofré
http://blog.nanthrax.net
Talend - http://www.talend.com
Jean-Baptiste Onofré
2015-09-10 12:47:57 UTC
Permalink
Good point for the documentation, I will add a note about that.

Regards
JB
Post by Daniel McGreal
Thanks JB,
Of course that’s where!
Best, Dan.
PS I did have a look in the linked documentation before and after your reply, but I don’t see this mentioned there.
Sorry, I meant bin/karaf-service (the script that you copy in /etc/init.d). It's where you can specify RUN_AS_USER.
Regards
JB
Post by Jean-Baptiste Onofré
Hi Daniel,
yes, in etc/karaf-wrapper.conf, you can specify RUN_AS_USER
http://karaf.apache.org/manual/latest/users-guide/wrapper.html
Regards
JB
Post by Daniel McGreal
Hi Karaf Users,
Is it possible to configure wrapper to run as a different user? If
not, how would I go about achieving similar?
Best, Dan.
--
Jean-Baptiste Onofré
http://blog.nanthrax.net
Talend - http://www.talend.com
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Loading...