GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Samba non può condividere la cartella:non è possibile convertire il nome "tutti" in A Sid?

Dopo aver condiviso con successo samba già pochi giorni fa, oggi ho la stessa cosa ma ho ricevuto il seguente errore:

'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. 
The connection was refused. Maybe smbd is not running.

Quando provo ad avviare/riavviare il servizio samba, ottengo quanto segue

$ sudo service samba status
 * nmbd is running
 * smbd is not running
$ sudo service samba start
$ sudo service samba restart
$ sudo service samba status
 * nmbd is running
 * smbd is not running

Il mio /var/log/samba/smbd.log

[2014/01/15 16:21:46,  0] smbd/server.c:1072(main)
  smbd version 3.6.18 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/01/15 16:21:46.426302,  0] smbd/server.c:1128(main)
  standard input is not a socket, assuming -D option
[2014/01/15 16:21:46.428538,  0] auth/auth_util.c:708(get_guest_info3)
  SamInfo3_for_guest: Unable to locate guest account [guest]!
[2014/01/15 16:21:46.428578,  0] smbd/server.c:1251(main)
  ERROR: failed to setup guest info.

Il mio /etc/samba/smb.conf

$ grep -E "^[^#;].*" /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
   pam password change = yes
   map to guest = bad user
        usershare allow guests = yes
        username map = /etc/samba/smbusers
        security = user
        guest ok = yes
        ; guest account = nobody
  usershare max shares = 100
  usershare owner only = False

Risposta accettata:

Il problema era con il nome utente. Ho decommentato questa riga:

guest account = nobody

avendo nobody utente nel mio sistema e ora funziona bene.


Ubuntu
  1. Come montare una condivisione Samba su Ubuntu e Debian

  2. Come scrivere il percorso di una cartella con spazio nel suo nome??

  3. Condividere davvero una cartella con più utenti su un computer?

  4. Strana cartella in /tmp con nome Ssh-*?

  5. Cartella condivisa host di Windows in Ubuntu 20.04?

Come configurare la condivisione Samba Server su Ubuntu 22.04 Jammy Jellyfish Linux

Installa Samba su Ubuntu 20.04 e condividi file su Linux e Windows

Come condividere una cartella su Ubuntu per accedere da Windows 10

Errore utente/password di Samba Share dopo l'aggiornamento?

Non riesci a eseguire l'interfaccia Samba dopo aver installato 13.04?

Come installare Samba su Ubuntu 18.04 Bionic Beaver