1855926 Members
13726 Online
104107 Solutions
New Discussion

Re: ldap and .sh_history

 
someone_4
Honored Contributor

ldap and .sh_history

Hello everyone ..

I have an ldap env ..
each user does not have their own home dir but a shared directory. /eteam
i put a .profile in the directory eteam and added the .sh_history var

HISTFILE=/eteam/.sh_history
HISTSIZE=200000
export HISTFILE HISTSIZE

history is working .. i can use esc-k and i see the histry but there is no /eteam/.sh_history file.

Did i miss something ? what can i do to get a .sh_history file in the /eteam dir? If possible i would like it to be .user_sh_history.,

Thanks
Richard
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: ldap and .sh_history

If /eteam is NFS, then you will have BIG problems due to the need to perform file locking on the history file. Keep the shell history file local. And since there will be no way to sort out who typed what in a single file, setup your shell files this way:

export HISTFILE=/eteam/${LOGNAME}.sh_history
export HISTSIZE=1000
export EDITOR=/usr/bin/vi


Bill Hassell, sysadmin
someone_4
Honored Contributor

Re: ldap and .sh_history

Hi .. i tried that and it is still the same thing. History works .. but i dont see a history file in /eteam which is not an nfs mount.

richard