Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2007, 01:40 PM
severndigital severndigital is offline
Junior Member
 
Join Date: Oct 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default smb.conf problems .. back to square one
ok so I just setup a new server and want to make a folder shareable to a windows machine on the network.

I used the SAMBA selection in the networking directory of the command center in PC-BSD

I set all the domain information and also set the access level to share

I added a shared folder and typed in all the information required

I set the folder to Public Browseable Available

Then i applied the setting and rebooted the computer.

When i attempt to access the share ... all i get is an error

Why doesn't this work correctly??

I was only ever able to get SMB to work correctly ONCE before. God forbid i ever have to reboot that computer.

Does anyone have ANY suggestions on how to get a folder shared through samba correctly.

This is very frustrating.
Reply With Quote
  #2  
Old 07-02-2007, 02:59 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default
What error message are you getting?

Can you post your samba config file ( /usr/local/etc/smb.conf )

What is the output of sockstat -4 on the server?

What is in /var/log/samba/log.smbd ?
Reply With Quote
  #3  
Old 07-02-2007, 03:36 PM
severndigital severndigital is offline
Junior Member
 
Join Date: Oct 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default
i updated the version of samba on the server from the version that comes with PC-BSD to the newest one in the ports directory 3.0.25a i believe.

Once i restarted the machine I was able to view it on the network, but i am unable to access the share.

I get the following error

\\Rberry\joblist is not accessable. You may not have write permissions to use this network resource.

i chmod 777 the folder and still not working when I ran an ls -al i got this

Code:
drwxrwxrwx   5 www        wheel          512 Jul  1 10:57 joblist
here is the output of sockstat -4
Code:
raspberrysshd       2339  3  tcp4   192.168.0.7:22        192.168.0.8:2745
root     sshd       2245  3  tcp4   192.168.0.7:22        192.168.0.8:2745
root     sshd       781   4  tcp4   *:22                  *:*
mysql    mysqld     726   10 tcp4   *:3306                *:*
root     smbd       623   18 tcp4   *:445                 *:*
root     smbd       623   19 tcp4   *:139                 *:*
root     nmbd       619   6  udp4   *:137                 *:*
root     nmbd       619   7  udp4   *:138                 *:*
root     nmbd       619   8  udp4   192.168.0.7:137       *:*
root     nmbd       619   9  udp4   192.168.0.7:138       *:*
root     cupsd      578   0  tcp4   *:631                 *:*
root     cupsd      578   2  udp4   *:631                 *:*
root     syslogd    505   7  udp4   *:514                 *:*
this is the last several lines of the log.smbd file

Code:
[2007/07/02 11:22:45, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:45, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:46, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:22:46, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:23:00, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:23:00, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:23:00, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:23:00, 0] lib/debug.c:reopen_logs(625)
  Unable to open new log file /usr/local/samba/var/log.192.168.0.50: No such file or directory
[2007/07/02 11:23:00, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
the ip address it's referencing 192.168.0.50 is a windows XP machine in another part of the building that is in NO WAY being used in this debacle. This only say it's associated is that it is on the same network.

the ip address of the server itself is 192.168.0.7 so there is no conflict of ip addresses.

also, i am not sure what the incompatible error is all about.

any ideas would be great.

thanks,
chris
Reply With Quote
  #4  
Old 07-02-2007, 03:56 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default
1) Good to have the samba logs:

# mkdir -m 660 /usr/local/samba/var

and then restart samba

# /usr/local/etc/rc.d/samba restart

2) What are the permissions and owner:group of the parent directory of joblist?

3) Whats in your smb.conf ?

4)
Quote:
also, i am not sure what the incompatible error is all about.
Sounds like the client is authenticating itself even though the server is running as share not server.

5) Can you try from another machine? If so, is it an identical error?
Reply With Quote
  #5  
Old 07-02-2007, 04:12 PM
severndigital severndigital is offline
Junior Member
 
Join Date: Oct 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default
permissions of parent directory are

Code:
drwxrwxrwx  5 root  wheel   512 Jul  1 10:41 data
in my smb.conf file for this share I have the following

Code:
[joblist]
guest account =
case sensitive = no
guesk ok = yes
msdfs proxy = no
read only = no
path = /usr/local/www/apache22/data/joblist
Quote:
Sounds like the client is authenticating itself even though the server is running as share not server.

5) Can you try from another machine? If so, is it an identical error?
the client 192.168.0.50 is not being used here at all. It is simply on the network with the server I am running all tests and edits via SSH on ip address 192.168.0.8
Reply With Quote
  #6  
Old 07-02-2007, 04:28 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Try:
1) Change smb.conf to:
Code:
[joblist]
security = share
public = yes
browsable = yes
guest account = GUESTUSER
case sensitive = no
guest ok = yes
msdfs proxy = no
writable = yes
path = /usr/local/www/apache22/data/joblist
Make sure GUESTUSER exists as a user on the server (adduser if not)
Notice guest ok = yes not guesk ok = yes

Check the config file:

#testparm /usr/local/etc/smb.conf

Restart samba:
# /usr/local/etc/rc.d/samba restart

Try accessing again.

What is in /usr/local/samba/var/log.192.168.0.8?

Re: traffic with 0.50. AFAIK with windows sharing, all servers will broadcast "hello I'm a file server"
and all windows clients will broadcast "hello I'm a client with this user". I was writing a pf config file for my samba server, and there was a lot of udp traffic to let through.

(Edited)
Reply With Quote
  #7  
Old 07-02-2007, 07:01 PM
severndigital severndigital is offline
Junior Member
 
Join Date: Oct 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I made all of the changes you suggested and still nothing

also, here are the contents of log.192.168.0.8

Code:
[2007/07/02 12:06:13, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 12:06:55, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 12:07:20, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 14:11:29, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 14:13:46, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 14:48:03, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
[2007/07/02 14:48:14, 0] smbd/negprot.c:reply_nt1(317)
  reply_nt1: smb signing is incompatible with share level security !
if found the below results interesting but i also obviously don't exactly know what i am doing.

here is the new entry into smb.conf

Code:
[joblist]
security = share
public = yes
browseable = yes
guest account = GUESTUSER
case sensitive = no
guest ok = yes
msdfs proxy = no
writeable = yes
path = /usr/local/www/apache22/data/joblist
here are the results of testparm

Code:
Load smb config files from /usr/local/etc/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[joblist]"
Global parameter security found in service section!
Global parameter guest account found in service section!
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
i then hit enter and get this as the dump

Code:
[global]
        workgroup = INNERSANCT
        netbios name = RBERRY
        server string = RBERRY
        security = SHARE
        log file = /usr/local/samba/var/log.%m
        max log size = 50
        server signing = auto
        preferred master = No
        domain master = No
        dns proxy = No
        ldap ssl = no

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /usr/spool/samba
        printable = Yes
        browseable = No

[joblist]
        path = /usr/local/www/apache22/data/joblist
        read only = No
        guest ok = Yes
        case sensitive = No
        msdfs proxy = no
shouldn't the dump for the joblist share be the same as what is in the smb.conf file??

thanks for working on this with me.

chris
Reply With Quote
  #8  
Old 07-02-2007, 08:27 PM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
There is also the following thread for additional help:

http://forums.pcbsd.org/viewtopic.php?t ... hlight=901
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #9  
Old 07-02-2007, 08:56 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Ok, testparm is telling us we have config info in the wrong place, try:

Code:
 [global]
security = share
guest account = GUESTUSER
server signing = Disabled


[joblist]
public = yes
browseable = yes
case sensitive = no
guest ok = yes
msdfs proxy = no
writeable = yes
path = /usr/local/www/apache22/data/joblist
testparm ...
and restart samba again... :roll:
If it still doesn't work, try this procedure.
Reply With Quote
  #10  
Old 07-03-2007, 08:07 AM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: smb.conf problems .. back to square one
Originally Posted by severndigital
ok so I just setup a new server and want to make a folder shareable to a windows machine on the network.
If your shared directory got NTFS filesystem then it does not work. Why? Don't know. Copy files to native FreeBSD UFS filesystem.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question: relationship btwn loader.conf, rc.conf, kernel thenrie FreeBSD Help 8 11-02-2008 11:08 PM
Back Up gypsyjae General Questions 8 01-08-2008 02:00 PM
I'm back! :) GoldfrappJenny The Lounge 3 08-19-2007 12:27 AM
I'm Back! kmoore134 The Lounge 8 07-22-2006 06:15 AM
SKYPE SQUARE CHARACTER SOLVED!! UNOFFICIAL PATCH !! Amigamerlin PBI Discussion 11 06-29-2006 11:28 AM


All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.