Author Topic: Can't connect to samba shares on 10.04  (Read 1580 times)

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Can't connect to samba shares on 10.04
« on: February 09, 2012, 04:57:43 pm »
I'm using smbclient from a Fedora desktop to test connecting to the samba shares configured on my core.  So far, no luck. I've tried:

1. reseting the users's smb password (according to wiki)
2. restarted smb daemon (no errors)
3. checked the smb.conf for errors (non found)
4. tried connecting from external fedora PC and from core itself

The shares I tried connecting with include the ones that were configured when I installed the system, and the new one that was created for the RAID 1 array I setup through LinuxMCE's admin interface.

Is my smb.conf actually configured correctly?  Here it is:

Code: [Select]
## @FileType: Pluto Sectioned Config File ##
## @Version: 2 ##
## @KeepSections: ##
## @RemoveSections: ##

[global]
## BEGIN : Domain and Hostname
workgroup = LinuxMCE
server string = %h server (Samba %v)
## END : Domain and Hostname
smb ports = 139
log level = 2
invalid users = root
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
encrypt passwords = true
socket options = TCP_NODELAY
dns proxy = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username map = /etc/samba/usermap.txt
        unix extensions = no
        wide links = yes
security = user
########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
   printing = cups
   printcap name = cups

[public]
comment = public files
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777
path = /home/public/data
public = no

[home]
comment = shared home files
browsable = yes
writable = yes
## BEGIN : Home Hosts Allow
### END : Home Hosts Allow
path = /home
public = no
guest ok = no
force user = root
        force group = public
        create mask = 0774
        directory mask = 0775
        inherit acls = yes
        inherit uid = yes
        inherit owner = yes
        inherit permissions = yes

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

## BEGIN : User Shares


[ranbir]
comment = ranbir's private files
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /home/user_1
public = no

## END : User Shares


## BEGIN : InternalStorageDevices


[Storage57$]
comment = Storage Device 57
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /mnt/device/57
public = no
guest ok = no
force user = root
force group = root


[Storage60$]
comment = Storage Device 60
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /mnt/device/60
public = no
guest ok = no
force user = root
force group = root

## END : InternalStorageDevices

I have no idea what Storage60$ is.



dison4linux

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #1 on: February 11, 2012, 03:45:53 am »
Are you trying to access the smb shares from the "inside" or "outside"?
If you are connecting from the outside is the firewall disabled or the necessary ports open?

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #2 on: February 11, 2012, 02:48:57 pm »
Are you trying to access the smb shares from the "inside" or "outside"?

"Outside", which is my non-LinuxMCE network.

If you are connecting from the outside is the firewall disabled or the necessary ports open?

Firewall is disabled.  I can bring up my web orbiter's, for example.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #3 on: February 11, 2012, 06:48:01 pm »
Do you see any errors in /var/log/samba/*

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #4 on: February 11, 2012, 08:43:49 pm »
Do you see any errors in /var/log/samba/*

"no such user" errors. So, what user am I supposed to login with?

Assume my name is joe.  If I log into the web admin interface with "joe", does that mean my samba user name is "joe" too?

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #5 on: February 11, 2012, 11:14:17 pm »
try pluto_joe with password joe

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #6 on: February 12, 2012, 03:23:18 pm »
try pluto_joe with password joe

Tried that - no go.  I tried changing the password - same error.


posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #7 on: February 12, 2012, 07:14:39 pm »
Well, are you sure you put in the right username and password? Both are case-sensitive. I just tested it, and it works just dandy for me.

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #8 on: February 13, 2012, 12:31:01 am »
Well, are you sure you put in the right username and password? Both are case-sensitive. I just tested it, and it works just dandy for me.

So I tried changing the smb password for "pluto_joe".  I got this:

Code: [Select]
Failed to find entry for user pluto_joe.
When I try changing the smb password for "joe", there is no error.  But, the "smbpasswd" file's time stamp doesn't change.  That tells me the passwd wasn't actually updated.

I created a new user and tried your password suggestion.  I saw the same result.

Something is broken.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #9 on: February 13, 2012, 06:41:24 am »
Check what's in /etc/samba/smbpasswd - maybe that gives some insight.

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #10 on: February 18, 2012, 03:31:12 am »
Check what's in /etc/samba/smbpasswd - maybe that gives some insight.

I looked. It looks normal to me, I guess.

Code: [Select]
pluto_ranbir:10000:PASWORDSTUFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:[U          ]:LCT-00000001:,,,
pluto_mona:10001:PASWORDSTUFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:[U          ]:LCT-00000001:,,,
sambahelper:10002:PASWORDSTUFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:[U          ]:LCT-00000001:,,,

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #11 on: February 18, 2012, 10:13:20 am »
And did you try user pluto_mona with password Mona?

m3freak

  • Veteran
  • ***
  • Posts: 125
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #12 on: February 18, 2012, 04:15:57 pm »
And did you try user pluto_mona with password Mona?

Yes - just now.  The thing is, the error in the logs for both pluto_mona and pluto_ranbir is that the user wasn't found:

Code: [Select]
[2012/02/18 10:08:34,  2] auth/auth.c:320(check_ntlm_password)
  check_ntlm_password:  Authentication for user [public_mona] -> [public_mona] FAILED with error NT_STATUS_NO_SUCH_USER

I don't have any Windows PCs, but I do have a Blackberry PlayBook and an Android phone.  Those two devices use smb/cifs for file sharing.  So, getting samba working isn't a pressing need, but it sure would be nice to have.

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Can't connect to samba shares on 10.04
« Reply #13 on: February 18, 2012, 07:11:27 pm »
i see user public_mona in the error above...
you arent making things any easier by trying to access stuff from the external network. please try to use the system as it was designed, it was done that way for a reason.
the system also uses nfs, but this is locked down to the internal network so you would need to change that if you wanted to use nfs instead of samba.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3012
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Can't connect to samba shares on 10.04
« Reply #14 on: February 18, 2012, 09:04:43 pm »
m3freak,

it seems that something in your install is hosed. My first suggestion would be to add a new user using the Setup wizard. Adding a new user results in all the passwd files to be rewritten. Maybe that fixes what ever is causing your current issue. Case in point: Samba access to a LinuxMCE core works.