Jeff at K2

Q: 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, Xserves, MBPs, Minis, iMacs, etc

Posted on May 25, 2016 8:36 AM

Close

Q: Setting one idleDisconnectFlag Clears the Others

  • All replies
  • Helpful answers

  • by Jeff at K2,

    Jeff at K2 Jeff at K2 Jun 6, 2016 6:06 AM in response to Jeff at K2
    Level 1 (14 points)
    Mac OS X
    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.