LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-06-2006, 05:48 PM   #1
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15
Windows crashes when entering Samba shares


Ok. I have installed Fedora Core 6 on my server (clean install) and wanted to setup samba to enter my shares on the server (and printing etc but thats another story).

I moved from RH9, so Fedora is a bit new for me, but I suggested that I could use my old smb.conf file.

This is my smb.conf file as far as it is now.

Code:
[global]
    workgroup = workgroup
    server string = Linux Server
    hosts deny = ALL
    hosts allow = 192.168.1. 127.
    log file = /var/log/samba/%m.log
    max log size = 1000
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    bind interfaces only = True
    interfaces = eth0 192.168.1.1/32
    encrypt passwords = Yes

[Server downloads]
    path = /downloads
    public = Yes
    guest ok = Yes
    browsable = Yes
    writable = Yes
    printable = No

[Shared]
    path = /mnt/shared
    public = Yes
    guest ok = Yes
    browsable = Yes
    writable = Yes
    printable = No
So after restarting Samba I went to my local network inside Windows,a nd the Linux server was listed between the others. I can also enter the server to see its shares. Now here's the strange thing. I can enter the [Server downloads] folder whithout any problems (only thing is I can't write files but thats a problem for later), but when I enter the [Shared] folder my windows explorer crashes.

The [Shared] folder is, as you can see, a mounted partition (/dev/hdb1). I can enter and read the contents of this folder whithout any problems via my linux server self. On my previous config (using RH9) this also was a mounted partition (worked whitout problems).

This is an output of the log files:

smdb.log
Code:
[2006/11/07 02:03:57, 0] smbd/server.c:main(847)
  smbd version 3.0.23c-2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/11/07 02:15:56, 0] smbd/server.c:main(847)
  smbd version 3.0.23c-2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/11/07 02:16:00, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
[2006/11/07 02:16:00, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
[2006/11/07 02:19:32, 0] smbd/server.c:main(847)
  smbd version 3.0.23c-2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
And here a part of the log with my (windows) computers name:
Code:
[2006/11/07 02:16:09, 0] smbd/service.c:make_connection_snum(911)
  '/mnt/shared' does not exist or permission denied when connecting to [Shared] Error was Permission denied
[2006/11/07 02:16:09, 0] smbd/service.c:make_connection_snum(911)
  '/mnt/shared' does not exist or permission denied when connecting to [Shared] Error was Permission denied
[2006/11/07 02:16:10, 0] smbd/service.c:make_connection_snum(911)
  '/mnt/shared' does not exist or permission denied when connecting to [Shared] Error was Permission denied
[2006/11/07 02:16:11, 0] smbd/service.c:make_connection_snum(911)
  '/mnt/shared' does not exist or permission denied when connecting to [Shared] Error was Permission denied
[2006/11/07 02:16:12, 0] smbd/service.c:make_connection_snum(911)
  '/mnt/shared' does not exist or permission denied when connecting to [Shared] Error was Permission denied
[2006/11/07 02:16:14, 0] smbd/service.c:make_connection_snum(911)
I'm not sure what I'm doing wrong because this used to be a good working config with no probs.
 
Old 11-06-2006, 06:56 PM   #2
hockeyman_102
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
Try mounting the drive. Or setting up the exact same user on both machines with access. I've never had windows crash, but I've had it stutter with permissions. I had to mount the drive with what user and password I needed.
I know this isn't a windows forum, but here:
windows_cmd:>net use x: \\Linux\pub /user:hockeyman MyPassword
that should be easier on your OS.
 
Old 11-07-2006, 04:13 PM   #3
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
This doesnt help.
 
Old 11-07-2006, 05:03 PM   #4
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
I'm not sure if this is going to help, but my linux server puts a lot of the following error code in the console whenever I'll try to access the [Shared] folder.

Code:
audit(1162947111.200:65): avc:  denied  { search } for  pid=2007 comm="smbd" name="/" dev=hdb1 ino=2 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir
audit(1162947111.204:66): avc:  denied  { search } for  pid=2007 comm="smbd" name="/" dev=hdb1 ino=2 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir
Notice (not sure if its important) that the last few numbers behind the "audit" (audit(...200:65)) change. The rest of the message is the same.
 
Old 11-08-2006, 05:57 PM   #5
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
The problem has been sold by disabling SELinux.
 
  


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 shares and windows xp highfructose Linux - Software 1 05-08-2005 02:22 AM
samba shares and windows xp highfructose Linux - Software 0 05-07-2005 05:50 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
Windows ME cannot see Samba shares danedwards11 Linux - Software 7 08-14-2004 06:40 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM

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

All times are GMT -5. The time now is 10:01 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