M
M
Michael2020-02-13 16:49:44
System administration
Michael, 2020-02-13 16:49:44

How to give root on the server and write commands?

Do not rush to accuse me of lamerism, the situation is such
that one tricky script needs to be installed at work, but it can’t be installed in any way, then one tenth
I created a cheap VPS and I want to give root access to the developer there, let him do it right, but I need to know what software and he entered commands that would then be reproduced on a combat vehicle.

Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vadim Priluzkiy, 2020-02-13
@happy-cat

Use asciinema .
Record session:
asciinema rec filename.req
Play session:
asciinema play filename.req
You can surf the Internet:
asciinema upload filename.req
The result will be something like this:
ijAgHOR8LFXMPp1dIzL1DkqVv.svg

R
res2001, 2020-02-13
@res2001

Linux shells usually write a command history file, just open it and read it.
https://www.shellhacks.com/en/tune-command-line-hi...

A
Aborigen1020, 2020-02-13
@Aborigin1020

on the server, create a user through useradd,
give him rights through sudoers
, the commands he entered, then you can look in ./bash_history if he doesn’t clean them up, or doesn’t take down your account at all, if you give him wrong rights
You can look at the list of installed software through dpkg (if your cheap vps on a debian-like distribution)
In general, this is not a security issue, but a redneck, do you want to pay the developer for the admin work?

M
maniac_by, 2020-02-13
@maniac_by

sudo history?

V
Viktor, 2020-02-13
@awsswa59

Snoopy
https://habr.com/en/post/92020/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question