Страница 1 из 2
Общие папки windows10 и linux в локальной сети
Добавлено: 28 янв 2024, 23:44
Gryzchik
Не могу настроить локалку компов с виндой 10 и линукс минт 20 с синамоном.
Samba установленна.запущенна.общие папки в линукс минт созданы.Но не могу открыть эти папки выдает ошибки.С винды эти папки не видны.Но в в винде комп с линуксом пингуеться.А в линуксе комп с виндой не пингуеться.
Настраивал по этой инструкцией
https://www.linuxhelp.com/how-to-instal ... ux-mint-20
Локалка два компа подключенные в пятипортовый свич тп-линк.
Код: Выделить всё
System: Kernel: 5.4.0-26-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.6
wm: muffin dm: LightDM Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine: Type: Desktop Mobo: INTEL model: X99 serial: <filter>
UEFI [Legacy]: American Megatrends v: 5.11 date: 04/20/2020
CPU: Topology: 6-Core model: Intel Xeon E5-2620 v3 bits: 64 type: MT MCP arch: Haswell
rev: 2 L2 cache: 15.0 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 57468
Speed: 1197 MHz min/max: 1200/3200 MHz Core speeds (MHz): 1: 1198 2: 1197 3: 1550
4: 1199 5: 1197 6: 1197 7: 1584 8: 1198 9: 1197 10: 1201 11: 1198 12: 1197
Graphics: Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Micro-Star MSI driver: nouveau
v: kernel bus ID: 02:00.0 chip ID: 10de:1c82
Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: NV137 v: 4.3 Mesa 20.0.4 direct render: Yes
Audio: Device-1: Intel C610/X99 series HD Audio driver: snd_hda_intel v: kernel
bus ID: 00:1b.0 chip ID: 8086:8d20
Device-2: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 02:00.1 chip ID: 10de:0fb9
Sound Server: ALSA v: k5.4.0-26-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
v: kernel port: e000 bus ID: 05:00.0 chip ID: 10ec:8168
IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Device-2: Ralink MT7601U Wireless Adapter type: USB driver: mt7601u bus ID: 3-14:4
chip ID: 148f:7601
IF: wlx1cbfced2acbb state: up mac: <filter>
Drives: Local Storage: total: 476.94 GiB used: 26.82 GiB (5.6%)
ID-1: /dev/nvme0n1 model: X15 SSD 512GB size: 476.94 GiB speed: 31.6 Gb/s lanes: 4
serial: <filter>
Partition: ID-1: / size: 466.29 GiB used: 13.36 GiB (2.9%) fs: ext4 dev: /dev/dm-1
ID-2: /boot size: 703.5 MiB used: 105.7 MiB (15.0%) fs: ext4 dev: /dev/nvme0n1p5
ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2
Sensors: System Temperatures: cpu: 37.0 C mobo: N/A gpu: nouveau temp: 40 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Repos: No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/alexlarsson-flatpak-focal.list
1: deb http: //ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/linuxuprising-shutter-focal.list
1: deb http: //ppa.launchpad.net/linuxuprising/shutter/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http: //packages.linuxmint.com ulyana main upstream import backport #id:linuxmint_main
2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http: //archive.canonical.com/ubuntu/ focal partner
Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
1: deb https: //deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
Active apt repos in: /etc/apt/sources.list.d/yandex-browser.list
1: deb [arch=amd64] https: //repo.yandex.ru/yandex-browser/deb stable main
Info: Processes: 384 Uptime: 1h 33m Memory: 15.54 GiB used: 3.52 GiB (22.6%) Init: systemd
v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client
inxi: 3.0.38
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 04:35
madesta
1. По третьему снимку. Поигом вы к кому стучитесь? Если к Windows, то, по умолчанию, постпающий на неё пинг не разрешён брандмауэром, его нужно разрешать специально. И почему такой странный способ пропинговать узел? Для чего нужно было делать sudo su?
2. Для доступа к шарам нужно соответствие протоколов SMB.
3. Дополнительно ко всему необходимы права на указанные шары как сетевых папок, так и папок, которые соответствует шарам на самой файловой системе. Другими словами, может потребоваться либо создание в Linux дополнительного пользователя с включением его в соответствующие группы, либо обращаться к шарам с указанием пользователя (логина), под которым осуществляется обращение.
4. Резюме. Не тратье время и нервы, установите на оба компьютера
Syncthing и никогда не будете испытывать проблем ни с доступом к нужным папкам, ни с надёжностью передачи данных по сети.
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 14:54
Gryzchik
1. По третьему снимку. Поигом вы к кому стучитесь? Если к Windows, то, по умолчанию, постпающий на неё пинг не разрешён брандмауэром, его нужно разрешать специально. И почему такой странный способ пропинговать узел? Для чего нужно было делать sudo su?
Пинговал винду. так как под обычной учеткой зависло.Попробовал под рутом.Так как ya.ru пинговался нс бранмауер не подумал.
3. Дополнительно ко всему необходимы права на указанные шары как сетевых папок, так и папок, которые соответствует шарам на самой файловой системе. Другими словами, может потребоваться либо создание в Linux дополнительного пользователя с включением его в соответствующие группы, либо обращаться к шарам с указанием пользователя (логина), под которым осуществляется обращение.
Вроде по инструкции создал.Но ошибка все равро возникало.Можеет где нибудь точку не поставил.
4. Резюме. Не тратье время и нервы, установите на оба компьютера Syncthing и никогда не будете испытывать проблем ни с доступом к нужным папкам, ни с надёжностью передачи данных по сети.
Спасибо.Ок попробую.Просто на старых линуксах такой проблемы не было. установил samby прописал сетку группу общую и все или я что то путаю?
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:05
symon2014
Gryzchik писал(а): ↑29 янв 2024, 14:54
прописал сетку группу общую и все или я что то путаю?
Конечно путаешь. Посмотри на свой первый пост. Ты не смог даже вставить картинки в сообщение. А это пара нажатий на кнопку мыши. Возможно так же ты делал и с самбой.
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:06
WWolf
Gryzchik, гостя добавил в самбу?
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:11
WWolf
да и чего париться с конфигами? в минте давно всё достаточно информативно кликами делается
ПКМ - Параметры общего доступа
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:17
WWolf
Аааа, там же ещё прикол в самой винде... В настройках сетевого окружение парольную защиту отрубить надо, что б шарахалась по сети от гостевой записи.
Иначе морока с созданием пользователей на линухе и введением их smbgrp
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:18
Gryzchik
Gryzchik, гостя добавил в самбу?
Нет.наверно. но учетку с паролями добавил.Но линукс даже пароль не запрашивает.Просто выдает ошибку.
Код: Выделить всё
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
#### 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 = 127.0.0.0/8 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 = yes
#### 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
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
logging = file
# 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
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 config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; 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 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 =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = no
# 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 = yes
# 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 = 0700
# 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 = 0700
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S
# 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 = yes
# 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 = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
[share1]
path = /home/user/share1
valid users = user1, user2
read list = user2
write list = user1
browseable = yes
[share2]
path = home/user/share2
valid users = user1, user2
read list = user1
write list = user2
browseable = yes
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:20
Gryzchik
WWolf писал(а): ↑29 янв 2024, 15:11
да и чего париться с конфигами? в минте давно всё достаточно информативно кликами делается
ПКМ - Параметры общего доступа
123.png
Выдаеет различные ошибки.Если повториться заскриншотю.
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:22
WWolf
Gryzchik писал(а): ↑29 янв 2024, 15:18
но учетку с паролями добавил.Но линукс даже пароль не запрашивает.
так может потому что винда под гостём ломится как раз?
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:28
WWolf
Gryzchik, вот такая ещё кора с это десяткой может быть
https://lumpics.ru/configuring-smb-in-w ... m293514130
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:30
Gryzchik
WWolf писал(а): ↑29 янв 2024, 15:17
Аааа, там же ещё прикол в самой винде... В настройках сетевого окружение парольную защиту отрубить надо, что б шарахалась по сети от гостевой записи.
Иначе морока с созданием пользователей на линухе и введением их smbgrp
настройки общего доступа в винде 10
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:37
Gryzchik
symon2014 писал(а): ↑29 янв 2024, 15:05
Gryzchik писал(а): ↑29 янв 2024, 14:54
прописал сетку группу общую и все или я что то путаю?
Конечно путаешь. Посмотри на свой первый пост. Ты не смог даже вставить картинки в сообщение. А это пара нажатий на кнопку мыши. Возможно так же ты делал и с самбой.
Я еще застал загрузку с аудиокасет.Но возраст большой.Туго соображаю.
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:40
WWolf
Gryzchik писал(а): ↑29 янв 2024, 15:37
Я еще застал загрузку с аудиокасет.
ZX спектрум наше всё
есть ещё такой инструмент
sudo smbstatus
, может поможет понять по какому протоколу лезеть винда
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:44
symon2014
Gryzchik писал(а): ↑29 янв 2024, 15:37
Я еще застал
Не стесняйся. У меня был "Специалист" из "Моделиста Конструктора" с Маяком 232 ))
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 15:49
Gryzchik
WWolf писал(а): ↑29 янв 2024, 15:40
Gryzchik писал(а): ↑29 янв 2024, 15:37
Я еще застал загрузку с аудиокасет.
ZX спектрум наше всё
есть ещё такой инструмент
sudo smbstatus
, может поможет понять по какому протоколу лезеть винда
денег на него не было.В школе была электроника (советский комп на бейсике)
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 17:36
Gryzchik
WWolf писал(а): ↑29 янв 2024, 15:11
да и чего париться с конфигами? в минте давно всё достаточно информативно кликами делается
ПКМ - Параметры общего доступа
123.png
Вот такая ошибка выскакивает
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 17:37
madesta
WWolf писал(а): ↑29 янв 2024, 15:06
гостя добавил
А потом в один прекрасный день возникает сюрпрайз: гость записывает в шару файл/папку, пользователь LM пытается потом её удалить и посылается системой далеко и надолго. Потому что файл/папка записаны на файловую систему под правами гостя, а пользователь LM удалить эти объекты прав может и не иметь. Терзают меня смутные сомнения, что будет необходимо очень уж вдумчиво поработать над пользователями, группами и правами на обекты файловой системы LM, которые выданы самбе как Share. Потому что видеть шары по сети это одно, а вот записывать, изменять, удалять в них объекты уже будет чуточку другим. Это как делать в Windows шары на диске C. Одно дело когда это диск D или E, у которого наследуемые права на файлы и папки "полный для всех", и другое дело с диском С, права на объекты файловой системы которого дифференцированы.
Со своей колокольни, на порядок проще установить на LM vsftpd (немного поработав с vsftpd.conf) или openssh-server и ходить с Windows на LM через клиент Filezilla. Правда в случае openssh-server под учёткой LM будет доступ ко всем папкам. Если такого не нужно, то создавать либо второго пользователя, либо соответствующим образом настраивать vsftpd.
Но, как уже говорил, Syncthing в настройке намного проще, а в плане "защиты от дурака" (случайное непреднамеренное удаление) ещё и даст фору другим решениям. А если к этому добавить его свойство "докачка" (как в торрентах), то даже и не представляю, как после этого можно оставаться на SMB. Минусом может выступать лишь то, что Share1 и Share2 на обеих машинах будут иметь идентичное содержание, что может не совсем подойти, если на Windows совсем уж мало дискового пространства. Здесь уже вопрос о цели использования ресурсов общего доступа.
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 17:42
madesta
Gryzchik писал(а): ↑29 янв 2024, 17:36
Вот такая ошибка
По-моему, этой информации недостаточно. Нужен хотя бы листинг smb.conf
Общие папки windows10 и linux в локальной сети
Добавлено: 29 янв 2024, 18:00
Sharov
WWolf писал(а): ↑29 янв 2024, 15:40
ZX спектрум наше всё
