Skip to main content

Do not fill user's home folder

Comments

6 comments

  • cPanelMichael
    Hello, There's the "Skeleton Directory" feature, but using that that won't prevent the creation of every directory and file. Could you let us know what bash script you are using and how you have implemented it? Thank you.
    0
  • Fearghal
    Hi Michael Thanks, yes ive tried to use the skeleton directory but it still creates all the other files. I would like there to be nothing inside the users folder. I tried the following command inside postwwwacct: rm -rf /home/virtfs/home/$user/* The above command does not work. Any help would be great!
    0
  • cPanelMichael
    Hello, You should not modify or remove files directly from the VirtFS directory. It can result in serious problems with your file system. This is documented at:
    0
  • Fearghal
    Hi Michael, thanks for that. I have placed the script in all 3 of the locations specified in the account creation output but none of them are calling the script. Running post creation scripts (/usr/local/cpanel/scripts/legacypostwwwacct, /usr/local/cpanel/scripts/postwwwacct, /usr/local/cpanel/scripts/postwwwacctuser)......Done The script is #!/bin/bash wall called I am not getting any broadcasts after creating an account. Do you know why this script is not running? Thanks
    0
  • Fearghal
    Update: Hi Michael, I was able to resolve the issue using your standardized webhooks. Everything is working for me now. Thanks for your help.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.