Hi Everyone,
I have tried over the past several days, unsuccessfully, to have my Linux client
access folders and files shared under Mac OS X server.
Mac OS X Info:
Version 10.9.5
Username: AJames
Hostname: bulbasaur
Steps I took to share a directory:
- System Preferences
- Sharing
- File Sharing
- Add Shared Folders and let Everyone have Read Only access.
- Under "Options" I have selected "Share files and folders using
SMB"
Linux Info:
Linux beedrill 3.17.7-gentoo #1 SMP Mon Dec 29 01:20:27 2014 x86_64 Intel(R)
Core(TM) i5 CPU M 540 @ 2.53GHz GenuineIntel GNU/Linux
Username: f_
Hostname: beedrill
Samba 3.6.24 installed with the following USE flags: acl aio client cups netap
pam readline server smbclient winbind
/etc/samba/smb.conf:
[global]
workgroup = WORKGROUP
server string = Samba Server
security = user
hosts allow = 127.0.0.1 192.168.0.
log file = /var/log/samba/log.%m
max log size = 50
interfaces = lo eth0 enp0s25 wlan0 wlp2s0
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[public]
comment = Public Stuff
path = /home/f/public
public = yes
writable = yes
printable = no
/etc/hosts:
127.0.0.1 localhost
::1 localhost
192.168.0.5 bulbasaur
# cat /usr/src/linux/.config | grep -i cifs
CONFIG_CIFS=m
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_UPCALL is not set
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
# CONFIG_CIFS_ACL is not set
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DFS_UPCALL is not set
# CONFIG_CIFS_SMB2 is not set
# smbtree -U AJames
Enter AJames's password:
WORKGROUP
\\BULBASAUR bulbasaur
\\BRW008092AAD473
\\BEEDRILL Samba Server
\\BEEDRILL\IPC$ IPC Service (Samba Server)
\\BEEDRILL\public Public Stuff
Now, for the Error Messages:
When I try to login from my Linux client I use the following command but get the
following error:
$ smbclient -L bulbasaur -U AJames
Enter AJames's password:
session setup failed: NT_STATUS_LOGON_FAILURE
I made some edits to on my Mac OS X to
/System/Library/LaunchDaemons/com.apple.smbd.plist as written out here:
http://web.stanford.edu/group/macosxsig/blog/2011/08/enable-logging-with-107-smbx-w.html
So when I run 'syslog -w' on my Mac OS X I get the following while I try
to connect unsuccessfully from my Linux client:
Code:
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>: label:
default
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
dbname: od:/Local/Default
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
mkey_file: /var/db/krb5kdc/m-key
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
acl_file: /var/db/krb5kdc/kadmind.acl
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: uid=0
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: netr probe 0
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init request
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init return domain: BULBASAUR server: BULBASAUR indomain was:
<NULL>
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: uid=0
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init request
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init return domain: BULBASAUR server: BULBASAUR indomain was:
<NULL>
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: uid=0
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init request
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: init return domain: BULBASAUR server: BULBASAUR indomain was:
<NULL>
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: uid=0
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: od failed with 2 proto=ntlmv2
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: user=WORKGROUP\AJames
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: kdc failed with -1561745659 proto=ntlmv2
Jan 10 21:53:35 bulbasaur.local digest-service[22610] <Notice>:
digest-request: guest failed with 22 proto=ntlmv2
I'm really not sure what I'm doing wrong here. Is there something
obvious I'm doing wrong?
I have Googled extensivly for the past few days regarding this
NT_STATUS_LOGON_FAILURE error, but nothing I seem to fixes the problem.
Thanks in advance.
--
Am Jam
On Tue, Jan 13, 2015 at 10:41:36PM +0000, Am Jam wrote:> Hi Everyone, > > I have tried over the past several days, unsuccessfully, to have my Linux client access folders and files shared under Mac OS X server. > > > Mac OS X Info: > Version 10.9.5 > Username: AJames > Hostname: bulbasaur > > Steps I took to share a directory: > - System Preferences > - Sharing > - File Sharing > - Add Shared Folders and let Everyone have Read Only access. > - Under "Options" I have selected "Share files and folders using SMB" > > > Linux Info: > Linux beedrill 3.17.7-gentoo #1 SMP Mon Dec 29 01:20:27 2014 x86_64 Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz GenuineIntel GNU/Linux > Username: f_ > Hostname: beedrill > Samba 3.6.24 installed with the following USE flags: acl aio client cups netap pam readline server smbclient winbind > > > /etc/samba/smb.conf: > [global] > workgroup = WORKGROUP > server string = Samba Server > security = user > hosts allow = 127.0.0.1 192.168.0. > log file = /var/log/samba/log.%m > max log size = 50 > interfaces = lo eth0 enp0s25 wlan0 wlp2s0 > dns proxy = no > [homes] > comment = Home Directories > browseable = no > writable = yes > [public] > comment = Public Stuff > path = /home/f/public > public = yes > writable = yes > printable = no > > > /etc/hosts: > 127.0.0.1 localhost > ::1 localhost > 192.168.0.5 bulbasaur > > > # cat /usr/src/linux/.config | grep -i cifs > CONFIG_CIFS=m > # CONFIG_CIFS_STATS is not set > # CONFIG_CIFS_WEAK_PW_HASH is not set > # CONFIG_CIFS_UPCALL is not set > CONFIG_CIFS_XATTR=y > CONFIG_CIFS_POSIX=y > # CONFIG_CIFS_ACL is not set > CONFIG_CIFS_DEBUG=y > # CONFIG_CIFS_DEBUG2 is not set > # CONFIG_CIFS_DFS_UPCALL is not set > # CONFIG_CIFS_SMB2 is not set > > > # smbtree -U AJames > Enter AJames's password: > WORKGROUP > \\BULBASAUR bulbasaur > \\BRW008092AAD473 > \\BEEDRILL Samba Server > \\BEEDRILL\IPC$ IPC Service (Samba Server) > \\BEEDRILL\public Public Stuff > > > > > Now, for the Error Messages: > When I try to login from my Linux client I use the following command but get the following error: > $ smbclient -L bulbasaur -U AJames > Enter AJames's password: > session setup failed: NT_STATUS_LOGON_FAILURElooks like you may be hitting <https://bugzilla.samba.org/show_bug.cgi?id=10966>. This was fixed in 4.1.x upwards. -Ralph -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de,mailto:kontakt at sernet.de
Hi Ralph,
Thanks for your suggestion. I have upgraded to Samba 4.1.14 (I know it's
not the latest version but its the only version I could install on
Gentoo at the moment). Unfortunately, my issues still persist.
-----------------------------------------------------------------------
# smbclient -V
Version 4.1.14
# smbtree -U AJames
Enter AJames's password:
WORKGROUP
\\BULBASAUR bulbasaur
\\BRW008092AAD473
\\BEEDRILL Samba Server
\\BEEDRILL\IPC$ IPC Service (Samba Server)
\\BEEDRILL\public Public Stuff
# smbclient -L bulbasaur -U AJames
Enter AJames's password:
session setup failed: NT_STATUS_LOGON_FAILURE
# mount.cifs //bulbasaur/Users/AJames/Public /mnt/osx -o username=AJames
Password for AJames@//bulbasaur/Users/AJames/Public:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
# mount.cifs //bulbasaur/Users/AJames/Public /mnt/osx -o
sec=ntlmv2,username=AJames
Password for AJames@//bulbasaur/Users/AJames/Public:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
-----------------------------------------------------------------------
Note the "sec=ntlvm2" option that I have been trying to use, as well,
without any luck.
Best Regards,
Am Jam.
On Wed, Jan 14, 2015 at 01:53:56PM +0100, Ralph B??hme
wrote:> On Tue, Jan 13, 2015 at 10:41:36PM +0000, Am Jam wrote:
> > Hi Everyone,
> >
> > I have tried over the past several days, unsuccessfully, to have my
Linux client access folders and files shared under Mac OS X server.
> >
> >
> > Mac OS X Info:
> > Version 10.9.5
> > Username: AJames
> > Hostname: bulbasaur
> >
> > Steps I took to share a directory:
> > - System Preferences
> > - Sharing
> > - File Sharing
> > - Add Shared Folders and let Everyone have Read Only access.
> > - Under "Options" I have selected "Share files and
folders using SMB"
> >
> >
> > Linux Info:
> > Linux beedrill 3.17.7-gentoo #1 SMP Mon Dec 29 01:20:27 2014 x86_64
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz GenuineIntel GNU/Linux
> > Username: f_
> > Hostname: beedrill
> > Samba 3.6.24 installed with the following USE flags: acl aio client
cups netap pam readline server smbclient winbind
> >
> >
> > /etc/samba/smb.conf:
> > [global]
> > workgroup = WORKGROUP
> > server string = Samba Server
> > security = user
> > hosts allow = 127.0.0.1 192.168.0.
> > log file = /var/log/samba/log.%m
> > max log size = 50
> > interfaces = lo eth0 enp0s25 wlan0 wlp2s0
> > dns proxy = no
> > [homes]
> > comment = Home Directories
> > browseable = no
> > writable = yes
> > [public]
> > comment = Public Stuff
> > path = /home/f/public
> > public = yes
> > writable = yes
> > printable = no
> >
> >
> > /etc/hosts:
> > 127.0.0.1 localhost
> > ::1 localhost
> > 192.168.0.5 bulbasaur
> >
> >
> > # cat /usr/src/linux/.config | grep -i cifs
> > CONFIG_CIFS=m
> > # CONFIG_CIFS_STATS is not set
> > # CONFIG_CIFS_WEAK_PW_HASH is not set
> > # CONFIG_CIFS_UPCALL is not set
> > CONFIG_CIFS_XATTR=y
> > CONFIG_CIFS_POSIX=y
> > # CONFIG_CIFS_ACL is not set
> > CONFIG_CIFS_DEBUG=y
> > # CONFIG_CIFS_DEBUG2 is not set
> > # CONFIG_CIFS_DFS_UPCALL is not set
> > # CONFIG_CIFS_SMB2 is not set
> >
> >
> > # smbtree -U AJames
> > Enter AJames's password:
> > WORKGROUP
> > \\BULBASAUR bulbasaur
> > \\BRW008092AAD473
> > \\BEEDRILL Samba Server
> > \\BEEDRILL\IPC$ IPC Service (Samba
Server)
> > \\BEEDRILL\public Public Stuff
> >
> >
> >
> >
> > Now, for the Error Messages:
> > When I try to login from my Linux client I use the following command
but get the following error:
> > $ smbclient -L bulbasaur -U AJames
> > Enter AJames's password:
> > session setup failed: NT_STATUS_LOGON_FAILURE
>
> looks like you may be hitting
> <https://bugzilla.samba.org/show_bug.cgi?id=10966>. This was fixed in
> 4.1.x upwards.
>
> -Ralph
>
> --
> SerNet GmbH, Bahnhofsallee 1b, 37081 G??ttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG G??ttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de,mailto:kontakt at sernet.de
--
Am Jam