精华内容
下载资源
问答
  • 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内的管理密码中去,另外保持网络内共享文件的选项打开,成功解决问题。

    展开全文
  • 服务器上设置了共享,设立了多个帐号用来...现在的问题是,有部分客户端是以administrator的账户登录的,访问共享的时候不会弹出输入用户名密码的对话框,而是直接能看到共享文件夹,但是点进去的时候提示无权限访问
  • WINDOWS访问SAMBA提示没有权限

    千次阅读 2017-04-29 10:13:31
    4.如果windows下登录samba服务器后无法访问linux下共享目录,提示没有权限。 则检查   a、确保linux下防火墙关闭或者是开放共享目录权限   b、确保samba服务器配置文件smb.conf设置没有问题,可...

    转载注明出处:http://www.cnblogs.com/fklin/articles/2772364.html

    LINUX samba配置共享文件目录

     

    1.使用rpm -qa|grep samba 查看是否安装samba

     

    samba-winbind-clients-3.5.4-68.el6.x86_64

    samba-3.5.4-68.el6.x86_64

    samba-client-3.5.4-68.el6.x86_64

    samba-common-3.5.4-68.el6.x86_64

    已安装

    2.更改/etc/samba/smb.conf配置

    [global]  
        dos charset = cp936  
        display charset = UTF-8  
        workgroup = MYGROUP  
        server string = Samba Server Version %v  
        log file = /var/log/samba/log.%m  
        max log size = 50  
        cups options = raw  
      
    [homes]  
        comment = Home Directories  
        read only = No  
        browseable = No  
      
    [printers]  
        comment = All Printers  
        path = /var/spool/samba  
        printable = Yes  
        browseable = No  
      
    [tools]  
        comment = tools  
        path = /tools  
        read only = No  
        guest ok = Yes  
      
    [home]  
        comment = User Directory  
        path = /home/%U  
        read only = No  

    [global]
    	dos charset = cp936
    	display charset = UTF-8
    	workgroup = MYGROUP
    	server string = Samba Server Version %v
    	log file = /var/log/samba/log.%m
    	max log size = 50
    	cups options = raw
    
    [homes]
    	comment = Home Directories
    	read only = No
    	browseable = No
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	printable = Yes
    	browseable = No
    
    [tools]
    	comment = tools
    	path = /tools
    	read only = No
    	guest ok = Yes
    
    [home]
    	comment = User Directory
    	path = /home/%U
    	read only = No

    添加smb访问用户smbpasswd -a root

     

    3.重启service smb restart

    4.如果windows下登录samba服务器后无法访问linux下共享目录,提示没有权限。

    则检查

     

    a、确保linux下防火墙关闭或者是开放共享目录权限

     

    b、确保samba服务器配置文件smb.conf设置没有问题,可网上查阅资料看配置办法  

    c、确保setlinux关闭,可以用setenforce 0命令执行。 默认的,SELinux禁止网络上对Samba服务器上的共享目录进行写操作,即使你在smb.conf中允许了这项操作。       /usr/bin/setenforce 修改SELinux的实时运行模式  

    setenforce 1 设置SELinux 成为enforcing模式

    setenforce 0 设置SELinux 成为permissive模式  

    如果要彻底禁用SELinux 需要在/etc/sysconfig/selinux中设置参数selinux=0 ,或者在/etc/grub.conf中添加这个参数

      /usr/bin/setstatus -v  

     

    展开全文
  • windows 访问linux smb

    2018-06-08 09:16:29
    linux smb环境搭建,windows7操作系统不能访问原因,网段IP地址访问权限,用户读写访问访问权限配置文件。
  • 二、在修改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





    展开全文
  • 1 win 10 操作 右键某一文件夹->共享->高级共享->共享此文件夹 ...smb://laptop-ncfey/share/ 然后需要输入密码。用户名:打开cmd,可以看到用户名。密码:也就是你开机输入的密码。 参考

    1 win 10 操作

    右键某一文件夹->共享->高级共享->共享此文件夹
    在这里插入图片描述
    如果ubuntu客户端需要copy到win10的share文件夹,需要开启权限,默认只能读取,不能写入。
    更改权限:
    在这里插入图片描述

    2. ubuntu 操作

    右键查看网络路径:

    展开全文
  • (要让共享的文件夹在WINDOWS下可写,最关键的步骤是在LINUX下将该文件夹改为777权限,不仅如此,还要在SMB.CONF配置文件中,修改该文件夹为可写状态,两者缺一不可) 本文转自 qq8658868 51...
  • (1)Linux访问Windows共享或者Linux共享资料给Windows时,其实都是在使用一个叫做Samba的软件。这里要讲的Linux需要用到的工具就是Samba软件中的一种,samba-client,在尝试访问Windows共享之前,需要首先确认samba...
  • Windows访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。” 网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上...
  • linux下mount windows共享文件夹权限问题: mount -t cifs -o username=user_account,password=user_password,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 //10.0.4.120/share /mnt
  • win10 通过 SMB访问mac遇到权限问题

    千次阅读 2019-10-03 14:02:45
    win10 通过 SMB访问mac遇到权限问题第一步修改安全策略,改为HTLMv2打开mac终端,输入windows登录时,用户名为‘域名\用户名’ 第一步修改安全策略,改为HTLMv2 打开mac终端,输入 ‘scutils --get HostName’ ...
  • 请问哪里配置有问题吗?请大神指点迷津;
  • 问题:配置好samba的配置文件后,用windows访问时显示没有权限访问, 解决办法: 执行setenforce 0 执行iptables -F 解决问题
  • Windows访问samba,提示“您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。” 网络没问题,可以相互ping通,Windows下面可以看到samba共享的文件夹,打开文件夹提示以上提示; ...
  • 问题:windows突然无法访问自己的samba服务器,报没有权限,需要联系网络管理员 解决: 第一步.win key+R,输入“control userpasswords2”,打开“用户账户”。 第二步:选择高级选项卡,选择密码管理。 第三步:...
  • iPhone使用smb查看Windows共享文件夹

    千次阅读 2020-06-25 16:54:10
    打开Windowssmb功能 点击Windows“开始”按钮,再点击 “设置” 在设置界面搜索框中搜索“控制面板” 打开控制面板,点击“程序”-“程序和功能”-“启用或关闭Windows功能” 在弹出对话框中勾选SMB1.0支持,点击...
  • 1、关闭centos 防火墙或开smb服务端口 systemctl stop firewalld 2、setenforce 0
  • 基于smb windows与linux共享

    千次阅读 2019-03-23 14:34:47
    SMB(全称是Server Message Block)是一个协议名,它能被用于Web连接和客户端与服务器之间的信息沟通。 用于局域网分享网络文件用,也可以打印。 samba 是基于SMB协议(ServerMessage Block,信息服务块)的开源软件...
  • Windows搭建SMB服务

    千次阅读 2020-03-14 12:43:09
    本文介绍在windows本地环境上搭建SMB服务从而实现文件共享
  • 最新服务器有点故障,后重新安装系统,很多东西都重新配置了,本人比较喜欢使用source insight编辑代码,所以肯定是要将linxu目录使用samba与windows共享了,但是却遇到一个很苦恼的问题,samba服务是开着的,...
  • Windows Server之浅谈SMB以及SMB小案例分享 gs_h关注4人评论89230人阅读2017-01-23 14:45:45 SMB由来 服务器消息区块(英语:Server Message Block,缩写为SMB,服务器消息区块),又称网络文件共享系统...
  • 假设公司有A,B,C三个部门,要求每个部门人员只能访问自己部门的文件,同时每个部门内设置一个文件管理员,可对本部门文件进行管理,其他则只允许读取和执行。另外再建一个公共文件区,让大家都可以访问。 1.新建...
  • Windows电脑SMB共享设置方法

    万次阅读 2020-01-10 09:58:40
    SMB(Server Message Block)(*nix平台和Win NT4.0又称CIFS)协议是Windows平台标准文件共享协议,Linux平台通过samba来支持。SMB最新版本v3.0,在v2.0基础上针对WAN和分布式有改进。 建议使用原版windows系统,...
  • 1) 检查samba配置文件 vim /etc/samba/smb.conf [mnt] comment = samba share dir path = /mnt/ public = yes writable = yes /*对共享目录有写入属性*/ browseable = yes 2) 设置 共享的路径在...
  • 1. 确认 防火墙关闭和getenforce 为Permissive 状态。...2.windows 登录切换 身份切换net use * /del //显示已建立的远程连接并询问是否确认删除,输入y删除,输入n暂不删除net use \\samba服务器的IP /del ...
  • win10无法访问smb共享文件夹的解决办法 之前在linux的几个图形化界面都可以在文件夹中输入: smb://ip/share 直接访问Linux服务器上的共享文件夹 但是在win10上进行同样的操作会让我打开win10商店搜索应用程序= = ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 17,062
精华内容 6,824
关键字:

windows没有权限访问smb