Hi. I want to create directories and files under a specific directory with specific ownerships and permissions.
The problem is that I create directories in a hierarchy of images from digital cameras. My family members need to be able to access those across the network via samba shares. When I create a directory I dont want to have to chown it to make it accessible. I cant give the family members access to my own group (the default of mkdir). What I do now is as follows: First I create a top directory mkdir topdir chmod 775 topdir chown luke:bridge topdir cd topdir Is there a way to do the following without having to use chmod and chown mkdir subdir chmod -R 775 /topdir chown -R luke:bridge /topdir Ok. I know I can use umask to set the permissions. I want to be able to create a new subdir and be sure that it has the same ownership as topdir. Can anyone suggest a better solution? Thanks. Luke. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
