One Comment

  1. This is not the right way to get the home directory in the shell scripts. This would not fail even when there is no user with the given name available. The best way is to either user getent or by using awk to get it from the /etc/passwd file

Leave a Reply

Your email address will not be published. Required fields are marked *