精华内容
下载资源
问答
  • Windows访问smb服务器提示没有权限

    千次阅读 2018-03-15 22:01:23
    启动smb/nmb服务的顺序来,设置了匿名访问,结果windows死活登陆不进去。。。解决方法:sudo smbpasswd -a username添加一个用户进去,win10禁止匿名使用smb服务。。。然后把用户凭据存到control user...

    设置smb服务器的方法按照:

    1. 开机自动挂载硬盘

    2. 创建smb文件夹

    3. 设置samba配置文件smb.conf

    4. 关闭防火墙,selinux

    5. 启动smb/nmb服务

    的顺序来,设置了匿名访问,结果windows死活登陆不进去。。。

    解决方法:

    sudo smbpasswd -a username

    添加一个用户进去,win10禁止匿名使用smb服务。。。然后把用户凭据存到control userpasswords2内的管理密码中去,另外保持网络内共享文件的选项打开,成功解决问题。

    展开全文
  • 二、在修改smb.conf文件之前,先拷贝一个备份,然后输入下面的命令修改smb.conf gedit /etc/samba/smb.conf 将smb.conf的文件内容改成如下 # This is the main Samba configuration file. You should read the ...

    一、首先确保你已经成功安装上了samba

    二、在修改smb.conf文件之前,先拷贝一个备份,然后输入下面的命令修改smb.conf

    gedit /etc/samba/smb.conf

    将smb.conf的文件内容改成如下

    # 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
    
    # server string is the equivalent of the NT Description field
      server string = Toaster Data
    
      security = user
      map to guest = Bad User
    
    # 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 = 0.0.0.0/32
    
    
    # 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
    
    ####### 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 <<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
    
    ########## 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 =======================
    
    # 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
    #下面根据你自己的共享文件夹修改path
    [workdir]
      path = ~/Documents/share
      public = yes
      case sensitive = yes
      map archive = no
      only guest = yes
      writable = yes
      force user = smbuser
    force group = smbuser
    

    三、修改完成之后,使用Windows访问,如果打开之后提示输入用户名和密码,按照要求输入,输入完成之后,如果还提示权限问题,打开cmd输入下面两条命令,重新访问即可

    net use
    net use * /del /y





    展开全文
  • Windows访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。” 网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上...
    问题及现象:
    在Windows下访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。

    网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上提示;

    解决方法:
    查看smb日志:cat /var/log/samba/log.smbd,发现服务启动正常。
    STATUS=daemon 'smbd' finished starting up and ready to serve connections


    再查看日志:cat /var/log/samba/log.user-20150327aa,发现在Windows端打开共享文件时samba崩溃了。
    BACKTRACE: 26 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f3d56b7514a]
    ......
    [2016/10/26 16:43:10.937268, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2016/10/26 16:43:10.937337, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd
    Please install an MTA on this system if you want to use sendmail!

    重新安装以下samba相关库解决
    sudo apt-get install --reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2
    展开全文
  • Windows访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。” 网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上提示; ...

    FROM:https://blog.csdn.net/dpppppp/article/details/53018099

    问题及现象:
    在Windows下访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。”

    网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上提示;

    解决方法:
    查看smb日志:cat /var/log/samba/log.smbd,发现服务启动正常。
    STATUS=daemon 'smbd' finished starting up and ready to serve connections


    再查看日志:cat /var/log/samba/log.user-20150327aa,发现在Windows端打开共享文件时samba崩溃了。
    BACKTRACE: 26 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f3d56b7514a]
    ......
    [2016/10/26 16:43:10.937268, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2016/10/26 16:43:10.937337, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd
    Please install an MTA on this system if you want to use sendmail!

    重新安装以下samba相关库解决
    sudo apt-get install --reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2

    PS:安装完成后,重启samba服务

    sudo service  smbd restart
    --------------------- 
    作者:D00PING 
    来源:CSDN 
    原文:https://blog.csdn.net/dpppppp/article/details/53018099 
    版权声明:本文为博主原创文章,转载请附上博文链接!

    展开全文
  • 最新服务器有点故障,后重新安装系统,很多东西都重新配置了,本人比较喜欢使用source insight编辑代码,所以肯定是要将linxu目录使用samba与windows共享了,但是却遇到一个很苦恼的问题,samba服务是开着的,...
  • 可以登录samba服务器,但是没有权限访问linux下的共享目录 1、确保linux下防火墙关闭或者是开放共享目录权限 iptalbes -F 2、确保samba服务器配置文件smb.conf设置没有问题,可网上查阅资料看配置办法 3、确保...
  • 摘要 使用Java通过JCIFS框架读写...使用Java访问拥有全部读写权限的共享文件夹比较简单,和普通的目录没有什么区别。但是,如果从Linux服务器访问一个windows服务器上需要用户名和密码验证的共享文件夹,就需要一...
  • 一般的shared folder放开admin和普通用户读写,tmp文件夹则放开admin,普通用户和guest读写权限便于临时性的设备间文件共享,权限设置完成后启动smb和afp服务,Mac OS使用没有问题,可以随意在用户和guest不同登陆...
  • Samba:您没有权限访问的问题

    千次阅读 2015-06-25 17:44:15
    一直想了解下Samba,今天用windows下载了taglist,本来想省事,直接搭个Samba服务器从Windows上直接把taglist传过去不用下载了,结果却遇到一个小问题折腾了一个下午。遇到的问题事后发现是如此的简单,做的时候却...
  • Linux用smb服务共享文件夹,实体文件夹都能访问,但用ln生成的软连接都提示没有权限,联系管理员。 解决办法: 修改smb配置文件vim /etc/samba/smb.conf 找到[global],在下边添加三句 unix extensions = no ...
  • windows中输入\\192.168.80.128无法访问。 解决办法: 将虚拟机改成桥接模式(本来是NAT模式),导致IP不在同一个网段。尽管能PING通,就是连不上。。。。 修改成桥接模式后,IP改成192.168.1.110。在win
  • 症状:在“网上邻居”中可以看到对方的计算机,但是访问共享时却提示“没有权限访问网络” 解决:在开始菜单运行中输入secpol.msc启动“本地安全策略”,本地策略 -> 用户权利分配,打开“拒绝从网络访问这台计算机...
  • 【解决思路】思来想去,怀疑是否是smb.conf里面对文件操作权限没有打开写权限,于是乎打开配置文件一看,我可给的是最高权限了(0777),但为啥Windows就是没有权限了,一顿猛操作后还是先问问度娘吧,度娘说可能是...
  • 最近因为工作需要,想折腾Linux,熟悉Linux的开发,于是开始搭建samba,方便在Windows下用编译器访问虚拟机的linux文件。 跟着网上的教程,关闭了防火墙,安装了samba,并配置了 /etc/samba/smb.conf ,Windows能...
  • 转载 1、确保linux下防火墙关闭或者是开放共享目录权限(我是在...2、确保samba服务器配置文件smb.conf设置没有问题,可网上查阅资料看配置办法 我的配置: # See smb.conf.example for a more detailed config file or
  • 我有台Linux机器,为了...您可能没有权限使用网资源。请与这台服务器的管理员联系以查明您是否有访问权限。 拒绝网络访问。”   检查了smb.conf文件好多次,确认没有错,可总是访问不了,最后网上搜索之后,...
  • 我有台Linux机器,为了与Windows复制文件方便些,准备启用samba,...您可能没有权限使用网资源。请与这台服务器的管理员联系以查明您是否有访问权限。 拒绝网络访问。” 检查了smb.conf文件好多次,确认没有...
  • 雪豹系统和SMB不兼容的问题的解决汇总 从雪豹无法访问Windows的共享文件夹:解决方法: 很简单,在Connect to Server中,在地址后面加入端口号139, 比如: smb://server:139/sharename出现权限错误-36问题: 这个问题...
  • 中标麒麟OS连接win10上的SMB共享

    千次阅读 2020-07-13 15:51:54
    中标麒麟系列OS访问windows上的共享文件夹(SMB) 1.开启win上的Samba共享服务 (控制面板-程序-启用或关闭windows功能,如图1) 2.设置文件夹共享 2.1(右击文件夹-属性-共享,添加访问的用户名,没有可以新建,...
  • 但是却发现没有写入的权限。从ubuntu共享出去的文件,只允许一个叫做tq2440的用户访问。 【解决过程】 1.最容易想到的原因就是smb的配置是否正确了,但是我这里确保我的配置是正确的,是通过samba的图形界面配置的...
  • windows10 局域网共享

    2020-12-25 15:39:24
    windows10 1709以上版本局域网共享问题解决方案 ...4、其他人访问共享时若提示没有权限,需要设置共享文件夹的权限 问题:打开网络查看,若能看不到自己,也访问不了别人,需要开启SMB1.0/CIFS文件系统支持 ...
  • 摘要 使用Java通过JCIFS框架读写...使用Java访问拥有全部读写权限的共享文件夹比较简单,和普通的目录没有什么区别。但是,如果从Linux服务器访问一个windows服务器上需要用户名和密码验证的共享文件夹,就需要一...
  • 摘要使用Java通过JCIFS框架读写共享...使用Java访问拥有全部读写权限的共享文件夹比较简单,和普通的目录没有什么区别。但是,如果从Linux服务器访问一个windows服务器上需要用户名和密码验证的共享文件夹,就需要一...
  • 如果不打开nmb服务器的话,只能通过IP来访问,比如在Windows的IE浏览器上打入下面的一条来访问; \\192.168.1.5\共享目录 \\192.168.1.5\opt 而nmb是解析用的,解析了什么呢?就是把这台Linux机器所共享的工作...
  • ubuntu系统samba创建文件夹无权限

    千次阅读 2017-03-20 15:30:19
    在centos服务器上配置了samba,security设置为user,而且也通过smbpasswd配置了密码,但是在windows访问服务器上的路径,一直是报错: 即使把smb.conf里对应共享目录的权限设置成不要验证,仍然会有报错。网上...

空空如也

空空如也

1 2 3
收藏数 43
精华内容 17
关键字:

windows没有权限访问smb