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 > Partitioned Drives Permission Extravaganza?!

Partitioned Drives Permission Extravaganza?!
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Sep 11, 2003, 09:59 PM
 
Hi all,
I have a 120 GB drive partitioned into an 8GB system partition, and a 112 GB other partition. The computer is essentially a web server. So, I thought that logging myself out would free up system resources. Then, when SSHed into it, I found that the second partition had all been re-owned by root. Once I log in again, the drive goes back to being owned by me. I saw this all just using ls -la. I'd like to be able to not have to sudo just to move files when I'm not physically logged in. Is there any way I can do this? I'm also not entirely sure what the "Ignore Permissions On This Drive" checkbox does. If someone could explain that, it'd be great. Thanks a lot,
Gabe
     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Sep 12, 2003, 12:10 AM
 
The "Ignore Permissions on this Drive" checkbox makes the drive owned by whoever is logged in on the console at the time. If nobody is logged in this is root.

If you want to have access for your user (and presumably nobody else), just turn off "Ignore Permissions on this Drive" and set the owner of the drive to your user using:

sudo chown -R user "/Volumes/Other Drive"

Replacing the appropriate parts as necessary. As a side note, and files you copy off this drive while it's in "Ignore Permissions on this Drive" mode if they're copied in such a way as to retain their UID, or any other file that is on the disk owned by "unknown" (UID 99), will be treated by OS X as being owned by the currently logged in user on the console. You can fix this by changing their owner to your user specificially, using either chown on the command line, or the Finder by changing so some other user and back again. Note that the SUID/SGID bits are ignored by the OS when the UID is being transformed like this, so no creating a SUID root shell

- proton
     
   
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 -5. The time now is 08:27 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2