IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

How To "lock Down" A Os X User Account

, Crude but effective way to maintain Macs


taplinb
no avatar
Newbie
*
Group: Members
Posts: 8
Joined: 11-September 05
Member No.: 11,744



Post #1 post Sep 11 2005, 11:37 AM
Here's a quick summary of how one can configure OS X for use in public labs running Panther (10.3). It should also work with Tiger (10.4) but I dunno. There may be better ways, but this is quick and cheap:

1. Install OS X fresh, or boot up your new Mac, and
set the username to MacAdmin or the like. This is
now the administrator account which users should
never touch. Share this password only with trusted
admins authorized to muck with critical systems.

2. Install all the software you expect anyone to need
in the default folders (usually Applications). Do not
customize things too much. Keep it simple.

3. In Apple -> System Preferences, set your prefs for
Desktop, Dock, Screen Effects, etc. Do not enable
anything under Sharing, and tweak network stuff
as needed for your LAN or WAN including DNS.

4. In System Preferences -> Accounts, make two new
accounts: macuser and template. Set and record
the accounts' passwords and share them only with
qualified admins and junior admins. With macuser
highlighted, click Set Auto Login, then Capabilities.

5. In Capabilities, uncheck Remove Items from Dock,
Open all System Preferences, and Change Password.
You can also restrict which Applications run, but I
don't see much harm in leaving that restriction off.
Your call. Some disable games or delete them.

6. Quit System preferences, logout, then login as the
user "template". While in as template, set things
exactly as you would want for the users. Be sure
to test each application and define settings like
default web page (in Safari and Internet Explorer).

7. Logout, login again as MacAdmin. User the Print
Center under Applications -> Utilities to configure
any printers you might have. I favor direct TCP/IP
printing, but some of you might still use Appletalk.

8. Use the NetInfo Manager app, also in Utilities, to
open up Security by first authenticating and then
enabling the root account. Don't do this unless you
have some understanding of UNIX administration
or are willing to be very careful. It's brain surgery.

10. Once root is enabled, open Utilities -> Terminal
and "su" to become root. This makes you god
of the system until you "exit" or quit Terminal.

11. As root, and only if you are familiar with basic
UNIX admin (much like on Linux or FreeBSD),
copy /etc/rc to /etc/rc.backup, then edit /etc/rc
with vi. At the bottom of the file, just above the
exit line, add this: /etc/macuserfix.sh

12. Save changes to /etc/rc, then use vi to create file
/etc/macuserfix.sh which should include the text
below (minus the leading spaces on each line):

#!/bin/sh
if [ ! -d /user/template ]
then
rm -r /users/macuser/.* > /dev/null 2>&1
rm -r /users/macuser/*
cp -Rp /users/template/.CFU* /users/macuser > /dev/null 2>&1
cp -Rp /users/template/* /users/macuser > /dev/null 2>&1
chown -R macuser /users/macuser/
fi

13. This little shell script is case-sensitive and must
be done almost exactly as shown. Double-check.
When confident, chmod +x /etc/macuserfix.sh.

14. Now cd /users and make sure each account
owns its own directory. You can do so with:
chown [account] [account], e.g.
chown macuser macuser.

15. Exit, exit, unauthenticate, quit NetInfo Manager,
then restart the Mac. After the restart, the Mac
should log itself in as macuser with the settings
you defined in step 7 above as template.

16. If this was done right and works as expected, the
user can only change a few things, and every
reboot the Mac will set itself back to normal.

There may be holes in this approach, and you may have to occasionally empty the Shared directory manually or via a shell script (could be automated to happen weekly), but for the most part the Mac should take care of itself.

When you need to make changes, make big changes as MacAdmin and then set the user experience in the template account. Changes are automatically copied to macuser. Don't bothrr customizing macuser itself, as those settings are wiped and recreated every boot.
Go to the top of the page
+Quote Post
OpaQue
no avatar
Administrator
**************
Group: Admin
Posts: 1,624
Joined: 11-June 04
From: Somewhere in Time & Space.
Member No.: 1
myCENT:NEGATIVE[-85.03]



Post #2 post Sep 11 2005, 01:04 PM
This topic is being approved only because of the fact that you are the owner of this post. However, please do not post further content which has an online presence on the internet.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   8 rob86 183 18th October 2009 - 01:52 AM
Last post by: inverse_bloom
No new   39 the blonde girl 35,976 22nd August 2009 - 10:02 AM
Last post by: ASHISHRANJAN
No New Posts   2 OpaQue 10,424 16th July 2004 - 05:26 PM
Last post by: OpaQue
No New Posts 1 muskrat 1,167 15th July 2006 - 05:23 PM
Last post by: BuffaloHelp
No New Posts   7 Ariel 26,311 15th July 2004 - 09:41 PM
Last post by: Ariel
No New Posts   0 xboxrulz 5,935 17th July 2004 - 03:53 PM
Last post by: xboxrulz
No New Posts 1 hasa 7,213 2nd August 2004 - 05:55 PM
Last post by: OpaQue
No New Posts   3 EricDrinkard 5,449 22nd July 2004 - 09:52 AM
Last post by: OpaQue
No New Posts   0 gamefreaksl 5,822 21st July 2004 - 10:49 AM
Last post by: gamefreaksl
No New Posts   7 Shackman 8,838 26th July 2004 - 10:26 PM
Last post by: Shackman
No New Posts   2 -yunyinyu- 5,627 23rd July 2004 - 08:36 AM
Last post by: OpaQue
No New Posts   1 -hiners- 4,818 23rd July 2004 - 09:57 AM
Last post by: OpaQue
No New Posts   1 -ccitt- 5,226 24th July 2004 - 01:38 PM
Last post by: OpaQue
No New Posts 7 templest 9,197 13th August 2004 - 11:40 PM
Last post by: odomike
No New Posts   1 eforumhongkong 4,949 26th July 2004 - 08:38 PM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 6th November 2009 - 07:35 PM

Web Hosting Powered by ComputingHost.com.