Dit korte leerprogramma zal schetsen hoe te om dossier toe te laten delend in Ubuntu.
- Delen van dossiers en omslagen over uw netwerk van uw PC Ubuntu is elk beetje zo gemakkelijk zoals delend dossiers in Vensters (betwistbaar, is het gemakkelijker). Het begin door de omslag met de rechtermuisknop aan te klikken u wil delen en, selecteren De Omslag van het aandeel. Als de diensten die moeten om dossiers/omslagen delen niet geïnstalleerdl zijn, zal u worden ertoe aangezet om hen te installeren.
- Na het klikken Installeer de diensten zij zullen automatisch beginnen te downloaden en te installeren.
- Zodra dat heeft voltooid zal u met een optiesvenster worden voorgesteld. Van hier kunt u het type selecteren van het delen (SMB of NFS), de gedeelde omslag een naam geven en beslissen als u read-only toegang tot de omslag wilt. Klik O.K. wanneer u wordt gedaan.
- Als u op uw onlangs gedeelde omslag met de rechtermuisknop klikt en selecteert Eigenschappen en toen Emblemen het lusje, u kan de omslag een uniek pictogram geven zodat zult u weten het heeft gedeeld.
- U kunt de toestemmingen van uw gedeelde omslag verder wijzigen door te selecteren Toestemmingen tabel.
- Open nu een terminal in Ubuntu en ga het bevel in:
sudo smbpasswd - een gebruikersbenaming
Dit zal een gebruiker SMB toevoegen.
- En nu kunnen andere computers met uw gedeelde omslag verbinden!


































{ 3 trackbacks }
{ 33 de commentaren… lezen hen hieronder of add one }
And when it asks you for the username and password? Do you give the username and password of the linux account?
Ferdinand,
Yes - sorry I should have included that - will update shortly.
I have Ubuntu 7.04 running in Parallels Desktop. Will it possible to access a shared folder from Mac OS X running on the same machine. I tried it but it didn’t work.
I tried this, and cannot log in (from my windows machine) via my ubuntu username. (which is “aamir”). I can see the PC in “My Network Places”.
Please assist!
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.
I have attempted to connect from Ubuntu to the mac and that way works but not from the mac to Ubuntu. Any ideas?
To connect to your shared Linux folder on a Windows machine, enter sudo smbpasswd -a (username) in terminal and set your SMB password.
Hi
It seems that you also need to add a samba user :
sudo smbpasswd -a usernamen
After that started to work with my installation
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
Thanks for the article.
Excellent support article here. I have only been using Ubunta for couple of days and I love it. My feelings for Windows XP and Vista are moving more and more towards Ubunta.
Thank you for your help.
Lee Farris
yeah… another one that was stumped until the comments about adding the samba password…
now it works great!
Great article, although you’re missing half the equation. You need to add a user as several people have mentioned before you’re tutorial can work. (and a possible samba restart? - I just did it just in case)
sudo /etc/init.d/samba restart
Peter - yeah I really do have to update this. The samba user step I forgot as it had already been created. Thanks!
And what should i do if i want Windows users to connect to my shared files without entering any 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.
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.
My other computer asked me for a password for MSHOME but did not recognise my Ubuntu password.
Tried sudo smbpasswd -a usernamen as above with no success.
Then went through the same process on my other computer and found I could access the shared folder with no problem from this 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’. (These were the default settings- don’t know why they were different.)
I was then able to see the shared folder on the other computer without being asked for a password.
Under what circumstances is it necessary to set up a samba password?
I think file sharing in both directions is working now, even though I haven’t gone through the password process on this computer.
If possible could you include an idiots guide as to the relative merits of SMB and NFS (and indeed, what they are).
Is there any reason to use NFS when SMB seems to be far easier to set up?
Again, many thanks!
While I should have known better, the ’smbpasswd’ step had me stumped. Thanks for the kick in the right direction.
how do you connect to your shared folder ?
How do you setup a shared folder that allows anonomous windows users. 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.
In a network of hundreds of users putting a username and password for each user will not work.
same here:
sudo smbpasswd -a usernamen
fixed it for me, wasted a couple of hours today trying to get it working
thanks!
gosh, i went through the smbpasswd thingy too.
and as a newbie, it took me 3 days befor i found this page… dang!
thanks a ton, soup on Jun 12, 2007
thanks a lot! this worked for me!
when i try to let ubuntu install the services for the first time, i get no choice regarding the protocols. hardy just installs samba, but not nfs…what’s wrong here?
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. Do I need to change settings on my router?
Well hardy heron ubuntu I did most of the above including the smbpasswd stuff. The process was similar but not exact. On my simple Xubuntu machine sharing right click sharing is not an option. On win98 net neighbourhood there is no singn of Ubuntu. Any suggestions? Ian
I get
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share.
When I try to share the folder.
Thanks
I also get the error,
“net usrshare returned error 255″ when I try to create a shared folder in ubuntu Hardy heron.
Thanks!!! I have one lonely *nix machine on a windows domain - I appreciated this.
Something is missing from the instructions. Here is what I get:
?net usershare? returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share.
I am also installing on hardy and running into this problem:
?net usershare? returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied
You do not have permission to create a usershare. Ask your administrator to grant you permissions to create a share.
any ideas there?
ok here is the hardy fix:
I selected to install samba (file server) when i installed hardy server edition-this is 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).
to fix it i went to system ->administration -> users and groups. then unlock (enter password) then manage groups. choose sambashare then properties. select your name hit ok, close, close.
Then logout and log back in and then right click and try to share the directory.
For some reason in hardy samba doesn’t add you to the sambashare group.
I didn’t do any of that sambashare stuff! I just followed what Brad said and it worked for me.
“to fix it i went to system ->administration -> users and groups. then unlock (enter password) then manage groups. choose sambashare then properties. select your name hit ok, close, close.
Then logout and log back in and then right click and try to share the directory. ”
Thanks for the help. 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!
Great howto THX
Well, I followed all of these instructions and I’m still getting the error. Is there a specific folder I should be using to create these shares?
A nice easy workaround that works for many things is as follows:
Open Terminal —> $sudo nautilus
This opens a “explorer” (nautilus) with root privileges. Then apply your shares by right clicking on the folder that you wish to share and selecting “Sharing Options”.
This works for me on so many levels, and only using Linux for three months, saves me looking up other terminal commands.
I love Ubuntu Linux. Have changes all but my Vista Media Center PC now (and will not change that due to the XBox 360 and Linksys extenders).
I hope this helps.
Leave a Comment