Permissions Hell - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Oct 21st, 2003, 11:09 AM   #1
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Zacatecas, México
Posts: 10,194
Send a message via AIM to CubaMark
Unhappy

"I have seen the Devil, and he is CHMOD."

A week or so ago I migrated one of our centre's staff from an iMac DV 500 to a new 1Ghz eMac (the one that didn't arrive DOA).

I'm sure there was a better way to do this, but I went for the straightforward route: Set up file sharing on the iMac, logged in from the eMac, and copied the entire User folder onto the eMac's desktop.

Next step was to create a new User account on the eMac which would become the new Admin user (the existing user account was downgraded at the end of this process to a non-admin account) and move the respective Desktop, Library, etc. folders into place under the new User, replacing the default ones created.

We are now in permissions hell.

Folders are locked which shouldn't be. Permissions for folders (like, "Desktop" and "Pictures") belong to the wrong user (or to the System). Things are very, very wrong.

I've run Disk Permissions a zillion times (once as Root for good measure). I've tried BatCHMOD to fix permissions. I've gone into the terminal and did the handy-dandy "sudo su / cmod -R username /Users/username" command.

Things looked like they were straightening out until late yesterday, when Safari discovered it couldn't download anything to the desktop ("Could not create file"). Turns out the "Desktop" folder had incorrect permissions ("system").

So - anybody wanna suggest a quick and easy fix to this mess? Certainly I can create another new user, but how do I keep permissions straight when I move the files to their new homes?


M
__________________
It's not an embargo. It's a blockade. www.cubavsbloqueo.cu
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is online now   Reply With Quote
Sponsored Links
Advertisement
 
Old Oct 21st, 2003, 04:10 PM   #2
Full Citizen
 
Script Kiddie's Avatar
 
Join Date: Jan 2003
Location: Waterloo
Posts: 809
Post

I think you mean the chown command, not chmod.

Assuming user's short name is "fred" and home dir is /Users/fred and his group is "staff"

As root
1) cd /Users
2) chown -R fred.staff fred

Second thing to remember is you have to rename
fred's keychain.

cd /Users/fred/Library/Keychains
and rename the file to "fred"
__________________
.o0o.
Script Kiddie is offline   Reply With Quote
Old Oct 21st, 2003, 04:31 PM   #3
Honourable Citizen
 
PosterBoy's Avatar
 
Join Date: Jan 2002
Location: Vancouver, British Columbia
Posts: 6,749
Send a message via AIM to PosterBoy Send a message via MSN to PosterBoy
Post

For future reference, using an app like Carbon Copy Cloner might work easier and without the permissions issues that you have now.

--PB
__________________
Awesome Friday! movies, games, and other nerdy things.
PosterBoy is offline   Reply With Quote
Old Oct 21st, 2003, 04:48 PM   #4
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Zacatecas, México
Posts: 10,194
Send a message via AIM to CubaMark
Wink

Chmod, Chown, Clown, Clod whatever - I was raised in a GUI, not the command-line!

But yes, I meant <u>Chown</u>

Thanks for the adjustment to the command, SK, that wasn't part of the hint that I picked up on one of the sites...

And PB, yeah, CCC - I guess I just think of it as a backup utility, as I haven't had to use it yet. I'll look into it on the next migration...

M
__________________
It's not an embargo. It's a blockade. www.cubavsbloqueo.cu
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is online now   Reply With Quote
Old Oct 21st, 2003, 07:43 PM   #5
Honourable Citizen
 
Moscool's Avatar
 
Join Date: Jun 2003
Location: London (UK)
Posts: 3,450
Post

I recently migrated an iMac15 to a new iMac15 using carbon copy through a FW cable and one machine acting as a passive drive ('T' boot): it was a dream. Only problem was that the new machine needed 10.2.7 and the old one had 10.2.6. Meant I had to reinstall the system on the more recent machine, but it did it all by itself and things worked very smoothly from there on.

A side question on permissions: I am having problems with files in my shared folder when I repair permissions. I need to manually re-authorise read-write and/or reattribute an owner. Anything I can do when I run my weekly cleanup?
__________________
Bop 'til you drop

MB Air 15 | i7 | 8 Gigs of shiny DDR RAM | 512 blistering SSD
iMac 27 i5 16Gig 1TB
Time Capsule 1TB
iPhone 5: "It's fast..." & Sony noise cancelling headphones
Canon 7D proper camera with nice L glass and Lightroom 4
Moscool is offline   Reply With Quote
Old Oct 21st, 2003, 08:17 PM   #6
Full Citizen
 
Script Kiddie's Avatar
 
Join Date: Jan 2003
Location: Waterloo
Posts: 809
Post

Quote:
A side question on permissions: I am having problems with files in my shared folder when I repair permissions. I need to manually re-authorise read-write and/or reattribute an owner. Anything I can do when I run my weekly cleanup?
What sort of "repairing" are we talking about?
The Shared folder has different permissions than users because it has to allow everyone to write to it. In Unix-speak we say the sticky bit is set. You can always tell if a directory is sticky by observing a "t" at the end of the directory permissions string like so:

drwxrwxrwt 44 root wheel 1496 May 19 08:20 Shared/

whereas a normal directory like skiddie is not sticky, the last char is "x", not "t"

drwxr-xr-x 13 skiddie staff 442 Jun 22 11:34 skiddie/

Do you think now that the repair is breaking the sticky bit?
__________________
.o0o.
Script Kiddie is offline   Reply With Quote
Old Oct 22nd, 2003, 03:29 AM   #7
Honourable Citizen
 
Moscool's Avatar
 
Join Date: Jun 2003
Location: London (UK)
Posts: 3,450
Post

Need to check. I'll follow-up on this thread next time it happens. Thanks.
__________________
Bop 'til you drop

MB Air 15 | i7 | 8 Gigs of shiny DDR RAM | 512 blistering SSD
iMac 27 i5 16Gig 1TB
Time Capsule 1TB
iPhone 5: "It's fast..." & Sony noise cancelling headphones
Canon 7D proper camera with nice L glass and Lightroom 4
Moscool is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
joke du jour Everything Else, eh! 1943 Mar 2nd, 2013 12:06 PM
Do OS X (and UNIX) file permissions suck? barthrh Anything Mac 3 Aug 29th, 2005 03:03 PM
A detailed breakdown of why Repairing Permissions rarely does anything useful PosterBoy Anything Mac 5 Jun 3rd, 2005 05:38 PM
so many permissions! csonni Mac, iPhone, iPad and iPod Help & Troubleshooting 6 Nov 9th, 2004 03:50 PM
Permissions Hell (revisited) Pelao Mac, iPhone, iPad and iPod Help & Troubleshooting 8 Apr 28th, 2004 12:55 PM


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



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!