Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Prevent Access to passwd

Prevent Access to passwd
Thread Tools
Warhaven
Dedicated MacNNer
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jun 10, 2010, 04:57 PM
 
Hey All,

I've run into a slight problem with my lab computers. I have an account's ability to change password disabled, and the account is restricted to the applications in just the Applications folder. Unfortunately, Leopard doesn't seem to care if you run the application off your Desktop either. Or for that matter, if you copy an application from the Utilities folder to the user Desktop and run it there.

So, I have a potential problem that a clever student pointed out. Despite being unable to change password from the preference pane, a student could still change the password by copying the Terminal app from the Utilities folder to the Desktop, then running it, then using the passwd command. Apparently, Leopard doesn't prevent the passwd command, even on a managed account.

Any thoughts? Can I disable access to the passwd command, and for that matter, dscl?

Thanks,
-Rob
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jun 10, 2010, 05:10 PM
 
Originally Posted by Warhaven View Post
Apparently, Leopard doesn't prevent the passwd command, even on a managed account.
One question: is the password for that managed account known to the user / students ?

-t
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 10, 2010, 05:17 PM
 
You could try modifying the permissions of /usr/bin/passwd to remove the executable permissions for everyone, leaving it executable for root and those in the wheel group (i.e. admins).
     
Warhaven  (op)
Dedicated MacNNer
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jun 12, 2010, 01:19 PM
 
Originally Posted by besson3c View Post
You could try modifying the permissions of /usr/bin/passwd to remove the executable permissions for everyone, leaving it executable for root and those in the wheel group (i.e. admins).
That's what my Apple support just suggested. Thanks for the replies.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:43 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,