Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-02-2003, 04:49 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2003
Distribution: Red Hat 8.0, 9.0
Posts: 26
Rep:
|
Samba - Create Mask/Mode
I've setup samba successfully and I am able to access those shares from my Win/2000 machine.
However in my smb.conf file I've included:
Create Mask 0775
Directory Mask 0775
for each of my shares.
However, whenever I create a new directory or file, it doesn't set them to match what i've specified in the Create Mask and Directory Mask line in my smb.conf file
Am I missing something?
I'm running Red Hat 9.0, Samba 2.2
|
|
|
|
08-04-2003, 06:18 PM
|
#2
|
|
LQ Newbie
Registered: Mar 2002
Distribution: Mandrake8.1
Posts: 18
Rep:
|
Samba Permissions
Add the following settings to the relevant share in your smb.conf
force user = reqd-user
force group = reqd-group
Replace the reqd-user and reqd-group to match your requirements. This will force samba to set the owner and group settings to a certain user of group. The create mask and directory mask settings will then set the permissions for the user and group specified.
Good Luck,
Jools
www.technojunkie.demon.co.uk
|
|
|
|
07-15-2004, 11:41 PM
|
#3
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
Re: Samba Permissions
Quote:
Originally posted by mormop
Add the following settings to the relevant share in your smb.conf
force user = reqd-user
force group = reqd-group
Replace the reqd-user and reqd-group to match your requirements. This will force samba to set the owner and group settings to a certain user of group. The create mask and directory mask settings will then set the permissions for the user and group specified.
Good Luck,
Jools
www.technojunkie.demon.co.uk
|
Is it like this?
Code:
create mask = 0777
directory mask = 0777
force user = subaruwrx
force group = subaruwrx
The folder permission was correct but the file permission is 766
P.S Whats the difference between create mode and create mask?
Last edited by subaruwrx; 07-15-2004 at 11:45 PM.
|
|
|
|
07-17-2004, 01:47 AM
|
#4
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
bump
|
|
|
|
07-18-2004, 06:40 AM
|
#5
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
bump
|
|
|
|
07-18-2004, 08:42 PM
|
#6
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
Anyone?
|
|
|
|
07-19-2004, 07:18 AM
|
#7
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
up
|
|
|
|
07-19-2004, 11:19 AM
|
#8
|
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
up
|
|
|
|
07-26-2004, 06:27 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2004
Location: Houston, Tx
Distribution: SUSE 9.0 Professional
Posts: 17
Rep:
|
Hi,
I was having similar issues that you had, so what I did use the 'force create mode' directives. Here's a copy of my smb.conf:
[global]
workgroup = Workgroup
os level = 2
hosts allow = 192.168.0.
time server = Yes
unix extensions = Yes
encrypt passwords = yes
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
security = user
server string = Samba Server
add user script =
domain master = false
domain logons = no
local master = no
preferred master = auto
;; ldap server = 127.0.0.1
[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
force create mode = 0755
force directory mode = 0755
create mask = 0755
directory mask = 0755
guest ok = no
printable = no
path = /home
[sandbox, web]
comment = The Webs Sandbox
path = /srv/www/htdocs
browseable = yes
guest ok = no
printable = no
available = yes
force create mode = 0755
force directory mode = 0755
force user = ken
force group = webprog
create mask = 0755
read only = no
Also notice, the order in which I use the force options is different from yours. Hope this helps.
-Ken
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|