Tiny Deathstars of Foulness

Lion Server doesn’t have an option in the GUI for throttling the maximum number of users that can connect to the server via SMB. Nor does it have said option in the ¬†serveradmin interface. If you run the following, you would have previously seen the required setting:

serveradmin settings smb

The required setting (if controlled via serveradmin) is MaxClients= followed by the number of clients that you want to be the max:

serveradmin settings smb:MaxClients=10

This is pretty easy stuff, but I have a point that goes beyond limiting the number of users. Not all of the settings that can be run through serveradmin are actually in the preferences any more. You can add more. Not that all of the ones from the developer documentation for the old smb code are still around, but a lot are. Another that a lot of people would want to use is to set the SMB Workgroup name in Lion Server:

serveradmin settings smb:Workgroup=SMBLOWS

You can also disable guest access by setting AllowGuestAccess to FALSE:

serveradmin settings smb:AllowGuestAccess=FALSE

Now, just because the option isn’t obvious doesn’t mean the server hasn’t already got a preconfigured setting. Running the AllowGuestAccess as follows will actually just show you that it defaults to on and most options, when specifically invoked, should provide the setting if it still exists:

serveradmin settings smb:AllowGuestAccess

Overall, there’s a lot you can do with a number of services. The options for many of these used to be a little easier to find, if you to see what some option from 10.6 allowed you to do that isn’t in the GUI in Lion or subsequent OSes that you miss, just look to the serveradmin command, make the change and see what preference changed. Who knows, that option might be available in Lion, even if it wasn’t available in the GUI…

June 8th, 2012

Posted In: Mac OS X, Mac OS X Server, Mac Security, Mass Deployment, Windows Server

Tags: , , , , , , , , , , ,

When you install Mac OS X Server you have the option to use Standard, Workgroup or Advanced. I have installed Standard for writing articles/books/etc about it, but from the first day I saw it I knew it wasn’t for me. Workgroup has some augmented record reasons you might use it, but is otherwise similar. Advanced is pretty much, make my server look like it did in 10.4 Server. Here you have Server Admin, Workgroup Manager and the other tools that comprise a Mac OS X systems administrators toolkit.

But Standard is synonymous with “Simple” in this case and should rarely be used. If you are fairly non-technical then it can act as a nice gateway drug to bigger and better things – in that case you don’t necessarily need the configuration granularity that you have readily at your fingertips with “Advanced”. However, be able to leave behind Server Preferences and quickly transition into full-blown tools (it will ask you if you want to do so the first time you open Server Admin) at any time as you start to find that it’s limited in what it can do…

August 20th, 2009

Posted In: Mac OS X Server

Tags: , , , , ,