Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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?
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?
[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
; 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
[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
[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
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
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
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).
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.
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
-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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.