This brief tutorial will outline how to enable file sharing in Ubuntu. Questo breve tutorial illustrerà come attivare la condivisione di file in Ubuntu.
- Sharing files and folders across your network from your Ubuntu PC is every bit as easy as sharing files in Windows (arguably, it’s easier). La condivisione di file e cartelle in tutta la rete dal tuo PC Ubuntu è tanto facile quanto la condivisione di file in Windows (forse, è più facile). Start by right-clicking the folder you want to share, and select Share Folder . Inizio facendo clic destro sulla cartella che si desidera condividere e selezionare Condividi cartella. If the services required to share files/folders aren’t installed, you’ll be prompted to install them. Se i servizi necessari per la condivisione di file / cartelle non sono installati, ti verrà richiesto di installare.
- After clicking Install services they will automatically start to download and install. Dopo aver fatto clic su Installazione di servizi che essi verranno automaticamente a scaricare e installare.
- Once that has completed you’ll be presented with an options window. Una volta che ha completato ti verrà presentata una finestra delle opzioni. From here you can select the type of sharing (SMB or NFS), give the shared folder a name and decide if you want read-only access to the folder. Da qui si può selezionare il tipo di condivisione (SMB o NFS), alla cartella condivisa di un nome e decidere se si desidera che l'accesso in sola lettura alla cartella. Click OK when you’re done. Fare clic su OK quando hai finito.
- If you right-click on your newly shared folder and select Properties and then the Emblems tab, you can give the folder a unique icon so you’ll know it’s shared. Se fai clic destro sul nuovo cartella condivisa e selezionare Proprietà e poi la scheda Emblemi, è possibile fornire la cartella unica icona così potrai sapere che è condiviso.
- You can further modify the permissions of your shared folder by selecting the Permissions tab. È possibile inoltre modificare le autorizzazioni della cartella condivisa il tuo selezionando la scheda Autorizzazioni.
- Now open a terminal in Ubuntu and enter the command: Ora aprire un terminale in Ubuntu e immettere il comando:
sudo smbpasswd -a username sudo smbpasswd-un nome utente
This will add a SMB user. Questo aggiungerà un utente SMB.
- And now other computers can connect to your shared folder! E ora altri computer in grado di connettersi alla vostra cartella condivisa!




click to enlarge Clicca per ingrandire

click to enlarge Clicca per ingrandire

















{ 3 trackbacks } (3) trackbacks
{ 30 comments… read them below or (30 commenti… leggere qui sotto o add one aggiungere uno } )
And when it asks you for the username and password? E quando vi chiede per il nome utente e la password? Do you give the username and password of the linux account? Ti dà il nome utente e la password di linux?
Ferdinand, Ferdinando,
Yes - sorry I should have included that - will update shortly. Sì - dispiace vorrei che hanno incluso - aggiornerà a breve.
I have Ubuntu 7.04 running in Parallels Desktop. Ho Ubuntu 7,04 in esecuzione in Parallels Desktop. Will it possible to access a shared folder from Mac OS X running on the same machine. Sarà consentito di accedere a una cartella condivisa da Mac OS X in esecuzione sulla stessa macchina. I tried it but it didn’t work. Ho provato ma non ha funzionato.
I tried this, and cannot log in (from my windows machine) via my ubuntu username. Ho provato questo, e non può accedere (dalla mia macchina Windows) tramite il mio ubuntu nome utente. (which is “aamir”). (che è "aamir"). I can see the PC in “My Network Places”. Vedo il PC in "My Network Places".
Please assist! Vi preghiamo di assistere!
I tried the same approach as the one listed here but, under OS X (10.3.9), after I enter the Ubuntu admin username and password I get an error which says Can not connect as the username or password is incorrect. Ho provato lo stesso approccio come quello qui elencati, ma, sotto OS X (10.3.9), dopo aver Ubuntu immettere il nome utente admin e la password appare un messaggio di errore che dice Impossibile connettersi come il nome utente o la password non è corretta.
I have attempted to connect from Ubuntu to the mac and that way works but not from the mac to Ubuntu. Ho tentato di connettersi da Ubuntu a Mac e che modo funziona, ma non da Mac a Ubuntu. Any ideas? Tutte le idee?
To connect to your shared Linux folder on a Windows machine, enter sudo smbpasswd -a (username) in terminal and set your SMB password. Per collegare al tuo Linux cartella condivisa su una macchina Windows, inserire sudo smbpasswd-a (nome utente) nel terminale e impostare la propria password SMB.
Hi Salve
It seems that you also need to add a samba user : Sembra che è necessario aggiungere un utente Samba:
sudo smbpasswd -a usernamen sudo smbpasswd-a usernamen
After that started to work with my installation Dopo aver iniziato a lavorare con la mia installazione
Please include that we also need to add the user as a samba user using the command into the main article… I thought I had done something wrong until I scrolled down to see the comments Vi preghiamo di comprendere che abbiamo anche bisogno di aggiungere l'utente come un utente Samba con il comando nel principale articolo… ho pensato che avevo fatto qualcosa di sbagliato fino a quando mi scorse verso il basso per visualizzare i commenti
Thanks for the article. Grazie per l'articolo.
Excellent support article here. Eccellente sostegno articolo qui. I have only been using Ubunta for couple of days and I love it. Ho utilizzato solo per Ubunta paio di giorni e mi piace. My feelings for Windows XP and Vista are moving more and more towards Ubunta. I miei sentimenti per Windows XP e Vista si stanno muovendo sempre più verso Ubunta.
Thank you for your help. Grazie per il vostro aiuto.
Lee Farris Lee Farris
yeah… another one that was stumped until the comments about adding the samba password… yeah… un altro che era stato fino a quando il stumped commenti su come aggiungere la password di samba…
now it works great! adesso funziona benissimo!
Great article, although you’re missing half the equation. Grande articolo, anche se vi state perdendo la metà della equazione. You need to add a user as several people have mentioned before you’re tutorial can work. È necessario aggiungere un utente come molte persone hanno parlato prima di sei tutorial può funzionare. (and a possible samba restart? - I just did it just in case) (e un possibile riavviare samba? - Ho appena fatto nel caso in cui)
sudo /etc/init.d/samba restart sudo / etc / init.d / samba restart
Peter - yeah I really do have to update this. Peter - yeah mi hanno davvero a questo aggiornamento. The samba user step I forgot as it had already been created. Samba utente passo ho dimenticato come aveva già stato creato. Thanks! Grazie!
And what should i do if i want Windows users to connect to my shared files without entering any password? E che cosa devo fare se vogliono gli utenti di Windows di collegarsi al mio file condivisi, senza attraversare la password?
Thanks for the guide- I’ve been trying to work out if it is possible to share files in Ubuntu all morning and finally found this page. Grazie per la guida-Sto cercando di capire se sia possibile per la condivisione di file in Ubuntu e tutti i mattina finalmente trovato questa pagina.
I right clicked on a file on this computer and installed both services, then chose SMB because NFS asked me about IP addresses, network name which I don’t know off hand. I clic destro su un file presente sul computer sia installato e servizi, quindi scelto NFS, SMB, perché mi ha chiesto circa gli indirizzi IP, nome di rete che non so fuori mano.
My other computer asked me for a password for MSHOME but did not recognise my Ubuntu password. Altri miei computer mi ha chiesto una password per MSHOME ma non riconoscere la mia password di Ubuntu.
Tried sudo smbpasswd -a usernamen as above with no success. Provato sudo smbpasswd-a usernamen come sopra senza alcun successo.
Then went through the same process on my other computer and found I could access the shared folder with no problem from this computer. Poi attraverso lo stesso processo per il mio computer ed ho trovato potrebbe accedere alla cartella condivisa senza alcun problema da questo computer.
I checked permissions/folder access on the shared folders on both computers and found one set to ‘access files’ and the other to ‘none’. Ho verificato le autorizzazioni / cartella l'accesso a cartelle condivise su entrambi i computer e trovato un set di 'accedere ai file' e gli altri a 'nessuno'. (These were the default settings- don’t know why they were different.) (Queste sono state le impostazioni di default-non si conosce il motivo per cui sono stati diversi.)
I was then able to see the shared folder on the other computer without being asked for a password. Mi è stato quindi in grado di vedere la cartella condivisa su un altro computer senza viene chiesto di immettere una password.
Under what circumstances is it necessary to set up a samba password? In quali circostanze è necessario impostare una password di samba?
I think file sharing in both directions is working now, even though I haven’t gone through the password process on this computer. Penso che la condivisione di file in entrambe le direzioni di lavoro è adesso, anche se non hanno superato il processo di password su questo computer.
If possible could you include an idiots guide as to the relative merits of SMB and NFS (and indeed, what they are). Se possibile si potrebbe includere un idioti come guida per meriti relativi di SMB e NFS (e in effetti, quello che sono).
Is there any reason to use NFS when SMB seems to be far easier to set up? Vi è alcuna ragione per usare NFS, SMB, quando sembra essere di gran lunga più facile da impostare?
Again, many thanks! Ancora una volta, molte grazie!
While I should have known better, the ’smbpasswd’ step had me stumped. Mentre avrebbe dovuto sapere meglio, l ' "smbpasswd' passo mi aveva stumped. Thanks for the kick in the right direction. Grazie per il calcio nella giusta direzione.
how do you connect to your shared folder ? come si fa a collegare il vostro cartella condivisa?
How do you setup a shared folder that allows anonomous windows users. Come si fa a configurare una cartella condivisa che consente anonomous gli utenti di Windows. I would like to create an “In Box” folder and share it to my entire network so users can grab files from it or place files in it. Desidero creare un "nella casella" cartella e condividere la mia intera rete in modo che gli utenti in grado di afferrare i file da essa, né è luogo file in essa contenuti.
In a network of hundreds of users putting a username and password for each user will not work. In una rete di centinaia di utenti di mettere un nome utente e una password per ogni utente non funzionerà.
same here: stesso qui:
sudo smbpasswd -a usernamen sudo smbpasswd-a usernamen
fixed it for me, wasted a couple of hours today trying to get it working è fissato per me, sprecato un paio di ore di oggi, cercando di ottenere che di lavoro
thanks! grazie!
gosh, i went through the smbpasswd thingy too. gosh, sono andato attraverso il smbpasswd thingy troppo.
and as a newbie, it took me 3 days befor i found this page… dang! e come un newbie, mi ci sono voluti 3 giorni prima ho trovato questa pagina… dang!
thanks a ton, soup on Jun 12, 2007 grazie una tonnellata, zuppa a giugno 12, 2007
thanks a lot! Thanks a lot! this worked for me! questo ha lavorato per me!
when i try to let ubuntu install the services for the first time, i get no choice regarding the protocols. Quando cerco di lasciare ubuntu installare i servizi per la prima volta, ho nessuna scelta per quanto riguarda i protocolli. hardy just installs samba, but not nfs…what’s wrong here? ardito appena installato samba, ma non nfs… cosa c'è di sbagliato?
I’m running two computers with Ubuntu and I tried all of this and I still don’t see anything when I go to Places–> Network. Sono in esecuzione due computer con Ubuntu e ho provato tutto questo e io ancora non si vede niente quando cerco di accedere a luoghi-> Rete. Do I need to change settings on my router? Ho bisogno di modificare le impostazioni per il mio router?
Well hardy heron ubuntu I did most of the above including the smbpasswd stuff. Ben ardito airone ubuntu ho fatto la maggior parte di quanto sopra ivi compresa la smbpasswd roba. The process was similar but not exact. Il processo è stato simile, ma non esatto. On my simple Xubuntu machine sharing right click sharing is not an option. Sulla mia macchina Xubuntu semplice condivisione di destra fai clic su "Condivisione non è un'opzione. On win98 net neighbourhood there is no singn of Ubuntu. A win98 netto di vicinato non vi è alcuna singn di Ubuntu. Any suggestions? Qualche suggerimento? Ian
I get Ricevo
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. 'Netto usershare' restituito l'errore 255: netto usershare: non può aprire usershare directory / var / lib / samba / usershares. Error Permission denied Errore Autorizzazione negata
You do not have permission to create a usershare. Non avete il permesso di creare un usershare. Ask your administrator to grant you permissions to create a share. Chiedete al vostro amministratore di concedere l'autorizzazione per creare una quota.
When I try to share the folder. Quando provo a condividere la cartella.
Thanks Grazie
I also get the error, Ho anche ottenere l'errore,
“net usrshare returned error 255″ when I try to create a shared folder in ubuntu Hardy heron. "Netto usrshare ha restituito l'errore 255" quando cerco di creare una cartella condivisa in Ubuntu Hardy airone.
Thanks!!! Grazie! I have one lonely *nix machine on a windows domain - I appreciated this. Ho una solitaria macchina * nix a un dominio Windows - ho apprezzato questo.
Something is missing from the instructions. Qualcosa manca dalle istruzioni. Here is what I get: Ecco cosa ho:
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. 'Netto usershare' restituito l'errore 255: netto usershare: non può aprire usershare directory / var / lib / samba / usershares. Error Permission denied Errore Autorizzazione negata
You do not have permission to create a usershare. Non avete il permesso di creare un usershare. Ask your administrator to grant you permissions to create a share. Chiedete al vostro amministratore di concedere l'autorizzazione per creare una quota.
I am also installing on hardy and running into this problem: Sono anche l'installazione su ardito e funzionante in questo problema:
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. 'Netto usershare' restituito l'errore 255: netto usershare: non può aprire usershare directory / var / lib / samba / usershares. Error Permission denied Errore Autorizzazione negata
You do not have permission to create a usershare. Non avete il permesso di creare un usershare. Ask your administrator to grant you permissions to create a share. Chiedete al vostro amministratore di concedere l'autorizzazione per creare una quota.
any ideas there? tutte le idee?
ok here is the hardy fix: ok qui è l'ardito correzione:
I selected to install samba (file server) when i installed hardy server edition-this is ok. Ho scelto di installare Samba (file server) quando ho installato ardito Server Edition-questo è ok.
when i got the desktop installed i tried to right click in nautilus (file explorer) and share the file and I got the previous error (net usershare 255). quando ho visto il desktop installato ho cercato di fare clic destro in Nautilus (File Explorer) e condividere il file e ho avuto l'errore precedente (al netto usershare 255).
to fix it i went to system ->administration -> users and groups. per risolvere il problema Ho trovato Sistema -> Amministrazione -> utenti e gruppi. then unlock (enter password) then manage groups. quindi sbloccare (immettere la password), quindi gestire i gruppi. choose sambashare then properties. sambashare quindi scegliere Proprietà. select your name hit ok, close, close. selezionare il tuo nome colpito OK, chiudere, chiudere.
Then logout and log back in and then right click and try to share the directory. Logout e quindi eseguire nuovamente l'accesso, quindi fare clic destro e provare a condividere la directory.
For some reason in hardy samba doesn’t add you to the sambashare group. Per qualche motivo in ardito samba non aggiunge che il sambashare gruppo.
I didn’t do any of that sambashare stuff! Non ho di fare qualsiasi sambashare che roba! I just followed what Brad said and it worked for me. Ho appena seguito Brad ciò che ha detto e ha funzionato per me.
“to fix it i went to system ->administration -> users and groups. "Per risolvere il problema Ho trovato Sistema -> Amministrazione -> utenti e gruppi. then unlock (enter password) then manage groups. quindi sbloccare (immettere la password), quindi gestire i gruppi. choose sambashare then properties. sambashare quindi scegliere Proprietà. select your name hit ok, close, close. selezionare il tuo nome colpito OK, chiudere, chiudere.
Then logout and log back in and then right click and try to share the directory. Logout e quindi eseguire nuovamente l'accesso, quindi fare clic destro e provare a condividere la directory. ” "
Thanks for the help. Grazie per l'aiuto. When I tried the first fix in the command line thing, it always said cannot modify password, so I gave up and tried Brad’s sollution, and voila, it worked! Quando ho provato la prima a fissare la linea di comando cosa, è sempre detto non può modificare la password, così ci ho rinunciato e ho cercato di Brad sollution, e voilà, ha funzionato!
Leave a Comment Lascia un commento