Samba issues

Associate
Joined
28 Dec 2006
Posts
587
Location
Epsom Downs
hi all, another question for you.

I've been using ubuntu for ages now (not hardcore, but for every thing)

i've got a server (in the sense that it's on all the time) running 10.04 LTS 64bit, and i can share any thing on the root drive... however i can't share anything out from any of the other drives !! the folders appear in the network list but i am told "Unable to mount location - Failed to mount windows share" from my other ubuntu 10.04 machine.

the root drive is ext4 and so are all my other drives but it just won't let me browse them, even on a windows machine ! or on the server it's self !

can any one point me in the right direction.
 
Yes that is how i have shared the folders, i have also used a GUI to edit the Samba file and that has the same issue. I can see the folders but can't mount them (or so it says) but i can share any thing on the root drive...

it's very strange, and nothing seems to show up in the log files either !!
 
Hmmm, it could be a permissions issue. Go to the folder where you have mounted the ntfs partitions in a terminal and type:

ls -la

This will list the direcories and associated permissions. I assume you are using a username and password to access the shares?
 
i've used the gui's before they just fill the config with unnecessary crap.

this is part of mine which is working, just edit to your circumstance.

Code:
[global]
    ; General server settings
    netbios name = SAKURA2
    server string =
    workgroup = MSHOME
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = yes

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes




[htdocs]
path = /var/www/
comment = samba server webroot
valid users = lee
write list =
admin users = lee
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
share modes = no
locking = no
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:excludedir = /tmp /temp /cache
recycle:noversions = *.doc *.xls *.ppt
 
You might also like to try SWAT: the SAMBA web admin tool.

I also don't like the GUI type config things for SAMBA.
 
It's even more relevant if they're ext3/4 because they hold permissions. If you're logging on as user1 and root owns the mounted directories then you won't be able to access them. Same as user1 trying to access user2's home directory. If they should all be owned by one user then:

sudo chown -R user1 /mnt/directory

Replacing user1 is the user that you are logging into samba with.
 
james@merc-srv:/media$ ls -la
total 36
drwxr-xr-x 9 root root 4096 2010-07-27 19:21 .
drwxr-xr-x 22 root root 4096 2010-08-03 18:56 ..
lrwxrwxrwx 1 root root 6 2010-05-11 22:42 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2010-05-11 22:42 cdrom0
drwxr-xr-x 2 root root 4096 2010-07-04 12:23 The
drwx------ 2 root root 4096 2010-06-15 19:29 The Store
drwx------ 8 james james 4096 2010-05-25 19:34 The_Store_
drwxr-xr-x 2 root root 4096 2010-07-04 01:29 VM
drwx------ 2 root root 4096 2010-06-15 19:29 VM Store
drwx------ 6 james james 4096 2010-05-03 23:54 VM_Store_
james@merc-srv:/media$
I'm shareing the ones with the _ in them
 
They seem to have ok permissions. When you try to access the drives, does it go into an empty folder or does it straight out deny access? Can you print out the contents of your:

/etc/fstab

file to make sure they're properly mounted. Are they seperate physical disks or different partitions on a single disk?
 
They are 2 separate disks (but are software raided through linux)

FSTAB reads
"# The VM store mounting UUID=f4fc9884-9863-cbfd-d90b-0b5685404a30
/dev/md2 /media/VM_Store_ auto defaults 0 0

# The store mounting
/dev/md3 /media/The_Store_ auto defaults 0 0"
 
Sorry mate, software raid is over my head and i've never done it before. Have you tried posting on the Ubuntu forums, i've heard they're a useful lot.

Only thing I could suggest is do you get any error message when you run:

sudo mount -a

as that should mount all your drives in fstab. If they're just empty folders where the contents are supposed to be then it sounds like it's a mounting issue.
 
Sorry mate, software raid is over my head and i've never done it before. Have you tried posting on the Ubuntu forums, i've heard they're a useful lot.

Only thing I could suggest is do you get any error message when you run:

sudo mount -a

as that should mount all your drives in fstab. If they're just empty folders where the contents are supposed to be then it sounds like it's a mounting issue.
 
Oooo found the log files,

This is trying to browse the shares from the machine they are shared from

"[2010/08/08 19:52:43, 0] smbd/service.c:988(make_connection_snum)
canonicalize_connect_path failed for service movies, path /media/The_Store_/Movies"

if thats any help?
 
So it was a permissions problem, I redirect you to post 4 :P

I don't understand what the problem was though, were you trying to access your samba shares as a guest user and not as user james?
 
Yep, wasn't using the guest (as far as i know) however i have just thought that both users on the computer are called James !!!

with diffrent passwords, not sure if that would affect it.
 
Back
Top Bottom