PAMSC r14.01: .bash_profile , .bash_logout , .bashrc etc files are not getting created

Document ID : KB000098954
Last Modified Date : 22/06/2018
Show Technical Document Details
Issue:
While creating users via selang file like .bash_profile , .bash_logout , .bashrc etc.. are not getting created. When tested using normal useradd command it seems to be working fine. 

[root@gomer02-F15717 AccessControl]# find / -name .bash_profile 
/home/lod/.bash_profile 
/home/lodadmin/.bash_profile 
/home/local_user1/.bash_profile 
/home/gomer02/.bash_profile 
/etc/skel/.bash_profile 
/root/.bash_profile 

[root@gomer02-F15717 AccessControl]# selang 
CA Privileged Access Manager Server Control selang v14.01.0.412 - CA Privileged Access Manager Server Control command line interpreter 
Copyright (c) 2016 CA. All rights reserved. 

AC> list user 
(localhost) 
+devcalc 
+policyfetcher 
+reportagent 
_seagent 
_sebuildla 
_seoswd 
_undefined 
local_user1 
nobody 
root 

AC> list xuser 
(localhost) 
gomer02 
gomer02srv.local\gomer02 (this was used for my PAMSC + PAM Login Integration which is a LDAP account). 

There are no .bash_profile , .bash_logout , .bashrc, etc., being created for users who are created in selang first.
Resolution:
You can use "Unix exits" feature available in ControlMinder UNIX endpoints to execute scripts once user creation command successful via selang, so that you can push the profile files using a small script.