LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-09-2008, 04:04 AM   #16
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122

Quote:
Originally Posted by awnun View Post
chcon -t samba_share_t /media/Data
If you bother to read the thread, we've already ruled SELinux out.

Why do you think NFS is an issue?

3 posts for no value is a new record I think!
 
Old 12-09-2008, 05:19 AM   #17
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Sorry -pdbedit not pbedit

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)
 
Old 12-09-2008, 05:27 AM   #18
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Exactly - so we need to know why smbpasswd -a didn't work

I don't think you need to explicitly define a password backend, but perhaps you do. Try adding

passdb backend = tdbsam

to smb.conf, and re-add the user.
 
Old 12-09-2008, 03:53 PM   #19
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
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.
 
Old 12-09-2008, 05:01 PM   #20
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is your windows username and password the same?

What ports did you open on your firewall? Make sure 137-139 and 445 are open for a start (although you don't actually need them all).


I'm good on the typos on this thread for some reason. Try tdbsam instead (remember to re-add the user).
 
Old 12-09-2008, 06:40 PM   #21
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Edit - unintentional double post

Last edited by billymayday; 12-09-2008 at 06:42 PM.
 
Old 12-09-2008, 07:43 PM   #22
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
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
 
Old 12-09-2008, 08:02 PM   #23
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd comment out the "map to guest" entry. It can't work anyway, since your only share won't accept guest logins.
 
Old 12-09-2008, 08:06 PM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I still suspect firewall issues.

See http://us3.samba.org/samba/docs/man/...#firewallports
 
Old 12-10-2008, 04:01 PM   #25
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
I've taken out the map to guest line and I've also just flat out disabled my firewalls on my Linux and Windows systems. Everything is still the same.
 
Old 12-10-2008, 04:29 PM   #26
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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")
 
Old 12-10-2008, 07:31 PM   #27
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
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
 
Old 12-10-2008, 07:54 PM   #28
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm not clear if you are connecting OK from windows.

What does

smbclient -L <hostname>

show?
 
Old 12-10-2008, 08:19 PM   #29
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
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
	---------            -------
 
Old 12-10-2008, 08:32 PM   #30
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If your authenticating to a domain as Shane, then it won't ask you for a password when you try to map a network drive - you're already authenticated.

Sounds like your names don't resolve properly. Can you ping from windows to linux using both hostname and ip?

I can't help on linux to windows - never use it myself.
 
  


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
cp from Windows XP/ntfs to Linux via samba problems ccee General 0 02-02-2008 11:44 AM
samba on fedora connects to linux machine but unseen on windows machines vyom Linux - Networking 5 07-04-2006 02:25 AM
Fedora Core 5, Samba and Windows 98 lbclinux Linux - Networking 1 05-28-2006 09:04 AM
samba + cups + windows xp + fedora c2 jonthelam Linux - Software 9 02-14-2006 12:05 PM
Problems sharing the printer on Linux via Samba to Windows computers melao SUSE / openSUSE 25 03-22-2005 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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