![]() |
Quote:
If you want omnipotence, grab a root shell: sudo -s Quote:
It's the companion to uid = 0 (root), and only root shall be a member. Thus sayeth the [BSD] Unix Lord. ;) |
Quote:
An admin account is one which can attain root privileges temporarily (for one command) by using 'sudo'. The 'root' account is disabled by default in OS X since it is a security risk to be logged in as root - especially in a GUI. And all uses of 'sudo' are logged - which is an advantage. |
Note also that the 'sudo' command only prompts for a password if it has been more than (by default) 5 minutes since your last use of 'sudo'.
|
Quote:
Code:
%admin ALL=(ALL) ALLSo, as an administrator, you DO get root privileges, simply by using sudo. Sudo access is logged (another good security measure) in /var/log/system.log and /var/log/secure.log. Sudo usage also has some other security features built in. Quote:
Quote:
Trevor |
Quote:
Granted, there's no guarantee that Apple will erase non-Apple items in those areas, (quite the opposite in fact). It's just that --if/when it ever does happen-- they will be fully within their rights to do so. |
Quote:
He said he's already "annoyed" -- why let 5 minute time-stamps add to that frustration? A sudo -s shell will last until the user types control-D. ;) |
Quote:
It's not just something that runs scripts. It's the root parent process of all processes in Mac OS X. |
Quote:
As for the sudo thing. When I do extensive terminal work I use first authenticate using sudo -s which opens up a root session in terminal and I am not sure if there is any time out. |
Quote:
Quote:
I'm not getting into the /sbin argument, but you're making a lot of fundamentally flawed assumptions in this thread. |
Quote:
The "lot" of developers who write to the system directories are wrong. On the other hand, the developers who create directories like /opt are just fine. /usr/local is traditional, but not at all required. If developers want to create new directories like /sw (used by fink) and /opt, that's just fine. Trevor |
Quote:
But I don't recommend it as a general use anytime you need to run a few commands with 'root' privileges. A certain amount of "annoyance" is good - it reminds you that you are doing something that might break the system. And anything that slows you down when doing such things is good. |
Quote:
|
Yeah I agree with you Mikey, I am just saying it is possible. While I have read through a lot of the Apple white pages I have also seen countless developers put stuff where it doesn't belong. I think Apple does look out for this type of stuff to some extent, especially legit third party developers.
While, I know I have bad habits, I don't see Apple wiping out my scripts I put in /usr/sbin and there are certain reasons I don't like putting things in user folders, especially with things like 'repair permissions.' Also, Apple doesn't always make it easy, and some developers are clueless and I don't know everything. I just get by with what I can. |
Quote:
i do what needs doing and then control-D out of there). I was making that special recommendation to yonio... "a kernel developer for several unix based platforms," who found "this whole thing really annoying". :) -- sudo alone only gets us so far. We cannot do this for example: sudo cd /var/db/dslocal/nodes/Default [so it's either type long pathnames or...] |
| All times are GMT -5. The time now is 10:18 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.