Deployer: Deploying from root user, as another user

Created on 16 Feb 2017  路  4Comments  路  Source: deployphp/deployer

| Q | A
| ----------------- | ---
| Issue Type | Question
| Deployer Version | 4.2.1
| Local Machine OS | Ubuntu 16.04
| Remote Machine OS | Ubuntu 16.04

Is it possible to deploy to a server, as another user then the one you SSH in as? The reason I'm asking is because in my current setup, it would be easier if I could use one user for the SSH, and then just su - deployuser and then deploy.

This means I don't have to add my SSH-key to every single user I want to deploy as.

I've tried to create a task and run su - deployuser but that doesn't seem to work.

feature

Most helpful comment

All 4 comments

That's not possible for now, but definitely will be in next Deployer v5.

Done in 5 beta

How does this work?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k-solnushkin picture k-solnushkin  路  5Comments

jolipixel picture jolipixel  路  4Comments

dima-stefantsov picture dima-stefantsov  路  5Comments

brunodevel picture brunodevel  路  3Comments

lsv picture lsv  路  4Comments