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 > Mac OS X > Maintenance scripts from non-root?

Maintenance scripts from non-root?
Thread Tools
Forum Regular
Join Date: Jan 2005
Status: Offline
Reply With Quote
Sep 25, 2008, 01:48 PM
 
I never log in as root on my computer and have a program which does maintenance from non root user. No problems?
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Sep 25, 2008, 02:11 PM
 
Eh... Well, maintenance scripts are run regularly as root by a program called cron, which starts when OS boots - who is logged in at that point doesn't matter. Any maintenance done with say Disk Utility or similar (basically any app where you have to enter you password to do something) will run as root as well. Generally you're not supposed to log in as root at all, and I don't think I've done so since the dark days when OS X was new.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Sep 25, 2008, 05:23 PM
 
Are you suggesting that this program is circumventing privileges by doing things that it shouldn't?

Don't bother with so-called "maintenance" applications, they are pointless. Modern OSes are not like cars that need tuneups every once in a while.
     
Forum Regular
Join Date: Jan 2005
Status: Offline
Reply With Quote
Sep 26, 2008, 11:39 PM
 
Originally Posted by besson3c View Post
Are you suggesting that this program is circumventing privileges by doing things that it shouldn't?

Don't bother with so-called "maintenance" applications, they are pointless. Modern OSes are not like cars that need tuneups every once in a while.
I am using Main Menu.
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Sep 27, 2008, 09:13 AM
 
Originally Posted by besson3c View Post
Are you suggesting that this program is circumventing privileges by doing things that it shouldn't?
No. Those binaries are setuid root, meaning that they can execute as if they were root. If they were written according to Apple's guidelines, they will require you to enter an your password and you have to be in the sudoers group to do anything that requires root access.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Sep 27, 2008, 12:24 PM
 
So it requires an admin user. I just wanted clarity on whether the original poster felt that this was a problem, I didn't mean to imply that it is.
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 12:02 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2