Permissions as another user

CanadaGuy

Verified User
Joined
Nov 14, 2019
Messages
158
As an admin, if I create a DA user account without ssh access, how can I do things for the user from the cli without adding and removing SSH permissions to their account?

I'm thinking something like installing Wordpress. I can upload the tar.gz in seconds and extract it on the server in another few seconds, while uploading the extracted folder over FTP will take many minutes, and deleting can be similar.

How do people do this?
 
As an admin, if I create a DA user account without ssh access, how can I do things for the user from the cli without adding and removing SSH permissions to their account?

I'm thinking something like installing Wordpress. I can upload the tar.gz in seconds and extract it on the server in another few seconds, while uploading the extracted folder over FTP will take many minutes, and deleting can be similar.

How do people do this?
Run everything like:
Code:
sudo -u user wget http://coolfile
sudo -u user tar sometinging
sudo -u user wel you get the idea ?
 
Back
Top