14 replies
Sign in or join Beachball Help to reply.
- 0
Federico_82 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
i suspect the mac has multi admin accounts.
you can use this... but it's only a trick.
http://support.apple.com/kb/TS1876
the solutions is create an encrypted image in your account with your personal data.
- 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hey p.a., thanks for the info. I did a little research myself and found two documents by Apple which deal, besides others, with this. Just want to share these info for future reference: 1) [Mac OS X Server User Management|http://images.apple.com/euro/server/macosx/docs/User
Managementv10.5.mnl.pdf] and 2) [Mac OS X Server Command-Line Administration|http://images.apple.com/server/macosx/docs/Command
Line_Adminv10.5.pdf].I quote from the first (p.60).
*Disabling a User Account*
To disable a user account, you can:
--> Deselect the “User can access account” option in the Basic pane in Workgroup Manager.
--> Delete the account.
--> Change the user’s password to an unknown value.
--> Set password options to disable login. This applies to user accounts with the password type Open Directory or Shadow Password.From the Command Line
You can also disable a user account using the
dscl and
pwpolicy commands in Terminal. For more information, see the users and groups chapter of Command-Line Administration.I prefer the method via Workgroup Manager as part of the [Server Admin Tools|http://www.apple.com/support/downloads/serveradmintools1053.html]. There was some disagreement on whether the Workgroup Manager works on a client version machine some time ago, but I can confirm that it works really well on clients, too. (Hint: To start the Workgroup Manager for a local computer, type "localhost" as address - without the quotation marks.)
And again, the guide for Command-Line Administration states (p.106):
*Preventing a User from Logging In*
Sometimes it is necessary to revoke a user’s ability to access the computer. This involves preventing the user from logging in and then terminating the user’s processes. The latter can be done by forcing the user to log out and then killing remaining processes, or by just killing the user’s processes.To prevent a user from logging in:
Disable the user account by entering the following command:
$ pwpolicy -a diradmin -u ajohnson -setpolicy “isDisabled=1”
Replace ajohnson with the short name of the user account and replace diradmin with the short name of your domain administrator account.Note: The pwpolicy command only works for LDAP/Password server users. For a local user, use Workgroup Manager or the Accounts pane of System Preferences.
Regards,
floba(MN428)
Message was edited by: floba
- 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Welcome to Apple Discussions.
You can remove an account in System Preferences > Accounts. In the sidebar select the account you want to remove and click on the little minus sign in the lower left corner of the window.
floba
(MN408)
- 0
p.a ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hello,
Thanks for the reply but I don't want to remove the account. I just want to temporarily disable it.
Regards,
p.a
- 0
Courcoul ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Change the password using an admin-enabled account.
- 0
Federico_82 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
i suspect the mac has multi admin accounts.
you can use this... but it's only a trick.
http://support.apple.com/kb/TS1876
the solutions is create an encrypted image in your account with your personal data.
- 0
p.a ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the replies and tricks
If someone just have a simple manner as in Windows or Unix/Linux to disable an account it would be greatly appreciated.
p.a
- 0
Federico_82 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
you can do also this
access at mac with a different account admin
open terminal
sudo dscl . -delete /Users/yourusershortname
<enter>
insert psw
<enter>then when you restore your old account, navigate to sysstem preferences--account--add new with your original short name, osx will find an existing home folder and ask if you want keep.
never tested, but it is relatively safe.
you can test with a dummy account.
Message was edited by: Federico_82
- 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm sorry, I misunderstood you. As far as I know there is no straightforward way to deactivate an account temporarily (like deselecting a checkbox or something like that). Nevertheless, if you try to delete any account via System Preferences > Accounts, you'll be asked what to do with the account's home folder. Just select "Do not change the home folder" as it is described [here|http://my.safaribooksonline.com/9780768681062/ch15lev1sec5].
floba
(MN416)
Message was edited by: floba
- 0
p.a ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thank you all for your help.
I found the solution.After searching on a Mac server I found different ways to disable an account :
- With Workgroup manager you can select the user and deselect access account.
As I want to do the same thing on a workstation computer I think it can be done after having installed the Mac OS X admin tools (
http://www.apple.com/support/downloads/serveradmintools1053.html) on the station.- I found what parameter had been changed by Workgroup Manager. It changes a parameter in the user&password database Netinfo.
So to disable an account you just have to open NetInfo Manager - /users/"username" than add ;DisabledUser; at the beginning of the authentication_authority property : this my preferred method- The other method that I have not tested is as some of you have said to delete the account and keeping the home directory (it could also be put in an encrypted image)
p.a
- 0
Federico_82 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
netinfo was no more supported in leopard, good suggest for tiger users.
next time you can post here:
http://discussions.apple.com/category.jspa?categoryID=177 - 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hey p.a., thanks for the info. I did a little research myself and found two documents by Apple which deal, besides others, with this. Just want to share these info for future reference: 1) [Mac OS X Server User Management|http://images.apple.com/euro/server/macosx/docs/User
Managementv10.5.mnl.pdf] and 2) [Mac OS X Server Command-Line Administration|http://images.apple.com/server/macosx/docs/Command
Line_Adminv10.5.pdf].I quote from the first (p.60).
*Disabling a User Account*
To disable a user account, you can:
--> Deselect the “User can access account” option in the Basic pane in Workgroup Manager.
--> Delete the account.
--> Change the user’s password to an unknown value.
--> Set password options to disable login. This applies to user accounts with the password type Open Directory or Shadow Password.From the Command Line
You can also disable a user account using the
dscl and
pwpolicy commands in Terminal. For more information, see the users and groups chapter of Command-Line Administration.I prefer the method via Workgroup Manager as part of the [Server Admin Tools|http://www.apple.com/support/downloads/serveradmintools1053.html]. There was some disagreement on whether the Workgroup Manager works on a client version machine some time ago, but I can confirm that it works really well on clients, too. (Hint: To start the Workgroup Manager for a local computer, type "localhost" as address - without the quotation marks.)
And again, the guide for Command-Line Administration states (p.106):
*Preventing a User from Logging In*
Sometimes it is necessary to revoke a user’s ability to access the computer. This involves preventing the user from logging in and then terminating the user’s processes. The latter can be done by forcing the user to log out and then killing remaining processes, or by just killing the user’s processes.To prevent a user from logging in:
Disable the user account by entering the following command:
$ pwpolicy -a diradmin -u ajohnson -setpolicy “isDisabled=1”
Replace ajohnson with the short name of the user account and replace diradmin with the short name of your domain administrator account.Note: The pwpolicy command only works for LDAP/Password server users. For a local user, use Workgroup Manager or the Accounts pane of System Preferences.
Regards,
floba(MN428)
Message was edited by: floba
- 0
p.a ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
**** it Leopard does not support netinfo ! I didn't know.
I was testing with a tiger and asked an absent-minded colleague who told me that leopard had it too.
That's a pity because I want to disable the account on a Leopard machine.p.a
- 0
p.a ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Very helpful thank you.
Unfortunately, pwpolicy does seem to work only on a server (I'll try to test on a workstation).
It leaves for the workstation only the "For a local user, use Workgroup Manager or the Accounts pane of System Preferences. "
Installing Workgroup manager on the machine could make it but for more machines it's not very practical. Maybe we can connect to the machine remotely via Workgroup manager.
Deleting via System Preferences is not really elegant.So we have already solutions but I think we can find better. I'll keep searching a bit.
Regards,
p.a