Condividere una cartella con SAMBA. sabato 28 aprile 2007
Posted by lele85 in Guide semplici/per profani, How-to et similia, Protocolli di rete, Samba.trackback
Prima di tutto un po’ di teoria. Cosa è SAMBA? Il SAMBA nasce come genere musicale alternativo AFRO-BRASILIANO. Praticato dagli schiavi Africani deportati a Salvador de Bahia nel samba originario (bajano) troviamo miscelati i ritmi delle liturgie di varie divinità appartenenti alle religioni di vari popoli africani.
Voi direte cosa c’entra? Ecco SAMBA per linux, come il SAMBA per i fratelli Africani mescola le liturgie, è quello che fa convivere bene con buona pace dei diretti interessati il vostro PC linux su una rete windows o viceversa.
Mi è capitato spesso di andare a casa di un mio amico e trovarmi nella situazione di voler condividere una piccola cartella del mio piccolo mondo linux all’interno della sua rete wifi infarcita di client windows. Ferito nell’orgoglio dagli odiosi commenti del tipo “dai… condividi una cartella, con windows è così facile!” mi sono deciso, nessun windowsaro si potrà mai più permettere di farlo!
Ma partiamo con la guida vera e propria. La seguente guida è da pensarsi per le distribuzioni “debian based” ma può essere estesa a tutto il mondo linux con facilità.
Per prima cosa dobbiamo scaricare e installare SAMBA con questo comando ( o con quello del gestore di pacchetti della vostra distro, che sia esso yum, urpmi o… boh):
# sudo apt-get install samba (installa samba)
# sudo apt-get install smbfs (installa il samba file system)
Entrambi i pacchetti dovrebbero già essere installati sulla vostra macchina, in quel caso l’apt (o qualsiasi gestore pacchetti voi utilizziate) vi dirà con estrema gentilezza che avete già entrambi i pacchetti all’ultima versione disponibile.
Per far partire | fermare | riavviare | ricaricare il servizio samba il comando è il seguente:
# sudo /etc/init.d/samba (start | stop | restart | reload)
Tutto ciò che ora dobbiamo fare ora è associare ad ogni utente linux della nostra macchina un utente samba con rispettiva password.
Questo può essere fatto con il semplice comando:
# sudo smbpasswd -a <nomeutente>
Altrettanto semplicemente possiamo rimuovere un utente samba con il comando:
# sudo smbpasswd -x <nomeutente>
Ricordiamo che con questo metodo gli utenti samba sono “mappati” sugli utenti linux del nostro sistema, e questo gli fa ereditare tutti i permessi associati localmente a tali utenti.
A questo punto tutto è pronto! Possiamo condividere le cartelle inserendo il loro percorso in fondo al file /etc/samba/smb.conf in questa maniera:
PER KDE:
# sudo kate /etc/samba/smb.conf
PER GNOME:
# sudo gedit /etc/samba/smb.conf
PER TUTTI:
# sudo nano /etc/samba/smb.conf
e aggiungere alla fine del file le seguenti righe:
[NOME_DELLA_CONDIVISIONE]
path = /home/pincopallino/cartella_condivisa
guest ok = yes (se vogliamo abilitare l'accesso guest)
read only = no (se vogliamo che i file siano modificabili da chi vi accede)
Adesso date un bel:
# sudo /etc/init.d/samba restart
e tutto dovrebbe funzionare a meraviglia!
Edit:
Aggiungo la parte relativa alla connessione da una macchina windows:
Prima di tutto sappiate che la condivisione di rete sarà messa di default da samba in workgroup, quindi non cercate in mshome o affini. Per navigare nella condivisione in genere basta accedervi da risorse di rete, visualizzando il gruppo di lavoro workroup. All’interno di questo dovreste trovare il vostro pinguino. Doppiocliccate e inserite nome utente e password precedentemente assegnate e il gioco è fatto!
Se riscontrate problemi con questa metodologia proviamo con una alternativa. Andate nel menu start e cliccate su esegui (run). A questo punto inserite nella finestra il seguente comando:
\\xxx.xxx.xxx.xxx (Naturalmente con l'ip della macchina linux a cui vorrete connettervi al posto delle x!)
Dovrebbe quindi apparire la solita richiesta di username e password, che vi permetterà di navigare nelle condivisioni!
That’s all folks (chiusura consigliata caldamente da triex, noto ammiratore di bugs bunny)! Naturalmente consigli aggiunte o segnalazioni di errori non sono bene accetti perchè sono permaloso e parecchio incazzoso, ma dovrò comunque subirle e prenderne atto con grandissima vendetta e furiosissimo sdegno.
Alla prossima!
Edit:
Sotto l’ottimo consiglio di kijio inserisco il link della homepage di questo progetto che potete visionare per ottenere ulteriori informazioni, http://us4.samba.org/samba/.
Complimenti!Post mondiale! ;D
Bravi vedo che vi date da fare senza di me…. due frustrate ad entrambi 😉
ora ci penso me a criticarvi! 😉
potevate mettere qualche link su samba .. cacchiolo !
inoltre un paio di link per approfondimenti, sarebbe stata una cosa ancor piu’ completa. Un paio di immagini con windows e linux poi avrebbe completato il tutto ..
Anche io sbaglio talvolta e faccio il vostro stesso errore, non mettendo link di approfondimenti .. pero’ io, so’ io! 😛 (sta frase mi ricorda qualcuno … )
cmq bravo .. ottimo articolo! 😉 ci voleva proprio!
Se poi ne fate altri di approfondimento .. li leggero’ sicuramente!
scusatemi ma io non riesco il portatile non mi vede la cartella condivisa perche???
Io sono il solito sfigato e nonostante abbia provato 1000 modi non funzia un piffero.
Qualcuno m’ha suggerito di provare pure con swat a configurare samba ma ci sono 1000 opzioni ed è veramente esagerato anche se estremamente completo per chi lo sa usare.
Ora io ho installato e poi disinstallato diverse volte samba dato che con feisty non riesco a collegarmi al pc con winxp che è collegato tramite router netgear.
Ora son messo che ho installato samba e smbfs e ho settato tramite sistema, amministratore, cartelle condivise le cartelle condivise e il nome della rete e creato l’utente per samba che l’ho messo uguale all’utente che uso per fare il login.
Da windows vedo il pc con ubuntu ma non ci posso entrare dato che dice che devo contattare l’amministratore di sistema e io vorrei invece che mi domandasse la password per fare il login e vedere ste benedette cartelle che voglio condividere.
Da ubuntu è + tragica, vedo i 2 pc ubuntu e windows, su quello di ubuntu dice che non può entrarci, impossibile mostrare il contenuto ecc.ecc. mentre su quello di windows continua a chiedermi nome utente e password e dunque non se ne fa niente neppure li.
Che poi se vado sul browser e digito smb://192.168.0.2/ che sarebbe l’indirizzo di questo pc con ubuntu le cartelle condivise si vedono eccome!
Riuscissi a trovare qualcuno che mi spiega come risolve sto problema assurdo, invece trovo solo guide che in pochi passi spiegano una cosa che dovrebbe funzionare ma che in realtà a me non funziona.
@sito
sito spiegati meglio così cerco di darti una mano:
mi sembra di aver capito che hai una rete con due pc uno windows e uno ubuntu e le cartelle da condividere sono su ubuntu, e dovrebbero essere raggiunte da windows.
E’ così?
Leggendo il tuo problema sembrerebbe che tu non hai creato l’utente samba sul sistema ubuntu, e per questo ti consiglio di rileggere questo post dove lele85 lo spiega.
Un altro dettaglio: le cartelle da condividere sono su altre partizioni di tipo vfat montate da fstab all’avvio?
In questo caso devi cambiare le opzioni di montaggio nel file fstab stesso per impostare i giusti permessi.
ciao, Denz.
raghi guida in!!!ottimo!
mi è servita
Salve ragazzi, io sono un’altro sfigato..
allora, ho 2 computer uno con win e uno con ubuntu messi in rete via router.
Ora dal computer con su win riesco ad accedere tranquillamente alle cartelle di ubuntu messe in condivisione.
Mentre se dal computer con su ubuntu seleziono Risorse
Ciao scusa, ho lasciato il messaggio a metà…
Comunque hai capito il problema…
Le cartelle condivise su win le vedo solo se digito smb://192.168.1.2(ip di win).
Mentre se vado su Rete vedo il computer di win, clicco e viene fuori l’errore:
“Il contenuto della cartella non può essere visualizzato”.
Cosa posso aver sbagliato??
Grzie, e ciao
Io su win non ho password.
Si, potrei anche risolverlo come dici te, comunque grazie lo stesso…
ciao
[…] 0.8.6 per presentarvi questo utilissimo programma. Si tratta semplicemente di un browser di reti SAMBA/CIFS, che vi permetterà di scorrere tra le condivisioni SAMBA della vostra […]
Anche se a distanza di moltissimi mesi da quando hai scritto questo articolo, ti ringrazio! Era proprio quello che cercavo! La condivisione tra Ubuntu (pc fisso) e Xp (portatile) funziona alla grande!
complimenti per l’impegno e la chiarezza del post che tra l’altro mi e’ stato di grande aiuto .
Ps. peccato che alla fine sono passato a windows 2003… cya!
ok funziona
ma tutte le volte che spengo il pc ubuntu devo associare nuovamente l’utente con sudo smbpasswd -a non è possibile salvare tale permesso ?
@salvatore
Non la procedura va fatta una volta sola. Se ogni volta devi rifarla c’è qualcosa che non va…
[…] Fonte: LinCom […]
Ciao,
io ho un suse 10 server dove ho configurato samba per la condivisione delle cartelle, se acceda da un pc win in workgroup mi chiede login e pwd, le inserisco e mi fa accedere, mentre se cerco di accedere alle cartelle condivise sa un pc in dominio mi chiede sempre utente e pwd ma quando la inserisco mi ripropone la scermate inserendo prima dell’utente il nome del dominio;
es. utnete pippo e pwd baudo mi si riapre cone dominio\pippo e non riesco ad accedere.
come risolvo?
grazie
e per condividere con con dominio windows ?
ipotizziamo che il dominio si chiamo CECCATO e devo
autorizzare tutti i suoi client, come si fa?
grazie a tutti
fabio
Hi there! I could have sworn I’ve visited your blog before but after going through many of the posts I realized it’s new to me.
Regardless, I’m certainly delighted I discovered it and I’ll be book-marking it and checking back frequently!
Hi, I do think this is a great blog. I stumbledupon it 😉 I will
come back yet again since I book-marked it. Money
and freedom is the best way to change, may you be rich and continue to help
other people.
When someone writes an article he/she keeps the idea of a user in his/her mind that how a user can know it.
Thus that’s why this article is great. Thanks!
Pretty element of content. I just stumbled upon your site and in
accession capital to claim that I acquire actually
enjoyed account your blog posts. Any way I’ll be subscribing for your augment and even I achievement you get entry to persistently rapidly.
This is my first time go to see at here and i am really impressed
to read everthing at alone place.
Hmm it looks like your website ate my first comment (it
was extremely long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
I as well am an aspiring blog writer but I’m still new to everything. Do you have any suggestions for inexperienced blog writers? I’d
certainly appreciate it.
It is really a great and helpful piece of information.
I am happy that you just shared this useful
information with us. Please stay us informed like this.
Thank you for sharing.
all the time i used to read smaller articles or reviews which also
clear their motive, and that is also happening with this
post which I am reading here.
Hi! I’ve been reading your web site for some time now and finally got the bravery to go ahead and give you a shout out from Houston Texas! Just wanted to mention keep up the great work!
Excellent, what a webpage it is! This website gives valuable facts
to us, keep it up.
Heya this is kind of of off topic but I was
wondering if blogs use WYSIWYG editors or if you have
to manually code with HTML. I’m starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be enormously appreciated!
Hey there I am so happy I found your webpage, I really found you
by mistake, while I was searching on Aol for something else,
Regardless I am here now and would just like to say thanks for a remarkable post and a all round
entertaining blog (I also love the theme/design), I don’t have time to go through it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome work.
wonderful issues altogether, you simply received a logo new reader.
What might you suggest in regards to your publish that you made
some days in the past? Any positive?
I know this web page gives quality dependent content and extra
information, is there any other web page which presents such stuff in quality?
hello there and thank you for your info – I have certainly
picked up anything new from right here. I did however expertise some technical points
using this website, as I experienced to reload the website a lot of times previous to
I could get it to load correctly. I had been wondering if your
web hosting is OK? Not that I am complaining, but sluggish loading
instances times will sometimes affect your placement in
google and could damage your high quality score if ads and marketing with Adwords.
Anyway I am adding this RSS to my email and could
look out for a lot more of your respective
exciting content. Ensure that you update this again
very soon.
Its like you read my thoughts! You seem to know a lot about this, such as you wrote the ebook in it or something.
I think that you just could do with a few percent to
power the message house a little bit, however other than
that, this is great blog. A great read. I will definitely
be back.
What’s up colleagues, its great piece of writing on the topic of teachingand fully explained, keep it up all the time.
I truly love your blog.. Excellent colors
& theme. Did you develop this site yourself?
Please reply back as I’m hoping to create my own personal blog and want to find out where you got this from or just what the theme is named. Many thanks!
Genuinely when someone doesn’t know afterward its up to other users that they will assist, so here it occurs.
It’s remarkable designed for me to have a web site, which is valuable in favor of my experience. thanks admin
Wow, incredible blog structure! How long have you ever been blogging for?
you make running a blog look easy. The entire look of your site is magnificent, as smartly as the content material!
Very shortly this website will be famous amid all blogging and site-building users, due to it’s pleasant articles or reviews
Someone essentially help to make severely posts I’d state. This is the first time I frequented your website page and up to now? I amazed with the research you made to create this actual submit incredible. Great job!
Terry Bradshaw was trying to interview Victor Cruz in the victorious michael kors
outlet locker room after the NFC Championship with
a winning record. Ten Carnival krewes lent floats for the
team that would get the first Monday night game at
the new $1.
I have been browsing online more than 2 hours today, yet I never found any interesting article like yours.
It’s pretty worth enough for me. Personally,
if all web owners and bloggers made good content as you did,
the net will be a lot more useful than ever before.
Nice blog here! Also your site loads up very fast!
What host are you using? Can I get your affiliate link to your
host? I wish my web site loaded up as fast as yours lol
En effet, les droits d’auteurs sont lourds a payer et aucun website ne peut se permettre de mettre des films
entiers a destination du public, sauf si le realisateur du film le decide
des le depart, comme ce fut le cas avec Home. Cependant,
je trouve que le prix des movies a la location sur internet est tout a fait raisonnable et permet
de regarder des films recents sans vider son portemonnaie.
Ne pas cliquer sur les Pubs !!!!
Parenting Magazine
Condividere una cartella con SAMBA. | LinCom
You have actually constantly gone above as well as beyond what was asked of you. Your dedication and also dedication to excellence is inspiring and also we thanks for it!
https://hslda.org/content/a/LinkTracker.aspx?id=4015475&appeal=385&package=36&uri=https://bonus-books.com/how-to-quickly-locate-local-businesses-online/
Amazingness can help you do more, much faster. Obtain the productivity increase you need to succeed.
http://www.response-o-matic.com/thank_you.php?u=www.payskip.org/5OgjdIuO5a/
We are absolutely thankful for your readiness to aid and also support us throughout the job. Your kindness is greatly valued. Thank you!
https://www.fhwa.dot.gov/reauthorization/reauexit.cfm?link=https://commercialrepairshop.com/electric-forklift-charger-repair-orange-county-california-by-my-location/
You light up the space with your visibility. Your enthusiasm is transmittable!
http://data.explorestlouis.com/scripts/memberLinks.asp?m=312&t=www.sprinterrepairnearme.com/sprinter-van-repair-shop-near-me
You brighten the room with your visibility. You are a fantastic incentive and leader.
https://www.moshtix.com.au/v2/ForceDesktopView?callingURL=https://www.reviewnearme.com/car-leaves-road-and-fatally-strikes-man-in-parking-lot-police-say-the-washington-post
You have such a kind as well as caring nature. You have a wonderful capacity to think outside package.
http://www.baraga.de/url?q=https://seniorcarein-home.com
You are an fantastic friend! Your positive attitude is motivating!
https://ak38.ru/bitrix/redirect.php?goto=https://internetmarketingsupply.com/internet-marketing-services/
The Amazingness life management device will aid you take your performance to the next level!
https://aljaafaria.mobi/quran/change-reciter.php?reciter=fast&url=https3A2F2Fmenmastermind.com2Fcommunication-training2F
Mental quality and also emphasis so that you can obtain every little thing done better than ever!
https://support.parsdata.com/default.aspx?src=3kiWMSxG1dSDlKZTQlRtQQe-qe-q&mdl=user&frm=forgotpassword&cul=ur-PK&returnurl=https://customengravingstore.com/
You presented the facts in a basic yet effective manner that reverberated with viewers.
https://id.duo.vn/auth/logout?returnURL=https://luxeousa.com/
You draw out the most effective in everybody around you. Your positive perspective is motivating!
http://cumtranny.com/cgi-bin/atx/out.cgi?id=18&tag=top&trade=https://in-homeseniorcarenearme.com/
The method you integrated different components into one cohesive story was impressive.
http://drdrum.biz/quit.php?url=https://belladeep.com/
You are an remarkable buddy! You have a lot understanding regarding the world.
https://my.surfsnow.jp/logout?rUrl=https://callfeeder.com/
Extraordinary can work marvels to your life almost everywhere as a result of its remarkable capability to transform.
http://nosbusiness.com.br/softserver/telas/contaclique.asp?cdevento=302&cdparticipante=96480&redirect=https://cvitest.com/
Your positive perspective is inspiring! Your interest is motivating!
https://www.anikhabar.ir/show.php?url=https://blizzardmarketing.com/
You manage tight spots with grace and also grace. You have a excellent eye for detail!
http://www.pnjh.phc.edu.tw/imglink/hits.php?id=32&url=https://www.sauragecollective.com
Performance, wellness and well being, sleep far better!
https://www.vse-doski.com/redirect/?go=https://nearmyspot.com/obtain-connected-with-knowledgeable-and-expert-arizona-seo-marketing-around-you-worth-hiring
You are a fantastic audience. You handle tight spots with grace and also poise.
https://c2.cir.io/vCxe7t?pc_url=https://ocrvmotorsports.info/rv-center-that-can-do-it-all
You constantly recognize how to make me feel better. I admire your nerve as well as determination.
http://www.manchestercommunitychurch.com/System/Login.asp?id=54398&Referer=https://ocrvshop.com/rv-photos/rv-camera/
One product that can take your life to the following level!
http://www.glamourcon.com/links/to.mv?http://maseratirepairpasadena.com/what-is-a-class-c-motorhome-frequently-asked-questions/