|
Re: command history [message #22210 is a reply to message #22180] |
Tue, 23 October 2007 14:35 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi,
i might misunderstand you, but shell history is enabled inside a VE by default. History is saved in .bash_history (or other file if you use another shell) and if a user doesn't change HISTFILE, HISTSIZE/HISTFILESIZE environment variables the history will be logged.
i'd note that this is true if a user logged into the VE via ssh, not via "vzctl enter". "vzctl enter" sessions are not logged and these sessions are not a "user" shell sessions.
Best regards,
Konstantin.
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
Re: command history [message #22265 is a reply to message #22210] |
Wed, 24 October 2007 10:29 |
nethubonline
Messages: 26 Registered: October 2007
|
Junior Member |
|
|
>> i'd note that this is true if a user logged into the VE via ssh, not via "vzctl enter". "vzctl enter" sessions are not logged and these sessions are not a "user" shell sessions.
wow, the truth is like this, thank you for your note which make me clear why i always cannot see history, really thanks a lot.
https://www.nethub.com.hk (VPS Hosting Provider in Hong Kong)
|
|
|
Re: command history [message #22324 is a reply to message #22265] |
Thu, 25 October 2007 13:53 |
Valmont
Messages: 225 Registered: September 2005
|
Senior Member |
|
|
Yeah, "vzctl enter" is just "backdor" and should not be used in normal situation to admin vps. But if it realy needed, then you can do su - after vzctl enter to setup variables of environment, so you could use history and other things as usualy.
|
|
|