LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-07-2009, 11:14 PM   #1
terryyip
LQ Newbie
 
Registered: Apr 2005
Location: Hong Kong
Distribution: CentOS 5.3
Posts: 9

Rep: Reputation: 0
[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.
 
Old 06-08-2009, 12:12 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can't you just create separate shares for these?
 
Old 06-08-2009, 08:17 AM   #3
terryyip
LQ Newbie
 
Registered: Apr 2005
Location: Hong Kong
Distribution: CentOS 5.3
Posts: 9

Original Poster
Rep: Reputation: 0
Cool

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba and pam.d create a home directory sal_paradise42 Linux - Networking 0 04-08-2009 05:51 PM
Samba 'force create mode = 664' ignored (RHEL 5) hillersa Linux - Server 2 03-25-2009 06:34 AM
samba config: how to allow sub directory and file create pellicle Linux - Networking 1 03-16-2009 10:00 AM
use of samba to create a shared directory in slackware 10.2 geom06005 Linux - Newbie 2 01-27-2007 01:38 PM
Samba - Create Mask/Mode anilnatha Linux - Software 8 07-26-2004 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration