How do I create public and private directories for new users?
by Varister from LinuxQuestions.org on (#5R1TZ)
I am trying to write a script to create a public and private directory for each newly created user in their home directories. I would like to change the ownership of the private directory to the user and their group, but only to be accessible by the user and no one else. I would like to change the ownership of the public directory to the user and their group and allow anyone to access the public directory. What commands or techniques would I use to create this?