afp-mountpoint not persisting after reboot

Status
Not open for further replies.

jbmans

Cadet
Joined
Dec 14, 2015
Messages
3
Hey there,

I'm struggling with some settings. Im trying to get "/shares" as a mountpoint in AppleVolumes.shares and AppleVolumes.tm. I succeeded in doing so by adding the line
"/shares Shares ea:sys options:usedots,upriv allow:admin, rwlist:admin, perm:664"
to both the files and it is mounting as planned.
The thing is when I reboot both the files are reseted to there previous state. There is also a file called AppleVolumes.default that is empty. If I insert the line here it persists during reboots.
So I have to change the file afpd.conf and afpd.conf-orig to point to the AppleVolumes.default file like this:

ORIGINAL:
" - -transall -port 12548 -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx2.so -nouservol -defaultvol /etc/netatalk/AppleVolumes.shares -guestname "nobody" -nosavepassword -signature user:0090a9b18324
NAS- -transall -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx2.so -nouservol -defaultvol /etc/netatalk/AppleVolumes.tm -guestname "nobody" -nosavepassword -signature user:TM0090a9b18324"
CHANGED
" - -transall -port 12548 -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx2.so -nouservol -defaultvol /etc/netatalk/AppleVolumes.default -guestname "nobody" -nosavepassword -signature user:0090a9b18324
NAS- -transall -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx2.so -nouservol -defaultvol /etc/netatalk/AppleVolumes.default -guestname "nobody" -nosavepassword -signature user:TM0090a9b18324"

But now I noticed the afpd.conf file is returning to its original state after a reboot as well. How can I fix this?

Thanks a lot,

Jan
 
D

dlavigne

Guest
Just to be clear, are all of those files on the Mac client or are any of them on the FreeNAS system?
 
D

dlavigne

Guest
Well then it makes sense that the config db is overwriting manual edits to the config files. Can you not achieve what you want through the GUI either in the AFP share or in the AFP service?
 

jbmans

Cadet
Joined
Dec 14, 2015
Messages
3
Is it possible to edit the config db to stop doing so and where can I find it?
Thanks for your help!
 
D

dlavigne

Guest
FreeNAS was designed for the user to use the GUI. Anything else and you're on your own.
 
Status
Not open for further replies.
Top