Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
administrating remote server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 211

PostPosted: Mon Dec 28, 2015 6:53 pm    Post subject: administrating remote server Reply with quote

Hi there.

I started to administrate remote MySQL server using vncviewer --via <gateway> witch allowes ssh tunnel. Connection was ok and I wanted to use several commands. Everything worked without any problems. At the end I used
Code:
shutdown -h now
as root and the box shut down.
When I switched remote machine on again, bash history of connected user was cleaned.
Does it mean that I shouldn't use root's privileges on the remote machine?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5883

PostPosted: Mon Dec 28, 2015 11:33 pm    Post subject: Reply with quote

You should log out first if you want that session's history to be saved. Bash only does so on a clean exit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum