FAO : Cyberface/Learner
Author
Discussion

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
Got an annoying problem that I hope you can shed some light on.

I've just bought a new iMac to replace one of my Minis as my working machine. However, the Mini in question also runs my music library server (Squeezeboxes) so when setting up the iMac I used the built-in transfer function to transfer all my user data from the Mini to making setting up simpler.

All worked fine (apart from a couple of minor niggles).

However, I've developed a rather wierd problem. It involves copying files from the iMac to the Mini over the network. Sometimes the copy will instantly fail saying "You do not have sufficient privileges" or sometimes the file will start to copy and then, say, half-way through it will fail with the same error message and then sometimes (or not) leave a partial file on the destination which you cannot delete through the finder alone (have to terminal->sudo rm etc.)

Some searching turned up a connected thread on Apple's site (last few posts are probably most pertinent);

http://discussions.apple.com/thread.jspa?messageID...

What a couple of guys are suggesting is that duplicating a user from one machine to the other throws up permissions issues. I'm in the same situation having duplicated my account from the Mini to the iMac so it's my fear that they are on to something here. Problem is, I don't know what to do fix it? I'm thinking that if I create a temp (admin) user, log in with that, then delete my duplicated user account, then create a new user but with the same name then the issue will be resolved but wanted to get your opinion before rolling up my sleeves and jumping in.

It's actually a wider problem than just the two machines as I have another even older Mini that is exhibiting the same problem but thinking back, it's likely that the original user account was created on that machine, migrated to the new Mini then migrated to the iMac.

Thanks,

Neil

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
Some more info.

I booted up Netinfo Manager on all the machines and check the details of my user account (same name on all).

On the Mini in question and the iMac, the "generateduid" and "naprivs" are identical. But on the two other machines I have (MacBook and older Mini), despite having the same login name on all four, these two have unique enteries for "generateduid" and "naprivs".

Could this be the problem?

Oh, meant to add to the first post that it's not all files that have the copying problem. Seems that any files that existed on the Mini before migrating to the iMac copy fine. It's just newly created/downloaded files on the iMac that have issues when copying to the Mini.

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
Another curious bit of info.

It seems it only happens when trying to write to/from one of the two external drives that are connected to the Mini - one 300gb firewire and the other a 500gb USB drive. Writing to/from the internal/boot drive on the Mini is fine.

confused

TheLearner

6,962 posts

266 months

Tuesday 9th October 2007
quotequote all
Mac's aren't really my area, but.... on the mini I'd poke at the external HDD and do the equivalent of 'chmod -c -R 777 *' It could be you're trying to copy a file with superuser privileges or something similar.

And if you do want to chmod, open Terminal and cd to the drive, then quite literally it's as above.

Plotloss

67,280 posts

301 months

Tuesday 9th October 2007
quotequote all
whistle

mystomachehurts

11,669 posts

281 months

Tuesday 9th October 2007
quotequote all
Plotloss said:
whistle
Can someone please explain to me what this smilie means?

Are you waiting in the wings on your white horse or sumfing?

Plotloss

67,280 posts

301 months

Tuesday 9th October 2007
quotequote all
mystomachehurts said:
Plotloss said:
whistle
Can someone please explain to me what this smilie means?

Are you waiting in the wings on your white horse or sumfing?
Not in the slightest, I know nothing about Macs, ghastly things.

However, it is a smiley in context for The Dude.

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
mystomachehurts said:
Plotloss said:
whistle
Can someone please explain to me what this smilie means?

Are you waiting in the wings on your white horse or sumfing?
He's trying to affect an air of superiority.

Ignore him.

Plotloss

67,280 posts

301 months

Tuesday 9th October 2007
quotequote all
The Dude said:
mystomachehurts said:
Plotloss said:
whistle
Can someone please explain to me what this smilie means?

Are you waiting in the wings on your white horse or sumfing?
He's trying to affect an air of superiority.

Ignore him.
Suprised you can see the keyboard through those yellow lenses.

Also, you're a bit brusque, turtleneck a bit tight?

mystomachehurts

11,669 posts

281 months

Tuesday 9th October 2007
quotequote all
The Dude said:
mystomachehurts said:
Plotloss said:
whistle
Can someone please explain to me what this smilie means?

Are you waiting in the wings on your white horse or sumfing?
He's trying to affect an air of superiority.
Hardly, I know bugger all about Macs, just wondered at the meaning behind the smiley.

The Dude said:
Ignore him.
As you like wink

TheLearner

6,962 posts

266 months

Tuesday 9th October 2007
quotequote all
Plotloss said:
whistle
su -
chown nobody:nobody /home/Plotloss

tongue out

cyberface

12,214 posts

288 months

Tuesday 9th October 2007
quotequote all
Sorry - bit late to this one.

External drives can be configured to ignore permissions, which may be the cause of your problem (particularly if the metadata on the original external drive has different unix UIDs but the same name in NetInfo).

In the Finder, option-click / right-click / whatever on the external mounted Volume, and select Get Info. There should be a tickbox at the bottom entitled 'ignore permissions on this volume' - if this is OK for you (on the external drive, it's wise anyway because of the aforementioned problem when sharing external drives between OS installations with different local user UIDs) then make sure this is ticked.

Secondly, after this has completed (I'm not exactly sure whether it does a simple chmod -R 777 / as Sarah suggested above, or whether it instructs the filesystem kext to operate differently - if it's doing a chmod in the background then you'll spot it because it will take some time), I'd run Disk Utility and then repair permissions on your boot volume. It's voodoo but if there's stuff copied across from a different install then it can be of use.

I've seen this from time to time when the above conditions were met - sometimes processes can hold locks on files and you get the error spuriously - using lsof, grep and kill are your friends here. But I reckon the above is worth checking.

mystomachehurts

11,669 posts

281 months

Tuesday 9th October 2007
quotequote all
TheLearner said:
Plotloss said:
whistle
su -
chown nobody:nobody /home/Plotloss

tongue out
Surely sudo, unless you own the box?
tongue out

TheLearner

6,962 posts

266 months

Tuesday 9th October 2007
quotequote all
mystomachehurts said:
TheLearner said:
Plotloss said:
whistle
su -
chown nobody:nobody /home/Plotloss

tongue out
Surely sudo, unless you own the box?
tongue out
I am the Alpha and the Omega. I am root and I'm reading your e-mail. hehe

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
cyberface said:
Sorry - bit late to this one.

External drives can be configured to ignore permissions, which may be the cause of your problem (particularly if the metadata on the original external drive has different unix UIDs but the same name in NetInfo).

In the Finder, option-click / right-click / whatever on the external mounted Volume, and select Get Info. There should be a tickbox at the bottom entitled 'ignore permissions on this volume' - if this is OK for you (on the external drive, it's wise anyway because of the aforementioned problem when sharing external drives between OS installations with different local user UIDs) then make sure this is ticked.

Secondly, after this has completed (I'm not exactly sure whether it does a simple chmod -R 777 / as Sarah suggested above, or whether it instructs the filesystem kext to operate differently - if it's doing a chmod in the background then you'll spot it because it will take some time), I'd run Disk Utility and then repair permissions on your boot volume. It's voodoo but if there's stuff copied across from a different install then it can be of use.

I've seen this from time to time when the above conditions were met - sometimes processes can hold locks on files and you get the error spuriously - using lsof, grep and kill are your friends here. But I reckon the above is worth checking.
thumbup Cheers, I'll have a mess around with that lot and report back.

trooperiziz

9,457 posts

283 months

Tuesday 9th October 2007
quotequote all
The Dude said:
However, I've developed a rather wierd problem. It involves copying files from the iMac to the Mini over the network. Sometimes the copy will instantly fail saying "You do not have sufficient privileges" or sometimes the file will start to copy and then, say, half-way through it will fail with the same error message and then sometimes (or not) leave a partial file on the destination which you cannot delete through the finder alone (have to terminal->sudo rm etc.)
I'm assuming your network is wired?

When doing file transfers via my old netgear router, I used to get very weird errors at random times, which turned out to be the wireless on the router having a fit every few minutes. Not enough to notice in general use, but enough drop a file transfer or corrupt a file.


cyberface

12,214 posts

288 months

Tuesday 9th October 2007
quotequote all
trooperiziz said:
The Dude said:
However, I've developed a rather wierd problem. It involves copying files from the iMac to the Mini over the network. Sometimes the copy will instantly fail saying "You do not have sufficient privileges" or sometimes the file will start to copy and then, say, half-way through it will fail with the same error message and then sometimes (or not) leave a partial file on the destination which you cannot delete through the finder alone (have to terminal->sudo rm etc.)
I'm assuming your network is wired?

When doing file transfers via my old netgear router, I used to get very weird errors at random times, which turned out to be the wireless on the router having a fit every few minutes. Not enough to notice in general use, but enough drop a file transfer or corrupt a file.
Check out the end of the Vista thread with Sarah's and my rant about the Atheros wifi chipset used in current Intel Macs. It is absolute rubbish and the source of LOADS of issues people are having with WiFi (including me) with Macs. The Dude's problem sounds different.

mystomachehurts

11,669 posts

281 months

Tuesday 9th October 2007
quotequote all
TheLearner said:
I am root and I'm reading your e-mail. hehe
So you caught the one from shiiagothic then... Damn... And I was trying to keep that one secret!

sits back and laughs whilst everyone googles shiiiagothic

The Dude

Original Poster:

6,546 posts

278 months

Tuesday 9th October 2007
quotequote all
cyberface said:
trooperiziz said:
The Dude said:
However, I've developed a rather wierd problem. It involves copying files from the iMac to the Mini over the network. Sometimes the copy will instantly fail saying "You do not have sufficient privileges" or sometimes the file will start to copy and then, say, half-way through it will fail with the same error message and then sometimes (or not) leave a partial file on the destination which you cannot delete through the finder alone (have to terminal->sudo rm etc.)
I'm assuming your network is wired?

When doing file transfers via my old netgear router, I used to get very weird errors at random times, which turned out to be the wireless on the router having a fit every few minutes. Not enough to notice in general use, but enough drop a file transfer or corrupt a file.
Check out the end of the Vista thread with Sarah's and my rant about the Atheros wifi chipset used in current Intel Macs. It is absolute rubbish and the source of LOADS of issues people are having with WiFi (including me) with Macs. The Dude's problem sounds different.
Actually the issue is with both wired and wireless.

TheLearner

6,962 posts

266 months

Tuesday 9th October 2007
quotequote all
mystomachehurts said:
TheLearner said:
I am root and I'm reading your e-mail. hehe
So you caught the one from shiiagothic then... Damn... And I was trying to keep that one secret!

sits back and laughs whilst everyone googles shiiiagothic
:shakeshead: Read e-mail and shove it on the notice board for people to gawp at... two different things.

Damn, there goes my blackmail opportunity