Расшаренные папки Windows отображаются но пустые, хелп

Ars

New member
Сообщения
14
#1
Суть такая. Закрытая сеть. 20 компьютеров. у каждого есть свои расшаренные папки. Компьютер в рабочей сети видет их, но они все пустые. Хотя в обратную сторону с с любого win на комп linux заходит и шару видет. Учетки и пароли везде одинаковые. Разрешения везде открыл. Расшарил через samba. (AstraLinux Orel 2.12.4). Куда лезть что смотреть. Все гугловские решения попробовал нифига не получается. 5 дней мучаюсь В линуксе даже не 0 а -1.) Сори что дублирую тут, эта ветка более живучая нежели курилка.
 

CrashBldash

New member
Сообщения
252
#2
Напишите подробнее. У вас все 20 компов на Астре или часть на Виндовс? Кто куда что расшаривает, как заходите.
 

Ars

New member
Сообщения
14
#3
Напишите подробнее. У вас все 20 компов на Астре или часть на Виндовс? Кто куда что расшаривает, как заходите.
20 компьютеров. 16 на win 7/8/10. и создали 4 рабочих места по программе импортозамещения на Астралинукс Орел.

Общего сервера нет. На каждой машине своя расшаренная папка "Обмен" открытая для всех с пользователями сотрудника, все, гость и администратора. Тобишь любые юзеры могут зайти на любой компьютер и положить удалить скопировать и тд. В эту сеть я включил 4 машины на Линукс. Присвоил свои айпишки. Компьютеры сразу появились в сетевом окружении в локальной сети с именами. "Астра1-астра4". Работаю пока на 1. На нем через самбу расшарил 1 папку. куда с компьютеров под Виндовс могу зайти и копировать менять и т.д.
А проблема состоит в том что на Линукс машине через файловый менеджер я вижу группу Воркгрупп. Вижу каждую машину на линуксе и винде. Захожу в эту машину но папок обмена нету. Тобишь как будто машины пустые. Такая проблема только со стороны линукс. Причем с одного линукса на другой заходить так же папки обмена нет.
 

Olej

New member
Сообщения
1 307
#4
20 компьютеров. 16 на win 7/8/10. и создали 4 рабочих места по программе импортозамещения на Астралинукс Орел.
Вижу каждую машину на линуксе и винде. Захожу в эту машину но папок обмена нету. Тобишь как будто машины пустые. Такая проблема только со стороны линукс. Причем с одного линукса на другой заходить так же папки обмена нет.
Похожие вещи были при смене версий SMB/CIFS при смене названий Windows NT->XP->7->8-> ... 10 я в глаза не видел :cry: MS не считает должным даже сообщать когда в одностороннем порядке меняют протокол.
Но, вообще то, говоря SAMBA со стороны Linux достаточно капризная в настройках, потому что для Linux это противоестественная сетевая система (как седло на корове).
Я даже на уровне SAMBA не имел дела с Windows лет 9-10, поэтому не могу подсказать по памяти конкретное решение вашей проблемы. Но попробуйте добиться работы в терминале консольным клиентом SAMBA:
Код:
olej@astra:~$ smbclient --help
Использование: smbclient service <password>
  -R, --name-resolve=NAME-RESOLVE-ORDER     Use these name resolution services only
  -M, --message=HOST                        Send message
  -I, --ip-address=IP                       Use this IP to connect to
  -E, --stderr                              Write messages to stderr instead of stdout
  -L, --list=HOST                           Get a list of shares available on a host
  -m, --max-protocol=LEVEL                  Set the max protocol level
  -T, --tar=<c|x>IXFqgbNan                  Command line tar
  -D, --directory=DIR                       Start from directory
  -c, --command=STRING                      Execute semicolon separated commands
  -b, --send-buffer=BYTES                   Changes the transmit/send buffer
  -t, --timeout=SECONDS                     Changes the per-operation timeout
  -p, --port=PORT                           Port to connect to
  -g, --grepable                            Produce grepable output
  -q, --quiet                               Suppress help message
  -B, --browse                              Browse SMB servers using DNS

Help options:
  -?, --help                                Show this help message
      --usage                               Display brief usage message

Common samba options:
  -d, --debuglevel=DEBUGLEVEL               Set debug level
  -s, --configfile=CONFIGFILE               Use alternate configuration file
  -l, --log-basename=LOGFILEBASE            Base name for log files
  -V, --version                             Print version
      --option=name=value                   Set smb.conf option from command line

Connection options:
  -O, --socket-options=SOCKETOPTIONS        socket options to use
  -n, --netbiosname=NETBIOSNAME             Primary netbios name
  -W, --workgroup=WORKGROUP                 Set the workgroup name
  -i, --scope=SCOPE                         Use this Netbios scope

Authentication options:
  -U, --user=USERNAME                       Set the network username
  -N, --no-pass                             Don't ask for a password
  -k, --kerberos                            Use kerberos (active directory) authentication
  -A, --authentication-file=FILE            Get the credentials from a file
  -S, --signing=on|off|required             Set the client signing state
  -P, --machine-pass                        Use stored machine account password
  -e, --encrypt                             Encrypt SMB transport
  -C, --use-ccache                          Use the winbind ccache for authentication
      --pw-nt-hash                          The supplied password is the NT hash
У вас он должен быть установлен по умолчанию.
 

Olej

New member
Сообщения
1 307
#5
А проблема состоит в том что на Линукс машине через файловый менеджер я вижу группу Воркгрупп
Проверьте тщательно как у вас названы имена рабочих групп в Windows и в Linux, вплоть до больших-малых букв (Windows их не различает, а Linux - различает).
P.S. При этом, надеюсь, что вы знаете что делаете, и у вас организация Windows сети с рабочими группами, а не доменная.
 

Ars

New member
Сообщения
14
#6
Проверьте тщательно как у вас названы имена рабочих групп в Windows и в Linux, вплоть до больших-малых букв (Windows их не различает, а Linux - различает).
P.S. При этом, надеюсь, что вы знаете что делаете, и у вас организация Windows сети с рабочими группами, а не доменная.
Организация доменная. Но Самба ее определила под WORKGROUP
 

CrashBldash

New member
Сообщения
252
#7
Присоединяйтесь к обсуждению. Похоже у вас та же ситуация - https://jira.astralinux.ru/projects/PBT/issues/PBT-65
У меня я захожу с недоменной астры на доменный (АД) файл сервер и вижу пустые папки в которых ничего нельзя делать.
А техподдержка говорит что не может воспроизвести эту проблему. Оказывается не у меня одного так.
 

Ars

New member
Сообщения
14
#8
Присоединяйтесь к обсуждению. Похоже у вас та же ситуация - https://jira.astralinux.ru/projects/PBT/issues/PBT-65
У меня я захожу с недоменной астры на доменный (АД) файл сервер и вижу пустые папки в которых ничего нельзя делать.
А техподдержка говорит что не может воспроизвести эту проблему. Оказывается не у меня одного так.
Да да. Только как тут регистрироваться?
 

2zer0

New member
Сообщения
50
#11
Причем с одного линукса на другой заходить так же папки обмена нет.
Конфиг Самбы такой:
[global]
# Global parameters
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
Это во первых. Во вторых юзера надо добавлять в пользователи Самбы! Либо через родную Астре GUI утилиту, либо через
Код:
В простейшем случае каталог должен существовать, а пользователь должен быть зарегистрирован как пользователь samba:
sudo smbpasswd -a username
Тут хорошо излагают
 
Последнее редактирование:

Ars

New member
Сообщения
14
#12
Конфиг Самбы такой:
[global]
# Global parameters
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
Это во первых. Во вторых юзера надо добавлять в пользователи Самбы! Либо через родную Астре GUI утилиту, либо через
Код:
В простейшем случае каталог должен существовать, а пользователь должен быть зарегистрирован как пользователь samba:
sudo smbpasswd -a username
Тут хорошо излагают

Решил обновить орлов с 2.12.4 до 2.12.14. В итоге компьютеры вообще пропали из сети. В инет выходят а сеть не видят.

по поводу конфига все ниже глобала удалил и вставил этот конфиг. Все равно результат тот же. Машины в сети пропали
 

Ars

New member
Сообщения
14
#13
Вот. Раньше под самба была "воркгрупп" с компьютерами.


А вот был конфиг до обновления по которому можно было с Win зайти на шару Линукса

[global]
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# 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 most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
# - When such options are commented with ";", the proposed setting
# differs from the default Samba behaviour
# - When commented with "#", the proposed setting is the default
# behaviour of Samba but the option is considered important
# enough to be mentioned here
#
# 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]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its 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

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 192.168.1.1/24 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = no



#### Debugging/Accounting ####

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

# Cap the size of the individual log files (in KiB).
max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam

obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
; logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
# logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
; logon drive = H:
# logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
; logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# 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
; include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
; usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes

#======================= Share Definitions =======================
security = user
encrypt passwords = no











[homes]
comment = Home Directories
browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0775

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0775

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
valid users = %nobody

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = yes
; browseable = yes
; create mask = 0600
; directory mask = 0775

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

[print$]
path = /var/lib/samba/printers
comment = printer drivers
read only = no
guest ok = yes
guest only = no
valid users = nobody

[Обмен]
path = /root/obmen
read only = no
guest ok = yes
guest only = yes

и перестала работать команда smbtree

Короче после обновления 2 недели в пустую(
 

Вложения

Последнее редактирование:

Olej

New member
Сообщения
1 307
#14
Ну вот и всё. Вот и ответ на ваш вопрос.
Но Самба ее определила под WORKGROUP
SAMBA не может ничего "определять" - она может только использовать простейшую конфигурацию, по дефаулту.
А определять должны вы, в её конфигурациях.
 

Olej

New member
Сообщения
1 307
#15
В инет выходят а сеть не видят.
Терминологически неверно:
- вот то, что у вас "инет" - это и есть TCP/IP сеть, и LAN (локальная сеть) и WAN (глобальная сеть);
- а то что у вас названо "сеть" - так это одна частная Windows-ная приблуда. :)
 

Olej

New member
Сообщения
1 307
#16
Раньше под самба была "воркгрупп" с компьютерами.
Нет у вас никакой "воркгрупп", и не было никогда - забудьте.
Конфигурации доступа SAMBA для рабочих групп и доменной организации - радикально отличаются.
 

Ars

New member
Сообщения
14
#17
Нет у вас никакой "воркгрупп", и не было никогда - забудьте.
Конфигурации доступа SAMBA для рабочих групп и доменной организации - радикально отличаются.
Так понял. Моя задача создать рабочую группу из доменной и тогда самба начнет ее определять, верно мыслю?
 

Olej

New member
Сообщения
1 307
#18
Так понял. Моя задача создать рабочую группу из доменной и тогда самба начнет ее определять, верно мыслю?
Это один из возможных вариантов. Более простой, но ... менее мощный и защищённый (в терминологии Windows).
Но тогда вам нужно перестроить администрирование всех хостов Windows (всех ваших 16-ти) из доменного в рабочие группы! - при этом, как мне помнится по памяти, конфигурирование SMB становится проще.
P.S. И тогда проверить имена рабочих групп везде (Windows, Linux) и их написание (малые/большие буквы).
 

Olej

New member
Сообщения
1 307
#19
А вот был конфиг до обновления по которому можно было с Win зайти на шару Линукса
Почитайте: Прошу помощи с подключением к файловому серверу SMB - там, а ещё более по ссылкам оттуда, много и подробно о конфигурировании SAMBA (это было ещё тех времён, когда я ещё по службе иногда конфигурировал SAMBA).
Там же показана переводная книга, которая наиболее полно описывает SAMBA, её легко найти и свободно скачать:
Маттиас Калле Далхаймер, Мэтт Уэлш, Запускаем Linux, 5-е издание.
Издательство: Символ-Плюс
Дата выхода: февраль 2008
Страниц: 992


P.S. Хм ... - проверил на полке ;) ... это одна из тех достаточно многих переводных книг компьютерного издательства "Символ-Плюс" по Linux и программированию (языкам), по которым я был научным редактором текста :D ... вписан в выходные данные издания.
 
Последнее редактирование:

Olej

New member
Сообщения
1 307
#20
Там же показана переводная книга, которая наиболее полно описывает SAMBA, её легко найти и свободно скачать:
Кстати:
1. Книгу можете свободно скачать, например, здесь: Название книги: Запускаем Linux, 5-е издание
2. Книга весьма популярна, последние переиздания её на русском языке - 2017г.
3. Там много полезного и кроме SAMBA, особенно для тех, кто ещё не совсем "на ты" с Linux.

ТС: Это сильно поможет вам в решении вашего вопроса.