The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Root admin info deedaz UNIX for Dummies Questions & Answers 2 01-20-2008 07:38 AM
root/admin commands in LINUX naina UNIX for Dummies Questions & Answers 6 12-26-2005 05:24 AM
Assigning Authorization to a user kayode Linux 5 04-27-2005 12:43 PM
shh authorization problem progressdll UNIX for Advanced & Expert Users 1 04-09-2004 08:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2004
ropers's Avatar
ropers ropers is offline
Registered User
  
 

Join Date: Dec 2001
Location: Dublin
Posts: 48
root/admin authorization and PackageMaker

I am building an installable package (.pkg) with PackageMaker 1.1.11 (that's the one that comes with Panther).
The package is for installing things both to /Applications and to some folders in /Library (/Library/StartupItems and a new folder that I'm putting in /Library).
I do (obviously) not choose Overwrite (directory) permissions.
I am putting the whole stuff together as recommended, mirroring the actual directory structure in the folder I am building my package from, choosing a Default Location of /, making it non-relocatable.
I am permissioning my "source" folder in the exact way that I want the files to be later -- mostly root:admin with rwxrwxr-x and rw-rw-r--. (Admins should be allowed to muck around with it, but no one else.)
Now I have two choices: I can either select Admin Authorization or Root Authorization as the Authorization Action.
(No Authorization Required obviously wouldn't do what I want.)

I am unsure which one of the two to choose, and what the effective difference is between them (if any).

Now, no jumping to conclusions here, please folks.
I do know the difference between an admin and the root account.
HOWEVER:The Developer documentation states (under "Authorization, File Ownership, and Permissions"):

Quote:
Even if a package specifies root authorization, a user can authenticate by supplying the administrator password and can then install the software.
(Emphasis by me.)

It further says:

Quote:
If authorization is required, the files are owned by the owner specified in the files archive within the package, regardless of the user and password supplied to complete the authentication.
and:

Quote:
Authorization should be set to root if any component needs to be set to root.
(Emphasis by me.)

Now, maybe I am getting this wrong, but it seems to me that this means that there is virtually no effective difference between asking for root or admin authorization in this scenario (the only difference being that according to Table 12-1 in the said documentation, requiring Root Authorization will promt an admin user to enter their password,
whereas requiring just Admin Authorization would not prompt an admin user.

Am I right?
Is that the only difference?
Is it otherwise inconsequential whether I ask for Root or Admin authorization in this scenario?

Help on this is MUCH appreciated.

rop
  #2 (permalink)  
Old 03-03-2004
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
  
 

Join Date: Sep 2002
Location: San Fran
Posts: 131
If you have no test machine and/or test boot volume to attempt installation and running the installed software on, then you might want to see about enlisting the support of someone that does (not volunteering )

In reality, safety first. If you do not need to provide root privileges to run your app, the Admin authorization is probably what you should use. Escalation to root should only be used when required.

I would think that the difference would be akin to the ramifications of "su -" vs. "sudo".

Sorry I don't have definitive (or maybe even correct) answer to your question. I believe that this installation privileges issue is applicable to any of the Unix threads here, so you may want to try the programming and advanced forums if you don't get a better response than mine.
  #3 (permalink)  
Old 03-03-2004
ropers's Avatar
ropers ropers is offline
Registered User
  
 

Join Date: Dec 2001
Location: Dublin
Posts: 48
Quote:
Originally posted by [MA]Flying_Meat
Sorry I don't have definitive (or maybe even correct) answer to your question.
You're very welcome, any thoughts on this are very welcome.
  #4 (permalink)  
Old 03-04-2004
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I don't know for certain if the below is the only difference, nor am I sure how it relates to package installation, but here's my crack at it:

In OSX, root is the same as almost all other Unix systems. Administrator is almost as good. In OSX, an Administrator is in the admin group, which allows them to run "sudo", to run commands as root.

Now, knowing the little I do know about OSX, I do know root is not enabled by default. Administrator is. Depending on the administrator scripts, you may be able to require admin privelages, and sudo your commands.

Either way, they'll be prompted for either an admin, or the root, login. My gut instinct would tell me to go with administration requirements, not root.
  #5 (permalink)  
Old 03-04-2004
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
  
 

Join Date: Sep 2002
Location: San Fran
Posts: 131
Quote:
Originally posted by LivinFree
I do know root is not enabled by default. Administrator is. Depending on the administrator scripts, you may be able to require admin privelages, and sudo your commands.

Either way, they'll be prompted for either an admin, or the root, login. My gut instinct would tell me to go with administration requirements, not root.
very excellent point, indeed! nice catch!

(though, that begs the musical question, if root being enabled or not could cause an installation to go belly up, how does Apple manage updates?
i'd guess from the melodious query that root is not a requirement for nearly every install...)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0