The every day things from Thalamus' life.

Thalamus' Blog

24 October, 2017

sudo to another user

Filed under: ComputerStuff_en — Thalamus @ 13:40

Maybe topic is a bit misleading. But, there might be cases where the admin has given you permission to use sudo to become another user on the system. Eg. “As Whom” in a IDM like freeIPA.

$ sudo -iu tomcat
• • •
 

11 October, 2017

ssh tunnel to gitlab

Filed under: ComputerStuff_en — Thalamus @ 15:14

Establish the http proxy tunnel ( don’t disconnect it )

$ ssh -L 8080:192.168.10.10:80 ssh-proxy-host ( 192.168.10.10 is running gitlab )

In another terminal, I can now use git over the localhost to the tunnel on port 8080

$ git clone http://localhost:8080/repo/repo.git
• • •