LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Samba] multiple create mode for different directory (https://www.linuxquestions.org/questions/linux-server-73/%5Bsamba%5D-multiple-create-mode-for-different-directory-731335/)

terryyip 06-07-2009 11:14 PM

[Samba] multiple create mode for different directory
 
I would like to create a share folder with Samba. A share folder "terry" will map to "/home/terry". For security reason, the default create mode is 0600. But there is an exception for /home/terry/public_html. /home/terry/public_html will be used to put my website so I hope the create mode would be set to 0644 for this particular directory. Any ideas?

For exmaple:
/home/terry/private/* (private directory, so the create mode should be 0600)
/home/terry/public_html/* (public directory, so the create mode should be 0644)
/home/terry/privateFILE (private FILE, so the create mode should be 0600)



I've set /home/terry to 755 with chmod.

I'm sorry for my poor English. I hope you can understand. :)

billymayday 06-08-2009 12:12 AM

Can't you just create separate shares for these?

terryyip 06-08-2009 08:17 AM

Thank you for your reply. I'm currently using this method. However, if I've several directories with different permissions, I need to map several network drives in the client Windows.

So, I would like to know any better ways. :)


All times are GMT -5. The time now is 05:52 PM.