LinuxQuestions.org
Visit Jeremy's Blog.
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 11-05-2006, 03:58 AM   #1
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 79

Rep: Reputation: 20
Problems conneting to my samba shares.


My samba recently stopped working for some reason. Now, when I try and connect to the linux shares I see in my network neigborhood in windows I get "\\brits\share is not accessible.You might not haver permission to use this network resource." It didn't do this before. It would prompt me for user name and password. I noticed the title bar in windows for the share I"m trying to connect to shows:
host birts Version 3.03.23c for 0.0.0.0 (brits).

It seems to be translating to the 0.0.0.0 ip for some reason.
My netstat -tupan shows my ssh running on two ports.
Code:
root@brits:/var/log# netstat -tupan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     29969/smbd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     1376/portmap
tcp        0      0 0.0.0.0:56500           0.0.0.0:*               LISTEN     1760/rpc.statd
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     29969/smbd
tcp        0      0 10.16.0.52:445          10.16.0.50:2631         ESTABLISHED30010/smbd
I can connect to and print to my samba CUPS shared printer connected to my linux box but not the shares anymore. I don't know what happened. I also get these errors in my /var/log/syslog area when I try to connect to the shares.

Code:
Nov  5 02:45:24 brits gconfd (styles-30112): Resolved address "xml:readonly:/var/lib/gconf/debian.defaults" to a read-only configuration source at position 3
Nov  5 02:45:24 brits gconfd (styles-30112): Resolved address "xml:readonly:/var/lib/gconf/defaults" to a read-only configuration source at position 4
I tried to recreate the smb.conf with user and share level security to no avail. I tried turning on my guest acct in windows. I don't have any firewall running on linux and iptables -L shows all open. I also tried adding the line in smb.conf to use only port 139. I stopped and restarted samba but got the same error in windows. Any all ideas appreciated. This has been causing me a headached for weeks and I don't want a reload. I've searched a lot put can't pinpoint the issue. TBH!
 
Old 11-05-2006, 10:01 AM   #2
mlsx
LQ Newbie
 
Registered: Oct 2006
Location: china
Distribution: RedFlag
Posts: 16

Rep: Reputation: 0
can you connect your samba server in your localhost?
try
smbclient //localhost//share

what you get ?

also,you can post your smb.conf file

by the way ,do you add some account to your smbpasswd?
 
Old 11-06-2006, 08:13 AM   #3
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 79

Original Poster
Rep: Reputation: 20
Hi, I haven't tried any smbclient or mount commands. I'm trying to connect from my windows XP machine so I can't run smbclient.

Here's my smb.conf file:
Code:
workgroup = NONYA
server string = host %h Version %v for %I
map to guest = Bad User
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
character set = ISO8859-1
printcap name = cups
printing = cups
guest ok = yes
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
guest account = styles

[printers]
printer admin = styles
comment = ALL Printers
browseable = no
path = /var/tmp
printable = yes
guest ok = no
create mask = 0700

[Unnamed]
case sensitive = no
strict locking = no
msdfs proxy = no
path = /home/styles
I guess I'm going to have to do another reload again. I'm no good with keeping a working linux box. *HUGE SIGH***
 
Old 11-08-2006, 03:17 AM   #4
mlsx
LQ Newbie
 
Registered: Oct 2006
Location: china
Distribution: RedFlag
Posts: 16

Rep: Reputation: 0
I test samba server using your smb.conf file ,It did not work ,and I get some error information in log file (/var/log/samba/*.log) ,some basic syntax error inclued.

the following smb.conf is used in my linux box(samba-3.0.14a),it work well,I can connect it in windows XP sp2.
ok,it is
Code:
[global]
    display charset = GB18030
    encrypt passwords = yes
    idmap uid = 16777216-33554431
    dos filetime resolution = yes
    printing = cups
    security = user
    # = ========= Share Definitions ==============
    passdb backend = smbpasswd
    workgroup = MYGROUP
    null passwords = yes
    template shell = /bin/false
    # use password server option only with security = server
    server string = Samba Server
    nt acl support = no
    dos charset = CP936
    unix charset = GB18030
    max log size = 50
    netbios name = Asianux
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    winbind use default domain = no
    idmap gid = 16777216-33554431
    dos filetimes = yes
    # workgroup = NT-Domain-Name or Workgroup-Name
[printers]
    comment = All Printers
    writeable = no
    guest ok = no
    # set public = yes to allow user 'guest account' to print
    browseable = no
    path = "/var/spool/samba"
    printable = yes
[WinC]
    comment =
    writeable = no
    guest ok = no
    path = "/media/WinC"
    admin users = root
    write list = root
    valid users = root
try it again.good luck!
 
Old 11-09-2006, 09:07 PM   #5
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 79

Original Poster
Rep: Reputation: 20
Thanks a lot mlsx! It's been a crazy week so I haven't had a chance to try this. I might just try a fresh reload. I'll let u know how it goes. Regards, Chris
 
  


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
Problems modifying Samba Shares from Linux twac Linux - Software 7 03-21-2006 01:50 PM
problems accessing samba shares psycode Linux - Software 2 01-26-2006 03:59 PM
Samba problems -> can't acess to shares in Windows JoaoMorgado Linux - Software 2 12-27-2005 06:08 PM
Problems with mounted Samba shares Fozza Linux - Software 1 12-09-2004 04:00 PM
Problems mounting samba shares nairnie Linux - Software 3 11-28-2003 07:34 AM

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

All times are GMT -5. The time now is 07:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration