|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
csh/history/su problem
Hello,
I have a problem where the history is not written to disk. For example, user A logs into the machine and uses 'su -' to become root, if A does not logout properly but just closes his ssh client, the history is not saved. If A logs out from the machine properly, then closes the ssh client then the history is saved. Perhaps the shell could be killed when user closes the ssh client and it is not able to write history? Does anybody have a workaround? Thanks, Evren |
|
||||
What's your savehist setting in in the tcsh start file?
I've been using: Code:
set savehist = 4096 merge $ history -S is run "when exiting the shell". I'm not sure if losing a ssh connection is handled as a "proper" exit.You can try adding $ history -S to /etc/csh.logout, and you can of course also run it manually to save the history ...
|
|
|||
Quote:
However if I login as a normal user and then do a 'su -' and then close using X in the corner, the normal user seems to have his history saved but nothing he did when he was root was saved in root's history. If I logout from being root before closing with X, then root gets the .history file updated. I have the savehist set properly I believe and the csh manual says that this implies 'history -S' ... so that shouldnt be a problem either? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD the history of /usr | ocicat | News | 2 | 27th August 2010 06:55 PM |
Firefox history | J65nko | News | 0 | 4th May 2010 10:40 PM |
ksh history and rm * | JMJ_coder | General software and network | 0 | 20th January 2010 10:08 PM |
weird history problem | mmusang | FreeBSD General | 2 | 17th May 2008 07:07 PM |