将 Ubuntu 驱动器映射到 Windows 机器

ign*_*aur 5 windows samba networking

因此,相反的问题有很多答案,但我需要能够从我的 Windows 7 机器访问和修改我的 Ubuntu 机器上的文件。

我已经尝试过什么?

看起来我已经安装了 Samba(不知何故),但我刚刚花了很多时间安装软件包来安装其他软件包,修复安装并找出我没有安装某些软件包的一部分以及为什么我没有安装某些软件包以启用其他东西安装,我只是不知道!(我有点像 Ubuntu 新手,以防你看不到......)

我的/etc/samba/smb.config已修改为如下所示:

#======================= 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 director as \\server\username
[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

...

# This might need tweaking when using external authentication schemes
    valid users = %S
Run Code Online (Sandbox Code Playgroud)

重新启动桑巴sudo service smbd restart

现在回到我的 Windows 机器,我尝试使用\\[my-machine-name]\[my-machines-admin-user]. 出现的小对话框要求我输入网络用户名和密码,因此我输入凭据 aaaaaaand...它告诉我这不好。我可以看到我在登录用户的不仅仅是[ubuntu-username]但是[my-windows-machine]\[ubuntu-username]......?

我累了,有什么帮助吗?网络上没有太多关于此的信息。

谢谢!

One*_*ero 9

在 Ubuntu Machine 打开终端

sudo smbpasswd -a USERNAME
Run Code Online (Sandbox Code Playgroud)

其中 USERNAME 是您的用户名