configure netatalk

Hi all,

I installed netatalk using this page : http://netatalk.sourceforge.net/wiki/index.php/Install_Netatalk_3.1.7_on_openSUSE_13.2

It all worked well.

However, my macbook pro sees the server, but is unable to connect.

Here’s my afp.conf :


  ;; Netatalk 3.x configuration file
; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html
;


[Global]
admin auth user = root
save password = yes
uam list = uams_dhx.so uams_dhx2.so uam_gss.so


[default_for_all_vol]
file perm = 0664
directory perm = 0774
cnid scheme = dbd
valid users = @tmusers


[Homes]
basedir regex = /home



I completely disactivated the firewall using YaST.

But nothing seems to help… on my MacOs (El Capitan), I don’t get the login screen asking for my account name and password.

Can anyone please help me with this…

Thanks :slight_smile:

On Tue 29 Dec 2015 09:36:01 PM CST, igorkarenin wrote:

Hi all,

I installed netatalk using this page : http://tinyurl.com/hh8tzxc

It all worked well.

However, my macbook pro sees the server, but is unable to connect.

Here’s my afp.conf :

Code:

;; Netatalk 3.x configuration file
; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html
;

[Global]
admin auth user = root
save password = yes
uam list = uams_dhx.so uams_dhx2.so uam_gss.so

[default_for_all_vol]
file perm = 0664
directory perm = 0774
cnid scheme = dbd
valid users = @tmusers

[Homes]
basedir regex = /home


I completely disactivated the firewall using YaST.

But nothing seems to help… on my MacOs (El Capitan), I don’t get the
login screen asking for my account name and password.

Can anyone please help me with this…

Thanks :slight_smile:

Hi
The openSUSE version adds some patches, plus it’s now at 3.1.8.

If you tail the log on the openSUSE machine via journalctl -f and then
try and connect from you MacBook you should get an idea of what the
issue is.


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.51-52.31-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi
I branched and updated the package, tested with SLES 12 (server) and MacBook3,1 osX 10.7.5 with just pam authentication and all worked fine. All I had to do with the firewall was enable/allow zeroconf/bonjour in the allowed services tab drop down.

https://build.opensuse.org/request/show/351284

Turns out I also had the package + install from source. Then removed the package and tried again. What I now get on my macbook is a login window, where I put the account name and password I use to log into OpenSuse (that’s and improvement).

However, macOS tells my that login was not succesful.


 journalctl -f
Dec 30 19:00:30 linux-h6ti afpd[2512]: pam_unix(netatalk:session): session opened for user thiebo by (uid=0)
Dec 30 19:00:30 linux-h6ti afpd[2512]: Login by thiebo (AFP3.4)

… seems to imply that my login was succesfull… I don’t understand…

Hi

Here is my afp.conf;


 cat /etc/netatalk/afp.conf 
;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
admin auth user = root
save password = yes

[default_for_all_vol]
file perm = 0664
directory perm = 0774
cnid scheme = dbd
valid users = @users

[Homes]
path = afp-data
basedir regex = /home

; [My AFP Volume]
; path = /path/to/volume

Also uam list in your conf file should be uamlist, no space… maybe this causes the issue?

Thanks a lot, but… still doesn’t work…

journalctl -f when I provide a wrong password is :


Dec 30 19:30:45 linux-h6ti afpd[3055]: pam_unix(netatalk:auth): authentication failure; logname= uid=0 euid=0 tty=afpd ruser=thiebo rhost=192.168.1.5  user=thiebo

journalctl -f when I provide the correct password is :


Dec 30 19:32:58 linux-h6ti afpd[3076]: pam_unix(netatalk:session): session opened for user thiebo by (uid=0)
Dec 30 19:32:58 linux-h6ti afpd[3076]: Login by thiebo (AFP3.4)

So Netatalk recognises the password. Still MacOS message is that Connection failed. When try to connect again (“connect as” under Mac OS) :
journalctl -f


Dec 30 19:34:49 linux-h6ti afpd[3076]: AFP logout by thiebo
Dec 30 19:34:49 linux-h6ti afpd[3076]: dsi_stream_read: len:0, unexpected EOF
Dec 30 19:34:49 linux-h6ti afpd[3076]: afp_over_dsi: client logged out, terminating DSI session
Dec 30 19:34:49 linux-h6ti afpd[3076]: pam_unix(netatalk:session): session closed for user thiebo
Dec 30 19:34:49 linux-h6ti dbus[765]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.98" (uid=1000 pid=3076 comm="/usr/sbin/afpd -d -F /usr/local/etc/afp.conf ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=787 comm="/usr/lib/systemd/systemd-logind ")
Dec 30 19:34:49 linux-h6ti afpd[3076]: pam_systemd(netatalk:session): Failed to release session: Access denied
Dec 30 19:34:49 linux-h6ti afpd[3076]: PAM audit_log_acct_message() failed: Operation not permitted
Dec 30 19:34:49 linux-h6ti afpd[3076]: AFP statistics: 0.63 KB read, 0.47 KB written

my full afp.conf is :


;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
admin auth user = root
save password = yes
uamlist = uams_dhx.so uams_dhx2.so

[default_for_all_vol]
file perm = 0664
directory perm = 0774
cnid scheme = dbd
valid users = @users

[Homes]
path = afp-data
basedir regex = /home

; [My AFP Volume]
; path = /path/to/volume

Here’s my /etc/fstab :


UUID=8d842684-ba45-4c48-b51b-d6089ce88287       swap    swap    defaults 0 0 
UUID=af3b17c2-aa30-45a9-8e30-1f23656854dc       /       ext4    acl,user_xattr 1 1 
UUID=4fed2ffa-6a80-4bf2-b0bc-4cf35228dab9       /home   ext4    defaults,acl,user_xattr 1 2 

alternatively, how do I uninstall the netatalk package from source to install the OpenSuse package using YaST?

Hi
Try remming out the uamlist for the moment.

To uninstall your built package you need be in the directory you did the make install from and run make uninstall.

Once it’s all cleared out I can temporarily publish my package for 13.2, is it 32 or 64bits your after?

It’s the 64 bits I’m after.

THANKS !!!

Hi
Here you go;
http://download.opensuse.org/repositories/home:/malcolmlewis:/branches:/network/openSUSE_13.2/x86_64/

Wow !!

Just to be sure, is this what I should do :

follow this guide : http://netatalk.sourceforge.net/wiki/index.php/Install_Netatalk_3.1.7_on_openSUSE_13.2

but use this rmp instead : http://download.opensuse.org/repositories/home:/malcolmlewis:/branches:/network/openSUSE_13.2/x86_64/netatalk-3.1.8-328.1.x86_64.rpm

Hi
Manually download and install the two following rpms and then start from ‘Setting’ in the howto linked;

libatalk17-3.1.8-328.1.x86_64.rpm
netatalk-3.1.8-328.1.x86_64.rpm

Spotlight is disabled, so ignore that part.

On Wed 30 Dec 2015 08:16:01 PM CST, igorkarenin wrote:

malcolmlewis;2745824 Wrote:
> Hi
> Once it’s all cleared out I can temporarily publish my package for
> 13.2, is it 32 or 64bits your after?

It’s the 64 bits I’m after.

THANKS !!!

Hi
All updated in the network repository now, suggest you grab the copies
from there and install :wink:
https://build.opensuse.org/package/show?project=network&package=netatalk#
http://download.opensuse.org/repositories/network/openSUSE_13.2/x86_64/


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.51-52.31-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!