Project

General

Profile

Actions

Task #4771

closed

Run smartgears on the rstudio-server instances as unprivileged user

Added by Andrea Dell'Amico almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
_InfraScience Systems Engineer
Category:
System Application
Target version:
Start date:
Jul 21, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production, Production

Description

We need to:

  • Give sudo privileges to the commands esecuted by the Ruseradd.sh script

Related issues

Related to D4Science Infrastructure - Task #183: tomcat running as root user under port 80ClosedAndrea Dell'AmicoMay 30, 2015

Actions
Actions #1

Updated by Andrea Dell'Amico almost 9 years ago

We need to:

  • Give sudo privileges to the commands esecuted by the Ruseradd.sh script
  • Add firewall rules to isolate tomcat while still giving direct access from the isti network, for issue debugging
  • Create a playbook that installs the r-connector
Actions #2

Updated by Andrea Dell'Amico almost 9 years ago

  • Status changed from New to In Progress

Starting with rstudio-dev

Actions #3

Updated by Andrea Dell'Amico almost 9 years ago

  • Related to Task #183: tomcat running as root user under port 80 added
Actions #4

Updated by Andrea Dell'Amico almost 9 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

It seems I got it working. I heavily modified the script that adds the users so that it uses sudo.
It also creates an empty userconfig.csv on the user's home with the correct permissions.

To replicate the configuration on the production server, a one time command will be needed to correct the permission of all the userconfig.csv files. Its group now needs to be gcube, with write access.

The configuration of the dev node lives on ansible inside d4science-ghn-cluster/group_vars/rstudio_dev while the r_connector stuff is in library/roles/smartgears/r_connector.

The rstudio-server installation and the ldap pam configuration aren't managed by the playbook right now.

Actions #5

Updated by Andrea Dell'Amico almost 9 years ago

I provisioned the production instance too, in the same way. I also changed the home directory permissions for the existing users.

Actions #6

Updated by Andrea Dell'Amico almost 9 years ago

  • Status changed from Feedback to Closed

Working correctly in production too.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)