Article 5R1TZ How do I create public and private directories for new users?

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?latest?d=yIl2AUoC8zA latest?i=sSw-VLiOdH8:4D7LzDl7kBM:F7zBnMy latest?i=sSw-VLiOdH8:4D7LzDl7kBM:V_sGLiP latest?d=qj6IDK7rITs latest?i=sSw-VLiOdH8:4D7LzDl7kBM:gIN9vFwsSw-VLiOdH8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments