Вход через samba

Cent OS, Scientific Linux

Модератор: Модераторы разделов

Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Вход через samba

Сообщение materazzo »

После настройки Samba при входе в сетевое окружение на fedora 13 появился MYSERVER. Я расшарил папку но от меня требуют пароль для входа в эту папку.Пробовал и ставить пароль в настройках и убрать его совсем, ничего не получается. Что делать? Спасибо!
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
10.06.2010 11:54
После настройки Samba при входе в сетевое окружение на fedora 13 появился MYSERVER. Я расшарил папку но от меня требуют пароль для входа в эту папку.Пробовал и ставить пароль в настройках и убрать его совсем, ничего не получается. Что делать? Спасибо!

Как настраивали? Руками? В /etc/smb.conf в разделе с этой шарой есть строка?

Код: Выделить всё

guest ok=yes
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

ffldove писал(а): ↑
10.06.2010 16:12
materazzo писал(а): ↑
10.06.2010 11:54
После настройки Samba при входе в сетевое окружение на fedora 13 появился MYSERVER. Я расшарил папку но от меня требуют пароль для входа в эту папку.Пробовал и ставить пароль в настройках и убрать его совсем, ничего не получается. Что делать? Спасибо!

Как настраивали? Руками? В /etc/smb.conf в разделе с этой шарой есть строка?

Код: Выделить всё

guest ok=yes



да руками настраивал. Yes стоит. MYSERVER пропал и осталась только сеть Windows. Может мне выслать конфу?
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
11.06.2010 09:35
да руками настраивал. Yes стоит. MYSERVER пропал и осталась только сеть Windows. Может мне выслать конфу?

Да видимо придется.

ПС
А в сети Windows вы есть? В nautilus в сетевом окружение (если правильно настроена samba) вы должны быть видны и в сети Windows тоже.
Что говорит smbtree? Ваши и чужие шары видны?

ПС
В секции global должны быть строки:

Код: Выделить всё

[global]
        security=share
        guest ok = yes
        guest account = nobody

Шара которая видна и в которой все можно:

Код: Выделить всё

[share]
    path = /home/user/share
    writeable = yes
    guest ok = yes

Взято от сюда
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

ffldove писал(а): ↑
11.06.2010 15:44
materazzo писал(а): ↑
11.06.2010 09:35
да руками настраивал. Yes стоит. MYSERVER пропал и осталась только сеть Windows. Может мне выслать конфу?

Да видимо придется.

ПС
А в сети Windows вы есть? В nautilus в сетевом окружение (если правильно настроена samba) вы должны быть видны и в сети Windows тоже.
Что говорит smbtree? Ваши и чужие шары видны?

ПС
В секции global должны быть строки:

[global]
security=share
guest ok = yes
guest account = nobody[code]
Шара которая видна и в которой все можно:

Код: Выделить всё

[share]
    path = /home/user/share
    writeable = yes
    guest ok = yes

Взято от сюда



Вот конфа. Внизу папка видео. Это прописывал адрес другого компа(interfaces = lo eth1 192.168.0.172/24 )


Код: Выделить всё

workgroup = mygroup
    server string = Samba Server Version %v

    netbios name = MYSERVER
;    interfaces = lo eth1 192.168.0.172/24
;    hosts allow = 127. 192.168.0.
# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach
    # logs split per machine
    log file = /var/log/samba/log.%m
    # max 50KB per log file, then rotate
    max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# 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.

    security = server
;    passdb backend = tdbsam


# ----------------------- Domain Members Options ------------------------
#
# Security must be set to domain or ads
#
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
#
# 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.
#
# Use password server option only with security = server or if you can't
# use the DNS to locate Domain Controllers
# 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 = *


;    realm = MY_REALM

;    password server = <NT-Server-Name>

# ----------------------- Domain Controller Options ------------------------
#
# Security must be set to user for domain controllers
#
# 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.
#
# 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 Logons let Samba be a domain logon server for Windows workstations.
#
# Logon Scrpit let yuou specify a script to be run at login time on the client
# You need to provide it in a share called NETLOGON
#
# Logon Path let you specify where user profiles are stored (UNC path)
#
# Various scripts can be used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
#

;    domain master = yes
;    domain logons = yes

    # the login script name depends on the machine name
;    logon script = %m.bat
    # the login script name depends on the unix user used
;    logon script = %u.bat
;    logon path = \\%L\Profiles\%u
    # disables profiles support by specifing an empty path
;    logon path =

;    add user script = /usr/sbin/useradd "%u" -n -g users
;    add group script = /usr/sbin/groupadd "%g"
;    add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;    delete user script = /usr/sbin/userdel "%u"
;    delete user from group script = /usr/sbin/userdel "%u" "%g"
;    delete group script = /usr/sbin/groupdel "%g"


# ----------------------- 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
#
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
#
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;    local master = no
;    os level = 33
;    preferred master = yes

#----------------------------- Name Resolution -------------------------------
# Windows Internet Name Serving Support Section:
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
#
# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
#
# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
#
# - 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.
#
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.

;    wins support = yes
;    wins server = w.x.y.z
;    wins proxy = yes

;    dns proxy = yes

# --------------------------- Printing Options -----------------------------
#
# Load Printers let you load automatically the list of printers rather
# than setting them up individually
#
# Cups Options let you pass the cups libs custom options, setting it to raw
# for example will let you use drivers on your Windows clients
#
# Printcap Name let you specify an alternative printcap file
#
# You can choose a non default printing system using the Printing option

;    load printers = yes
    cups options = raw

;    printcap name = /etc/printcap
    #obtain list of printers automatically on SystemV
;    printcap name = lpstat
;    printing = cups

# --------------------------- Filesystem Options ---------------------------
#
# The following options can be uncommented if the filesystem supports
# Extended Attributes and they are enabled (usually by the mount option
# user_xattr). Thess options will let the admin store the DOS attributes
# in an EA and make samba not mess with the permission bits.
#
# Note: these options can also be set just per share, setting them in global
# makes them the default for all shares

;    map archive = no
;    map hidden = no
;    map read only = no
;    map system = no
    encrypt passwords = no
    guest ok = yes
;    guest account = nobody
    password server = 1
;    store dos attributes = yes


#============================ Share Definitions ==============================

[homes]
    comment = Home Directories
;    browseable = yes
    writable = yes
    valid users = %S

[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
;    guest ok = yes
;    writable = No
    printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
;    [netlogon]
;    comment = Network Logon Service
;    path = /var/lib/samba/netlogon
;    guest ok = yes
;    writable = no
;    share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;    [Profiles]
;    path = /var/lib/samba/profiles
;    browseable = no
;    guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
;    [public]
;    comment = Public Stuff
;    path = /home/samba
;    public = yes
;    writable = yes
;    printable = no
;    write list = +staff

[Видео]
    path = /home/qwerty/Видео
    read only = no
;    browseable = yes
    guest ok = yes
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
15.06.2010 10:57
Вот конфа. Внизу папка видео. Это прописывал адрес другого компа(interfaces = lo eth1 192.168.0.172/24 )

Раскоментируйте строку

Код: Выделить всё

guest account = nobody
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

Раскоментируйте строку

Код: Выделить всё

guest account = nobody



не помогло.
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
16.06.2010 10:20
Раскоментируйте строку

Код: Выделить всё

guest account = nobody



не помогло.

А

Код: Выделить всё

security=server

на

Код: Выделить всё

security=share

поправили?
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

А

Код: Выделить всё

security=server

на

Код: Выделить всё

security=share

поправ

да пробовал все по-старому. В сети виндоус меня нет, но вижу все остальные компы в сети. Smbtree говорит следующее:
WORKGROUP
\\ZAQ
\\ZAQ\Xerox Phaser 3125 PS Xerox Phaser 3125 PS
\\ZAQ\Xerox Phaser 3125 PCL 6 Xerox Phaser 3125 PCL 6
\\ZAQ\Users
\\ZAQ\print$ Драйверы принтеров
\\ZAQ\IPC$ Удаленный IPC
\\ZAQ\F$ Стандартный общий ресурс
\\ZAQ\D$ Стандартный общий ресурс
\\ZAQ\C$ Стандартный общий ресурс
\\ZAQ\ADMIN$ Удаленный Admin
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
16.06.2010 10:43
А

Код: Выделить всё

security=server

на

Код: Выделить всё

security=share

поправ

да пробовал все по-старому. В сети виндоус меня нет, но вижу все остальные компы в сети. Smbtree говорит следующее:
WORKGROUP
\\ZAQ
\\ZAQ\Xerox Phaser 3125 PS Xerox Phaser 3125 PS
\\ZAQ\Xerox Phaser 3125 PCL 6 Xerox Phaser 3125 PCL 6
\\ZAQ\Users
\\ZAQ\print$ Драйверы принтеров
\\ZAQ\IPC$ Удаленный IPC
\\ZAQ\F$ Стандартный общий ресурс
\\ZAQ\D$ Стандартный общий ресурс
\\ZAQ\C$ Стандартный общий ресурс
\\ZAQ\ADMIN$ Удаленный Admin

Samba запущена?

Код: Выделить всё

/etc/init.d/nmb status
/etc/init.d/smb status

если нет

Код: Выделить всё

/etc/init.d/nmb start
/etc/init.d/smb start

потом

Если себя не увидите покажите конфиг и смотрим /var/log/masseges на предмет ошибок.

ПС
Мне видится в этом 2 причины либо вы случайно ошиблись когда правили конфиг, либо демон nmb/smb не стартует/падает по сторонней причине. Так что смотрим внимательно конфиг и логи. Еще для проверки можно подсунуть простенький работающий конфиг с одной шарой.
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

Samba запущена?

Код: Выделить всё

/etc/init.d/nmb status
/etc/init.d/smb status

если нет

Код: Выделить всё

/etc/init.d/nmb start
/etc/init.d/smb start

потом



Все было запущено. После команды smbtree требует пароль пользователя, хотя я запускаю от рута. Все имеющиеся у меня пароли в системе не подходят. Что может быть?
Спасибо сказали:
Аватара пользователя
ffldove
Сообщения: 480
Статус: Keep It Simple, Stupid
ОС: RFRemix 14

Re: Вход через samba

Сообщение ffldove »

materazzo писал(а): ↑
17.06.2010 15:43
Все было запущено. После команды smbtree требует пароль пользователя, хотя я запускаю от рута. Все имеющиеся у меня пароли в системе не подходят. Что может быть?

Запускайте от обычного пользователя и пароль не пишите просто Enter.
I learned something today
Спасибо сказали:
Аватара пользователя
materazzo
Сообщения: 75
ОС: Windows 7. Fedora 13

Re: Вход через samba

Сообщение materazzo »

ffldove писал(а): ↑
17.06.2010 16:05
materazzo писал(а): ↑
17.06.2010 15:43
Все было запущено. После команды smbtree требует пароль пользователя, хотя я запускаю от рута. Все имеющиеся у меня пароли в системе не подходят. Что может быть?

Запускайте от обычного пользователя и пароль не пишите просто Enter.


выводятся пользователи сети и их ресурсы. Tакие же когда я захожу в сеть графически (сеть Windows).
Спасибо сказали:
tks
Сообщения: 2

Re: Вход через samba

Сообщение tks »

useradd username
passwd username

smbpasswd -a username
password for username

заходить под данным юзером...

Спасибо сказали: