LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-15-2015, 06:14 AM   #1
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Rep: Reputation: 21
weard smb.conf isue...


hope i am correct here in this section.

smb configs come in many flavours.
and every config is uniqe, just like mine.

here a overview of mine

Code:
# Samba config file created using SWAT
# from UNKNOWN (192.168.0.238)
# Date: 2015/04/13 14:09:12

[global]
	workgroup = ADDICTS
	netbios name = filestuff
	server string = Samba Server %v
	interfaces = re0
	bind interfaces only = Yes
	security = SHARE
	guest account = root
	ntlm auth = No
	log file = /var/log/samba/smbd.%m
	max log size = 50
	socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	dns proxy = No
	winbind nss info = 
	idmap config * : range = 
	idmap config * : backend = tdb

[usertuff]
	comment = public stuff
	path = /data/public
	force user = root
	read only = No
	guest ok = Yes
	writeable = yes
	valid users = root, nobody
	browseable = yes
	public = no
	force directory mode = 0744
	force create mode = 0644
the goal, to make shares that log in users with a name and password, yes i know i am burning my hands with this,but it should work.
machine is configed for use as router on the local computerclub ,and i want to give some people access to data.

now the isue.
i know 0744 should be RWX R R
and 644 should be RW R R

but for some stupid reason all file are also 0744 and not 0644
google didnt gave usefull help, so any one a idea what i am doing wrong.
above config is just a test setup.
 
Old 04-16-2015, 06:59 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,690

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The documentation may not be clear but the two directives that define permissions are create mask and force create mode. In a nutshell create mask takes permissions away and force create mode adds them. By default create mask is 744. If you add create mask=0644 to your share it should work as expected.

https://www.samba.org/samba/docs/man...mb.conf.5.html

Now, you have public = no, guest ok = yes and valid users = nobody. Not sure how samba determines precedence but would guess it ends up being a public share which is not what you wanted. security = share is deprecated.
 
Old 04-17-2015, 06:30 AM   #3
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Original Poster
Rep: Reputation: 21
i know my setings are, unlogical, but i prefere login with username and password AFTER they entered the machine, bcouse of public stuff, and non public stuff.
i retry the settings....
thnxs,
 
Old 04-23-2015, 06:15 AM   #4
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Original Poster
Rep: Reputation: 21
sorry late responce, but i screwed up my machine xD
didnt work in the 1st place, but that was becouse i also used inherit permissions = yes (ups...)
i can call this case solved !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
interesting named isue again, cant write log files.....and a weard rndc thing spatieman *BSD 14 07-12-2012 10:59 AM
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
openBSD alt-Q weard isue. spatieman *BSD 0 01-05-2010 09:40 AM
openBSD 4.4 dhcpd.conf, weard thing ? spatieman *BSD 2 01-05-2010 09:25 AM
[SOLVED?] SMB weard behaveure, resolving IP instead DNS name.. spatieman Linux - Networking 3 11-15-2009 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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