AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[file-sharing](ubuntu)

Martin Hope
johna
Asked: 2024-10-22 05:48:43 +0800 CST

共享任何文件夹类似于 Windows 文件共享

  • 5

我正在尝试从 Windows 切换到 Ubuntu 桌面。

我希望能够在本地网络上的其他计算机之间共享文件夹,无论它们是 Windows 还是 Ubuntu。

我从帮助中找到了共享文件夹的选项Public,但我仍然无法从 Windows 访问该文件夹。我还想共享其他文件夹,而不仅仅是公共文件夹。

我在网上找到了一些有关其他形式共享的说明,但似乎没有提到的“本地网络共享”选项。

Windows 共享最简单的替代方法是什么?

file-sharing
  • 3 个回答
  • 63 Views
Martin Hope
Nicholas Bourbaki
Asked: 2020-11-06 08:28:54 +0800 CST

Samba 客户端无法在 Ubuntu 18.04 上运行,需要帮助

  • 0

我正在使用 Samba 客户端尝试从 Linux 查看驻留在 Windows-10 64 位计算机上的共享目录。samba 安装在我的 xUbuntu 18.04 64 位笔记本电脑上。XUbuntu 就像普通的 Ubuntu 一样,只是它使用了我喜欢的 XFCE 桌面。我对我的 /etc/samba/smb.conf 做了一些更改,但不清楚具体需要做什么。

两台计算机都是“FSI”工作组的一部分。我启动服务 smbd 和 nmbd。然后,通过 Linux 笔记本电脑上的文件浏览器,我可以转到 FSI 工作组并查看 Windows 机器 {名为“TIBERIUS”} 以及名为 {“XENOBA-LIN”} 的 Linux 笔记本电脑。但是我不能去查看共享目录或 TIBERIUS 上的任何目录。当两台机器都重新启动到 Windows 时,我可以。

我不希望 Linux 笔记本电脑成为服务器,因为它只是间歇性地在网络上。windows 机器应该是主要的名称服务器和服务器。这是我在 Linux 机器上的 smb.conf 的缩写副本。

/etc/samba/smb.conf

#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = FSI

# server string is the equivalent of the NT Description field
    server string = %h server (Samba, Ubuntu)

# 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 ####
### note IP 192.168.1.72 is for Tiberius: the remote Windows machine  ####
### anyhow it's commented out I think  ###
;   interfaces = 192.168.1.72/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
;   bind interfaces only = yes
####### 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 sever" 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 <<[email protected]> 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 ###########

############ Misc ############
# all the usual defaults here except when listed

# 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

我还要附上截图

工作组发现这就是我所能得到的

networking samba client file-sharing
  • 2 个回答
  • 1822 Views
Martin Hope
gannex
Asked: 2020-10-23 13:49:51 +0800 CST

在 Ubuntu 20.04 上通过蓝牙接收文件

  • 1

在以前版本的 Ubuntu 上,我似乎记得在蓝牙设置中默认启用了“浏览设备”选项(如 Mac OS X 上)。现在我运行的是 Ubuntu 20.04 LTS,我可以很容易地通过蓝牙设置菜单发送文件,但是没有接收文件的选项。

我试过安装

  • 蓝兹
  • 蓝人
  • obexftp

以及其他一些希望无意中启用此功能的应用程序,但我所做的一切似乎都没有奏效。我想找到一个 GUI 解决方案,因为我不想经常在命令行中摆弄只是为了浏览我的蓝牙设备上的文件,而且我经常需要这个功能,因为我使用平板电脑,连接通过蓝牙连接到我的笔记本电脑,执行诸如签署文件之类的操作。有谁知道如何让它在 Ubuntu 20.04 上运行?

bluetooth file-sharing 20.04
  • 1 个回答
  • 1354 Views
Martin Hope
David
Asked: 2020-10-17 02:55:11 +0800 CST

Samba 服务器未读取配置文件或配置文件不正确

  • 0

运行 ubuntu 16.04。桌面。已安装 Samba,客户端按预期工作。Ubuntu 可以访问 windows 机器。问题是 samba 服务器似乎无法正常工作。我使用了此页面https://ubuntu.com/server/docs/samba-file-server中的信息,并按照那里的步骤在 ubuntu 上配置 samba 服务器。我使用了本指南如何编辑 lightdm.conf 文件并保存?并编辑了 smb.conf 文件。我使用 gedit 来编辑 conf 文件。我关闭了终端并检查了 conf 文件是否有我需要的编辑。我重新启动服务器以确保在启动时一切正常,我认为这会导致 smb.conf 文件与我所做的更改一起被读取。不工作。在 Windows 中,我仍然无法访问我在 smb.conf 文件中配置的共享。将不胜感激任何帮助。从 windows 我得到 windows 无法访问和我试图访问的共享的名称。

testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[share]"
Loaded services file OK.
WARNING: The 'netbios name' is too long (max. 15 chars).

Server role: ROLE_STANDALONE

# Global parameters
[global]
    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
    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


[share]
    comment = Ubuntu File Server Share
    path = /media/david/Elements
    read only = No
    create mask = 0755
    guest ok = Yes
server samba file-sharing
  • 1 个回答
  • 912 Views
Martin Hope
kurtcabage
Asked: 2020-08-19 00:25:26 +0800 CST

Windows XP 无法连接到 samba 共享 (linux server 20.04)

  • 2

我是 linux 和 samba 服务器的新手。

我尝试设置 samba 服务器。我的 windows 7 和 windows 10 可以完美连接到 samba 服务器。

问题是 windows XP 无法连接也无法浏览 samba 服务器,它说:“windows 找不到“\server”。检查拼写并重试.....”

这是我的 conf 设置:

[global]
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = yes
winbind trusted domains only = yes
username map = /etc/samba/smbusers
os level = 20
client min protocol = NT1
encrypt passwords = yes
map to guest = bad user
workgroup = WORKGROUP
netbios name = server
security = user
panic action = /usr/share/samba/panic-action %d
guest ok = yes
lanman auth = yes
log file = /var/log/samba/log.%m
max log size = 1000
ntlm auth = yes
passwd program = /usr/bin/passwd %u
obey pam restrictions = yes
logging = file
winbind use default domain = yes
server string = 
usershare allow guests = yes
auto services = global
server role = standalone server
pam password change = yes

在此处输入图像描述

请帮忙

networking server samba password file-sharing
  • 2 个回答
  • 7008 Views
Martin Hope
Judyk
Asked: 2020-06-22 01:48:13 +0800 CST

20.04 - 更多 smb 问题

  • 2

我们有两台机器运行 Ubuntu,其中一台在一周左右之前从 19.10 升级到 20.04,另一台昨天升级。当第一个升级时,我们经历了 SMB 问题学习曲线,发现我们的路由器现在无法访问,因为它运行已停产的 SMB1 协议(这是我们的 ISP 提供它们的方式)。我们不得不添加

客户端最小协议 = NT1

到 20.04 机器上的 smb.conf 以使此访问再次工作。然后我们发现19.10的机器不能再访问20.04机器上的共享磁盘了,和路由器访问问题一样。更新 smb.conf

服务器最小协议 = NT1

在 20.04 机器上解决了这个问题,但给我们留下了不安全的访问权限。不好,但我们即将将另一台机器升级到 20.04,并希望能解决问题。它没有 - 两台机器都在 20.04 并且没有服务器最小协议参数,我们仍然得到同样的错误。在托管共享的机器上恢复服务器最小协议 = NT1 设置解决了问题,但我们又回到了不安全的访问。

我们还尝试添加

服务器最大协议 = SMB3

到主机上的 sbm.conf ,但这并没有什么区别,所以为了安全起见,我们不得不去掉 server min 协议参数并失去对共享的访问权限。这是个大问题。

我想了解的是我们是否在 smb 协议参数中出现了错误或缺失,或者某处是否真的限制了用于 SMB1(又名 NT1)的协议。我认为两台 20.04 机器应该协商两者都可以支持的最高协议(或最大协议设置允许的最高协议)。根据我们的设置,我认为这应该是 SMB3。

samba file-sharing smb 20.04
  • 1 个回答
  • 1919 Views
Martin Hope
Jabber1
Asked: 2020-06-01 10:20:44 +0800 CST

如何*停止*共享文件夹

  • 1

要在我的局域网上共享文件夹,我使用了这些说明,只需单击“共享此文件夹”框即可。伟大的。

然后我改变了主意,所以我想为了撤消那个,我只需要取消勾选框。没有。因为现在我已经安装了 Samba,该框不再存在。代替“本地网络共享”选项卡,有“权限”、“注释”、“访问控制列表”、“扩展用户属性”选项卡。一大堆非常复杂的东西,没有任何地方可以说“不要再共享这个文件夹了”。

从理论上讲,我可以更改权限,但这没有抓住重点。某处已保存一个设置,上面写着“这是我要共享的文件夹”。它在哪里,我该如何撤消它?

nautilus samba sharing file-sharing
  • 2 个回答
  • 2295 Views
Martin Hope
Abhay Patil
Asked: 2020-05-24 08:37:44 +0800 CST

在 Windows 上从 Ubuntu 查看 HTML 文件

  • 0

我的主计算机上安装了 Ubuntu 20.04 LTS,辅助计算机上安装了 Windows 10 1909。我通常建立网站。如果我想查看一个简单的 HTML 文件,我只需在浏览器上打开它。但是,如果我想在我的辅助 PC 上查看这些内容怎么办。

我应该怎么做才能在我的辅助计算机上的浏览器上打开这些 HTML 文件?

file-sharing windows-10
  • 2 个回答
  • 806 Views
Martin Hope
Roland
Asked: 2020-03-31 23:31:39 +0800 CST

文件已被其他用户独占打开

  • 0

我正在尝试通过 Wine 运行 Windows 应用程序(Enterprise Architect)。当我在本地工作时,它似乎工作得很好。但是我们在 Windows 共享上有一个共享文件,当在 Windows 中运行时,许多用户可以同时在该文件中工作。但是当我尝试从我的 ubuntu/samba/wine-setup 打开文件时,它声称其他人已独占锁定了该文件。

我的 fstab 文件的相关部分:

//host/share /media/ea cifs credentials=/home/xxx/.smbcredentials,users,iocharset=utf8,sec=ntlm,vers=1.0

任何关于配置的想法

fstab wine samba file-sharing
  • 1 个回答
  • 102 Views
Martin Hope
w-sky
Asked: 2020-03-02 16:09:10 +0800 CST

与 Ubuntu 19.10 成功设置 Samba 共享,但无法使用某些旧设备访问

  • 0

我用 Ubuntu 19.10 最简单的方法创建了一个 Samba 共享:在文件浏览器中,右键单击我要共享的文件夹,选择“本地网络共享”,然后第一次会提示安装 Samba ( v4.10.7) 包。类似于命令行:

sudo apt install samba samba-common

之后,我使用以下命令为我的主用户帐户设置了 Samba 密码:

sudo smbpasswd -a {myusername}

现在我可以使用我的用户名和给定的 Samba 密码从另一个 Ubuntu 或 Windows 设备成功访问共享文件夹。

但是我无法使用几年前的网络媒体播放器访问。它确实显示共享网络文件夹并在尝试连接时提示输入用户名和密码,但随后失败并出现简单的“无法访问网络文件夹”错误。

如果我可以用现代计算机访问 Samba 共享,但不能用旧设备访问,可能是什么问题?

我已经以相同的方式与旧版 Ubuntu 16.04 (Samba v3.x) 设置了 Samba 共享,并且仍然适用于我的网络播放器。也许是一种旧的身份验证模式,我必须使用 Samba v4 启用它?

networking server samba cifs file-sharing
  • 1 个回答
  • 1549 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve