Opened 6 years ago

Closed 3 years ago

#1153 closed defect (wontfix)

tomcat not starting on installed systems under custom user

Reported by: kalxas Owned by: live-demo@…
Priority: normal Milestone: OSGeoLive8.0
Component: OSGeoLive Keywords: user accounts, tomcat
Cc:

Description

When OSGeoLive is installed with user name != "user", tomcat cannot be started.

Linked to #1141

Change history (8)

comment:1 Changed 6 years ago by hamish

Keywords: user accounts added

USER_NAME set to something else at build time or at install time? this is in a VM? I'm not sure how to "skel" the groups a new user is assigned to.

if install-time that's somewhat expected, make sure you add your new user to all the groups that "user" belongs to. (type 'groups' in a terminal when logged in as 'user')

Hamish

comment:2 Changed 6 years ago by hamish

Keywords: tomcat added
Priority: majornormal

Guy wrote:

sudo service tomcat6 start

oh, so the trouble is the new-arbitrary user does not have sudo access to do that.

kalxas wrote:

As a workaround, you can add to the /etc/sudoers.d the following:

<username> ALL=(root) NOPASSWD: /usr/sbin/service tomcat6 start,/usr/sbin/service tomcat6 stop,/usr/sbin/service tomcat6 status

comment:3 Changed 6 years ago by kalxas

As wildintellect suggested, we should update osgeolive_install_quickstart.html including tips for those who want to install under a different user name.

comment:4 Changed 6 years ago by kalxas

Installation Tips section added in [10695]

comment:5 Changed 6 years ago by kalxas

There was a discussion on IRC about using gksu for users other than "user" and live session.

comment:6 Changed 5 years ago by hamish

Milestone: OSGeoLive7.0OSGeoLive7.9

comment:7 Changed 5 years ago by hamish

Milestone: OSGeoLive7.9OSGeoLive8.0

comment:8 Changed 3 years ago by kalxas

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.