unix - Issues while using script (typescript) command with rksh restricted ksh -
i have scenario want log every activity particular user. have script built around script command invoke user's .profile. requirement user should not able delete subsequent typescript file created. towards that, i've created user default shell of rksh , put restriction on commands can wipe file out. problem when login user, if call script script command, forked shell sh , not rksh. know if shell not set, forked shell /bin/sh default, have shell setup properly. how ensure forked shell rksh only?
if comment out call logger .profile, rksh shell. if manually issue script command, launches sh. appreciated.
thank you,
Comments
Post a Comment