LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2009, 11:33 AM   #1
martinlangley
Member
 
Registered: Nov 2008
Posts: 69

Rep: Reputation: 0
Post Samba expert needed!


I have my very wonderful SUSE dell 486 machine
on the same ethernet as my even more wonderful
windows 2000 box and I WANT to allow windows to
use the 486 box disk drive which has lots of
unused space.

I have started samba on the SUSE box but have
had no luck with getting windows to see the
samba declared filesystem as ms-net shares.

Is there a step by step method of troubleshooting
this connection?

Thanks again you guys are the best

ML
 
Old 06-09-2009, 12:53 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by martinlangley View Post
Is there a step by step method of troubleshooting this connection?
Did you run "testparm" on the Linux machine? If you do not see any errors from "testparm", post the service definitions here. Also, post the contents of your "/etc/samba/smb.conf" file.

You did remember to use "smbpasswd" to add users and passwords to access the Samba shares, right?

You did remember to set the Samba "workgroup" to be the same as your Windows machine, right?
 
Old 06-09-2009, 04:49 PM   #3
unixmen
Member
 
Registered: Jan 2009
Posts: 39

Rep: Reputation: 16
what do u thing abouth this :


http://susewiki.org/index.php?title=Setting_up_Samba
 
Old 06-10-2009, 12:58 PM   #4
martinlangley
Member
 
Registered: Nov 2008
Posts: 69

Original Poster
Rep: Reputation: 0
OOOOOH thats nice thats nice thats nice!

smb.conf is.....

[global]
workgroup = arbeitsgruppe
guest account = nobody
keep alive = 30
os level = 2
security = user
printing = bsd
printcap name = /etc/printcap
netbios name = venus
load printers = yes

; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
interfaces = 192.168.1.21/255.255.255.0

; If you want Samba to act as a wins server, please set
wins support = yes
; 'wins support = no'

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
; wins server = 192.168.1.1

[homes]
comment = Heimatverzeichnis
browseable = no
read only = no
create mode = 0750

; The following share gives all users access to the Server's CD drive,
; assuming it is mounted under /cd. To enable this share, please remove
; the semicolons before the lines
;
; [cdrom]
; comment = Linux CD-ROM
; path = /cd
; read only = yes
; locking = no

[share1]
path = /home/eric

[printers]
comment = All Printers
browseable = no
printable = yes
public = no
read only = yes
create mode = 0700
directory = /tmp


and testparms output is......

Load smb config files from /etc/smb.conf
Processing section "[homes]"
Processing section "[share1]"
Processing section "[printers]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
debuglevel = 2
syslog = 1
syslog only = No
protocol = NT1
security = USER
max disk size = 0
lpq cache time = 10
announce as = NT
encrypt passwords = No
getwd cache = Yes
read prediction = No
read bmpx = Yes
read raw = Yes
write raw = Yes
use rhosts = No
load printers = Yes
null passwords = No
strip dot = No
interfaces = 192.168.1.21/255.255.255.0
bind interfaces only = No
networkstation user login = Yes
password server =
socket options =
netbios name = VENUS
netbios aliases =
smbrun = /usr/bin/smbrun
log file =
config file =
smb passwd file = /etc/smbpasswd
hosts equiv =
preload =
server string = Samba 1.9.18p4
printcap name = /etc/printcap
lock dir = /var/lock
root directory = /
default service =
message command =
dfree command =
passwd program = /usr/bin/smbpasswd
passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*
valid chars =
workgroup = ARBEITSGRUPPE
username map =
character set =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map =
announce version = 4.2
max log size = 5000
mangled stack = 50
max mux = 50
max xmit = 65535
max packet = 65535
name resolve order = lmhosts host wins bcast
packet size = 65535
password level = 0
username level = 0
keepalive = 30
deadtime = 0
time offset = 0
read size = 16384
shared mem size = 102400
coding system =
client code page = 850
os level = 2
max ttl = 14400
max wins ttl = 259200
min wins ttl = 21600
lm announce = Auto
lm interval = 60
dns proxy = Yes
wins support = Yes
wins proxy = No
wins server =
preferred master = No
local master = Yes
domain master = No
domain logons = No
browse list = Yes
unix realname = No
NIS homedir = No
unix password sync = No
time server = No
printer driver file = /etc/printers.def


# Default service parameters
comment =
copy =
include =
exec =
postexec =
root preexec =
root postexec =
alternate permissions = No
revalidate = No
default case = lower
case sensitive = No
preserve case = No
short preserve case = No
mangle case = No
mangling char = ~
browseable = Yes
available = Yes
path =
username =
guest account = nobody
invalid users =
valid users =
admin users =
read list =
write list =
volume =
force user =
force group =
read only = Yes
max connections = 0
min print space = 0
create mask = 0744
force create mode = 00
directory mask = 0755
force directory mode = 00
set directory = No
status = Yes
hide dot files = Yes
delete veto files = No
veto files =
hide files =
veto oplock files =
guest only = No
guest ok = No
print ok = No
postscript = No
map system = No
map hidden = No
map archive = Yes
locking = Yes
strict locking = No
share modes = Yes
oplocks = Yes
only user = No
wide links = Yes
follow symlinks = Yes
sync always = No
mangled names = Yes
fake oplocks = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
printer =
printer driver = NULL
printer driver location =
hosts allow =
hosts deny =
dont descend =
magic script =
magic output =
mangled map =
delete readonly = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No

[homes]
comment = Heimatverzeichnis
browseable = No
read only = No
create mask = 0750

[share1]
path = /home/eric

[printers]
comment = All Printers
browseable = No
path = /tmp
create mask = 0700
print ok = Yes

[lp]
path = /tmp
read only = No
create mask = 0700
print ok = Yes
share modes = No
oplocks = No
printer = lp

[IPC$]
comment = IPC Service (Samba 1.9.18p4)
path = /tmp
status = No
guest ok = Yes



--------------------------------------------

so far I must start the demon(s) manually and
have not added any user via smbpasswd. Is there anything else missing? also ipconfig on the windows box shows netbios over
tcpip to be disabled, but the NETBT service is running, -
does this make any sense?

Best

ML

Last edited by martinlangley; 06-10-2009 at 01:01 PM. Reason: complete
 
Old 06-10-2009, 01:57 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by martinlangley View Post
; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
interfaces = 192.168.1.21/255.255.255.0
Make sure this is the correct IP address. The Windows 2000 box is on the same subnet as the Linux box, right?

Quote:
Originally Posted by martinlangley View Post
[homes]
comment = Heimatverzeichnis
browseable = No
read only = No
create mask = 0750
Are you sure you do not want that to be browseable?

Quote:
Originally Posted by martinlangley View Post
[IPC$]
comment = IPC Service (Samba 1.9.18p4)
path = /tmp
status = No
guest ok = Yes
Wow. You are running a really old version of Samba. I have never seen this defined before.

Quote:
Originally Posted by martinlangley View Post
So far I must start the demon(s) manually...
You can make this automatic using "chkconfig" on RedHat based distros and "update-rc.d" on Debian based distros. I forget how Suse does it, but I think it uses "chkconfig".

Quote:
Originally Posted by martinlangley View Post
and have not added any user via smbpasswd.
You will need to do that. On old versions of Samba (like what you have), you can just run "cat /etc/passwd | smbpasswd > /etc/samba/smbpasswd".

Quote:
Originally Posted by martinlangley View Post
Also ipconfig on the windows box shows netbios over tcpip to be disabled, but the NETBT service is running, -
does this make any sense?
It has been a long time since I had to self-administer a Windows 2000 box, so I am not sure why NetBIOS over TCP is disabled. If I remember correctly, NETBT is the service for the original NetBIOS, which uses its own proprietary format. If you can enable NetBIOS over TCP, it might work better (and faster).

Let us know how it goes.
 
Old 06-11-2009, 11:38 AM   #6
martinlangley
Member
 
Registered: Nov 2008
Posts: 69

Original Poster
Rep: Reputation: 0
Have added a user with smbpasswd and changed the
[homes] section as suggested. Am now experimenting
with smbclient but need some clarification to get a
functioning command string.

bash-2.01# smbclient -L -I192.168.1.21
Added interface ip=192.168.1.21 bcast=192.168.
cli_open_sockets: Unknown host -I192.168.1.21.

The surprising thing is that the linux machine now
seems incapable of pinging itself thus:

bash-2.01# ping 192.168.1.21
PING 192.168.1.21 (192.168.1.21): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.1.21 64 chars, ret=-1
ping: sendto: Network is unreachable

even curiouser is that from the windows box all is
well!

C:\>ping 192.168.1.21

Pinging 192.168.1.21 with 32 bytes of data:

Reply from 192.168.1.21: bytes=32 time<10ms TTL=64
Reply from 192.168.1.21: bytes=32 time<10ms TTL=64
Reply from 192.168.1.21: bytes=32 time<10ms TTL=64
Reply from 192.168.1.21: bytes=32 time<10ms TTL=64

Ping statistics for 192.168.1.21:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

gun & fames huh! seems to be some progress in any event
 
Old 06-11-2009, 12:31 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by martinlangley View Post
Code:
bash-2.01# smbclient -L -I192.168.1.21
This is probably wrong.

Here's the description of "-L" from the man page:
Code:
       -L
           This option allows you to look at what services
           are available on a server. You use it as
           smbclient -L host and a list should
           appear. The -I option may be useful if your
           NetBIOS names don't match your TCP/IP DNS host
           names or if you are trying to reach a host on
           another network.
Try
Code:
bash-2.01# smbclient -L localhost
or
Code:
bash-2.01# smbclient -L venus
Make sure you run this after "service start smb" or "/etc/init.d/smb start", whichever is appropriate for your distro.
 
  


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
Usermod expert, help needed. acctman Linux - Newbie 5 03-29-2009 06:54 PM
expert help needed with bash and bc karistouf Programming 5 06-22-2005 12:55 AM
X11 Expert Needed hilltop*Tech Linux - Hardware 4 06-10-2005 09:11 AM
bash expert help needed illtbagu Programming 15 10-05-2004 08:15 PM
Security Expert needed Lloydlec Linux - Security 1 04-27-2004 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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