Setting one idleDisconnectFlag Clears the Others

Hi,


I'm trying to get server working the way I want on 10.11. I want to set it so afp clients are disconnected after a couple hours of being idle, but not if they have files open and not if they are Admins.


I issue this command:


sudo serveradmin settings afp:idleDisconnectFlag:adminUsers = no


Then this:


sudo serveradmin settings afp:idleDisconnectFlag:usersWithOpenFiles = No


The second one clears the first. In other words, if examine the value of afp:idleDisconnectFlag:adminUsers after setting setting afp:idleDisconnectFlag:usersWithOpenFiles, it returns _empty_dictionary.


If I set afp:idleDisconnectFlag:adminUsers = no again, then usersWithOpenFiles returns _empty_dictionary.


Is there a way to set both these flags without clearing the other?


Thanks,


Jeff

Many-OTHER, Xserves, MBPs, Minis, iMacs, etc

Posted on May 25, 2016 8:36 AM

Reply
1 reply

Jun 6, 2016 6:06 AM in response to Jeff at K2

I think it's a bug in the "serveradmin settings" command. I could put the missing values back using Xcode, then restarting the service, and they seem to be there. But setting anything under afp:idleDisconnectFlag:... deletes all other afp:idleDisconnectFlag settings. I use Xcode to set the various values and o far so good. But it's a really awkward way to set pretty basic server options, made more awkward by the fact that it doesn't really work.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Setting one idleDisconnectFlag Clears the Others

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.