歡迎您光臨本站 註冊首頁

samba伺服器建好之後,在WINDOWS下訪問輸入用戶名密碼進不去

samba伺服器建好之後,在WINDOWS下訪問輸入用戶名密碼進不去

      workgroup = LINUXSIR
      netbios name = LinuxSir
      server string = Linux Samba Test Server
      security = user
      Encrypt passwords=yes
      Smb passwd file= /etc/smbpasswd
      client code page = 939

      comment = linuxsiradmin
      path = /opt/linuxsir/
      create mask = 0664
      writeable = yes
      valid users = linuxsir
      browseable = yes

      path = /opt/linuxsir/sirshare
      writeable = yes
      browseable = yes
      guest ok = yes

      path = /opt/linuxsir/sirallrw
      writeable = yes
      browseable = yes
      guest ok =yes

      comment = sir0104rw
      path = /opt/linuxsir/sir0104
      create mask = 0664
      directory mask = 0775
      writeable = yes
      valid users = linuxsir,@sir0104
      #@sir0104是用戶組;
      browseable = yes

      comment = sir01
      path = /opt/linuxsir/sir01
      create mask = 0664
      directory mask = 0775
      writeable = yes
      valid users = sir01,@linuxsir
      browseable = yes

      comment = sir02
      path = /opt/linuxsir/sir02
      create mask = 0664
      directory mask = 0775
      writeable = yes
      valid users = sir02,@linuxsir
      browseable = yes

      comment = sir03
      path = /opt/linuxsir/sir03
      create mask = 0664
      directory mask = 0775
      writeable = yes
      valid users = sir03,@linuxsir
      browseable = yes

      comment = sir04
      path = /opt/linuxsir/sir04
      create mask = 0664
      directory mask = 0775
      writeable = yes
      valid users = sir04,@linuxsir
      browseable = yes
"smb.conf1" 66L, 1647C
《解決方案》

用戶,密碼是怎麼添加的?

日誌發出來,看一下
《解決方案》

smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
smbd/server.c:main(751)
  standard input is not a socket, assuming -D option
lib/pidfile.c:pidfile_create(86)
  ERROR: smbd is already running. File /var/run/samba/smbd.pid exists and process id 1858 is running.
smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
lib/charset.c:load_client_codepage(213)
  load_client_codepage: filename /usr/share/samba/codepages/codepage.939 does not exist.
smbd/server.c:main(707)
  smbd version 2.2.7a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
lib/charset.c:load_client_codepage(213)
  load_client_codepage: filename /usr/share/samba/codepages/codepage.939 does not exist.
《解決方案》

這個日誌看不出來有什麼問題,再多發一點

重要的是,你添加用戶的方式。

samba 用戶必須是系統用戶。
然後再smbpasswd -a user  來添加SAMBA用戶。不知你是否是這樣做的?
《解決方案》

沒有什麼日誌,就smb.log和nmb.log,我是用useradd username ,gruopadd gruopname添加的用戶和組,然後再smbpasswd -a username的.
《解決方案》

當用戶無法進入的時候

日誌中肯定會有異常報告!!!
《解決方案》

我也遇到這個問題,我是修改了一下系統用戶的用戶名,也修改了其對應的文件夾,但是使用samba登錄時,看不到新的文件夾,只能看到老的文件夾
《解決方案》

向大家學習了!
《解決方案》

配置完之後有沒有把smb重啟一下阿?

[火星人 ] samba伺服器建好之後,在WINDOWS下訪問輸入用戶名密碼進不去已經有795次圍觀

http://coctec.com/docs/service/show-post-30800.html