Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What filesystem is /media/Data, and now is it mounted (show "mount | grep Data")
pdbedit doesn't output anything. It's "sudo pdbedit -L", correct? According to the help for that command, that means that it is not outputting any users? Does that mean Samba doesn't see my user account?
My Data partition is fat32 because I can have Windows and Fedora read my personal files so I don't need to have two copies of them.
Here is the output of "mount | grep Data"...
Code:
/dev/sda5 on /media/Data type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)
Okay, I am now able to see my share in Windows when mapping the network drive but it still does not show up in My Network Places. Not a problem. However, I am asked for no user name and/or password when connecting. That bothers me.
Whenever I add "passdb backend = tdsam" to my config Windows is not able to connect to (or even see) my system at all.
Also, Samba is still not seeing any other computers on my network.
I'm sorry, that was my typo. I am now still able to connect to my Linux system from my Windows machine by mapping the network drive. My Linux system also now shows up My Network Places but I am still not able to connect to it that way. (Windows throws a "Network Path Not Found" error at me.) As before, that isn't a problem to me but I was still not asked for a user name or password when connecting.
On my Linux box, I can now see my Ubuntu and Windows systems and I can connect successfully to my Ubuntu box but when I click on my Windows system in Nautilus it loads for a few seconds then displays zero items.
Could this be due to me having Wins support enabled and Windows configured to look at my Linux system as a Wins server?
I think my smb.conf file has changed considerably enough to required a re-post of it.
Code:
# Global parameters
[global]
workgroup = SEPTAGON
netbios name = LESLIE
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
passdb backend = tdbsam
wins support = Yes
# Shares
[Data]
path = /media/Data
valid users = Shane
read only = No
guest ok = No
create mask = 0777
directory mask = 0777
Last edited by ESC201; 12-09-2008 at 07:45 PM.
Reason: adding smb.conf file
A couple of references I've managed to find suggest to me that if it isn't a firewall issue, then disabling wins support may fix it. Try commenting that out.
If that doesn't work, I think you need to ramp up the log level as see what the logs start to say (see man smb.conf and "log level")
I've removed Wins support and changed my config to include "log level = 3 all"
I still can't see my Windows machine but I am still able to see my Ubuntu system.
Here is my log file...
Code:
[2008/12/09 16:24:52, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 32495)
[2008/12/09 16:28:41, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/09 16:44:30, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 12131)
[2008/12/09 16:45:19, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/09 20:31:07, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 11071)
[2008/12/09 20:35:18, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/09 21:50:05, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 25071)
[2008/12/10 16:10:49, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 15811)
[2008/12/10 16:14:25, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/10 16:14:25, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/10 16:41:08, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 13141)
[2008/12/10 19:39:08, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
[2008/12/10 19:46:47, 0] lib/util_sock.c:write_data(1059)
[2008/12/10 19:46:47, 0] lib/util_sock.c:get_peer_addr_internal(1607)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2008/12/10 19:46:47, 0] smbd/process.c:srv_send_smb(74)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
[2008/12/10 19:46:47, 1] smbd/service.c:make_connection_snum(1190)
greg (::ffff:192.168.2.3) connect to service Data initially as user Shane (uid=500, gid=500) (pid 4824)
[2008/12/10 20:17:56, 1] smbd/service.c:close_cnum(1401)
greg (::ffff:192.168.2.3) closed connection to service Data
I am able to connect from Windows but only by mapping the network drive by using my IP and not my system's name and I am not asked for any user name or password when doing that.
From Linux, Samba can see my Windows system but when I click on it to view it's shares, nothing comes up.
Here is "smbclient -L 192.168.2.3"...
Code:
Enter Shane's password:
Domain=[GREG] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
Backup Printer Printer Backup Printer
Multifunction Printer Multifunction
Main Drive Disk
F$ Disk Default share
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer Main Printer
session request to 192.168.2.3 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[GREG] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.