Автор Тема: Samba настройка  (Прочетена 2283 пъти)

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« -: Aug 02, 2006, 22:46 »
Не виждам другите компютри в мрежата чрез самба. Конфигурирах я през контрол центъра на КДЕ, но нищо
Slackware10.2



Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

alabal

  • Напреднали
  • *****
  • Публикации: 2173
  • cat /earth/europe/bg/sofia | grep Nacamura
    • Профил
Samba настройка
« Отговор #1 -: Aug 03, 2006, 01:34 »
Все едно нищо не каза, братко!
Какво толкоз конфигурира? Къде е конфигурационният файл или какво натиска по копчетата на KDE Control Center? Да не питам за излишните демони lisa и  reslisa? Или пък може би трябва да се задълбочим с над 300 страници Samba Official Howto?
250 поста и две години присъствие във форума не са ли достатъчни да се научим да задаваме въпроси'<img'>??



Активен

It makes you awful glad that you were born a man.

the_real_maniac

  • Напреднали
  • *****
  • Публикации: 1258
  • Kernel panic, me - no panic ;-) :-)
    • Профил
Samba настройка
« Отговор #2 -: Aug 03, 2006, 08:41 »
alabal: аз отдавна не ползвам KDE и по спомен знам че имаше също само настройка на LISA, но след едно google search се оказа , че в KоntrolCenter-а имало модул/plugin за настройка на самбата, но не помня от коя версия нагоре за КДЕ беше.

harleybg:

alabal е прав, дай си конф. файл все пак / най-малкото.

За да можеш да достъпваш други шерове е нужно простичък / някакъв даже мога кажа / конф. файл съдържащ единствено workgroup, netbios name , но мисля и да няма ще приеме стойности по подразбиране. (трябва да пробвам)

След това просто тряба да са стратирани smbd и nmbd.
От там вече някакъв smb-browser. Но най-добре проверявай с smbclient.

Също провери дали портовете не са филтрирани за smb/netbios и т.н.

пп: това вече ти го бях написал по skype, но така и не разбрах какво направи след това, а го пиша тук с мисълта че може да помогне и на някои друг.
Активен

Powered by Debian GNU / LINUX /// Intel inside ...

„Насилието е последното убежище на некомпетентността“ - Айзък Азимов (1920 — 1992)

Hapkoc

  • Напреднали
  • *****
  • Публикации: 2117
    • Профил
Samba настройка
« Отговор #3 -: Aug 03, 2006, 09:27 »
Аз не че съм експерт по настройване на samba, но [sn]mbd не ти ли трябват само ако искаш да споделяш директории от твоята машина? Все ми се чини, че само за достъпване на споделените ресурси на другите машини ти трябва само samba клиент...
Активен

nannygoat

  • Напреднали
  • *****
  • Публикации: 40
    • Профил
Samba настройка
« Отговор #4 -: Aug 03, 2006, 12:04 »
Цитат (Hapkoc @ Авг. 03 2006,09:27)
Аз не че съм експерт по настройване на samba, но [sn]mbd не ти ли трябват само ако искаш да споделяш директории от твоята машина? Все ми се чини, че само за достъпване на споделените ресурси на другите машини ти трябва само samba клиент...

Именно, поне при мен всички необходими действия бяха да инсталирам samba и smbfs пакетите, след което да редактирам workgroup в /etc/samba/smb.conf. Не знам доколко обаче тези действия са адекватни в Slack.



Активен

Това е просто работа. Тревата расте, птичките летят, вълните галят пясъка. Аз пребивам хора." - Мохамед Али

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« Отговор #5 -: Aug 03, 2006, 12:37 »
Извинявам се, че съм забравил да дам конфигурационния файл на самбата, Снощи бях много уморен. Ето го:
Примерен код
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba HOWTO Collection.
#
# Any line which starts with a; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = Samba Server

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the HOWTO Collection for details.
security = server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.0. 192.168.2. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes

# you may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
;   printcap name = lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = <NT-Server-Name>

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
;   realm = MY_REALM

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
;   passdb backend = tdbsam

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
#       this line.  The included file is read at that point.
;   include = /usr/local/samba/lib/smb.conf.%m

# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#   Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one   WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
local master = no

[NEW FOLDER]
path = /home/ivaylo/Desktop/New Folder
guest ok = yes
case sensitive = no
strict locking = no
msdfs proxy = no


Когато стартирам lisaта могa да разгелждам мрежата, но само мойта работна група. За да работи самбата не е необходима lisa
А в първи пост забравих да спомена, че със самбата отварям само работните групи, но в тях няма компютри. Излиза съобщение: Time out on server



Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

Italianeca

  • Напреднали
  • *****
  • Публикации: 386
    • Профил
Samba настройка
« Отговор #6 -: Aug 03, 2006, 13:20 »
Не съм ползвал КДЕ от години но при Гном ако напишеш в адрес полето на nautilus "smb://ip.adres/" става номера.

Поздрави
Активен

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« Отговор #7 -: Aug 03, 2006, 20:21 »
Като напиша това нищо не ми се отваря.
Пише ми Time out on server



Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

choko

  • Напреднали
  • *****
  • Публикации: 64
  • Distribution: Slackware 9,10,11,12,13
  • Window Manager: Gnome
    • Профил
Samba настройка
« Отговор #8 -: Aug 03, 2006, 20:25 »
Здравей !
смени това:
security = server
със това
security = user
и рестартирай самбата

Успех............................;)
Активен

Ползвай Linux! От четене по форумите не остава време за секс;)
И пак по-добре!!!!!!!!!!!!!!!! :))))))))))))))))))))))))))))))))))))))))))))

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« Отговор #9 -: Aug 03, 2006, 21:03 »
Цитат (choko @ Авг. 03 2006,21:25)
Здравей !
смени това:
security = server
със това
security = user
и рестартирай самбата

Успех............................;)

Браво!!!
Това е начина  '<img'>
Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« Отговор #10 -: May 19, 2007, 18:52 »
Здравейте,
Oтново имам същия проблем. Не виждам компютрите в мрежата. Ето конфига:
Примерен код


#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = PC


# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the HOWTO Collection for details.
security = user

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.0. 192.168.2. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes

# you may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
;   printcap name = lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = <NT-Server-Name>

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
;   realm = MY_REALM

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
;   passdb backend = tdbsam

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
#       this line.  The included file is read at that point.
;   include = /usr/local/samba/lib/smb.conf.%m

# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#   Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one   WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
local master = no
acl compatibility = winnt


Това може да е станало след като мигрирах на 2.6 ядро. Не знам. Само предполагам.



Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

alabal

  • Напреднали
  • *****
  • Публикации: 2173
  • cat /earth/europe/bg/sofia | grep Nacamura
    • Профил
Samba настройка
« Отговор #11 -: May 19, 2007, 22:45 »
Пробвай да разкоментираш тези редове:
Цитат
hosts allow = 192.168.0. 192.168.2. 127.
и hosts allow = 192.168.0. 192.168.2. 127.

които са коментирани с ";" и ги настрой с твоя адрес/мрежа. Дано се получи.
Едва ли проблемът може да се получи от ядрото.
Активен

It makes you awful glad that you were born a man.

HarleyBG

  • Напреднали
  • *****
  • Публикации: 375
    • Профил
Samba настройка
« Отговор #12 -: May 20, 2007, 10:42 »
Проблема се оправи сам. Без нищо да съм пипал.
Активен

AMD Duron 800MHz, 256 MB DDR, K7S5A, VC GeForce2 32MB, HDD WD20GB

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
Samba
Настройка на програми
mozly 4 10005 Последна публикация Sep 24, 2002, 18:18
от mozly
Samba
Настройка на програми
mozly 9 10283 Последна публикация Oct 05, 2002, 17:17
от ShAnTaV
Samba
Настройка на програми
tzarew 1 7761 Последна публикация Nov 12, 2002, 23:36
от brady
Samba
Настройка на програми
tzarew 2 7816 Последна публикация Nov 09, 2002, 21:07
от CaBA
samba
Настройка на програми
mozly 1 6052 Последна публикация Nov 25, 2002, 23:22
от n_antonov