shared folder problems

JimD Jim at keeliegirl.dyndns.org
Mon Jun 26 22:48:59 UTC 2006


Dimitri Mallis wrote:
> i want to share a NTFS hdd that has all my movies & mp3 files & stuff
> on with the rest of my home network
> 
> on the wimdows side, i search for all computers on the network & it
> finds all the windows & ubuntu pc's. i click on my ubuntu pc & it
> askes me for a username & password????? so i typed in my username &
> password (as in the same username & password 4 my home folder in
> linux) & that didnt work

You need to add users to samba with "smbpasswd -a".  For example if your 
username is joe you would run:

smbpasswd -a joe

Then enter the password you want to use.  I use the same 
username/password in samba that I use for my login account.

> on my ubuntu pc, i shared the folder "movies"
> i right click & click share
> 
> path = /media/sda5/Dimitri/movies
> share with = SMB
> 
> name = movies
> comment  = movies
> 
> i checked read only & allow browsing folder
> 
> in "general wiindows sharing settings" i have
> 
> host discription = %h server (Samba, Ubuntu)
> Domain/Workgroup = MSHOME
> 
> WINS server has the top radio button checked = do not use wins server
> 
> 
> so thats how i shared it
> then i restarted
> whent places
> network servers
> windows network
> mshome
> 
> i can browes all the windows pc's
> when i try browes my self i can see the folder movies
> but when i click on it i get the following
> 
> The folder contents could not be displayed.
> 
> "movies" couldn't be found. Perhaps it has recently been deleted.
> 
> but its there & i want watch the movies with totem???
> 
> so what have i done wrong?
> 
> any thoughts pls, im seriously confused
> 
> thanks

The easiest way to share folders with samba in Ubuntu is to just edit 
/etc/samba/smb.conf.  Here is an example of what I have in my 
/etc/samba/smb.conf file:


[global]
   workgroup = WORKGROUP

   # this is the name that the server will appear as to
   # windows and other smb clients
   netbiosname = keelie

#======================= Share Definitions =======================
[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   create mask = 0664
   directory mask = 0775


This example should help get you started.  The homes share will actually 
share out your home directory under Ubuntu.  You can create shares to 
other directories as well.  For example to do your movies share, try 
adding this to /etc/samba/smb.conf:

[movies]
   path = /media/sda5/Dimitri/movies
   comment = Movies
   browseable = yes
   read only = yes
   guest ok = yes  # allow guest access

After you add the above [movies] share to /etc/samba/smb.conf, restart 
samba with /etc/init.d/samba restart.

Jim
-- 
         _\|/_
         (o o)
+----oOO-{_}-OOo-------------------------+
|  You roll an 18 in Dex and see if you  |
|  don't end up with a girlfriend        |
|  JimD - Central FL, USA, Earth, Sol    |
+----------------------------------------+




More information about the ubuntu-users mailing list