Inside Mac Games Forum: Troubles with permissions going zilch? - Inside Mac Games Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Troubles with permissions going zilch?

#1 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 20 March 2009 - 08:57 AM

I know this is more of a gamer forum, but, eh, you guys know your OS.

Lately, I have been seeing, some files just go dead with their permissions. Basically its like something is randomly doing a chmod 000 on the file. The "owner" remains, but the privs are no-no-no.

I cannot make out any rhyme or reason. Some are plain .txt. Some are .pdf. Some are an .exe I have stored from my PC. It seems like it could be any kind of file! However the only common factor is, it is not wide-spread across the entire drive and directories. It seems to only be isolated within my home directory. Anything anywhere else I have yet to see this behavior happen.

Ideas?
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#2 User is offline   the Battle Cat Icon

  • Sewage Served Raw
  • Icon
  • Group: Admin
  • Posts: 12593
  • Joined: 19-May 04
  • Location:Citadel City, Lh'owon
  • Pro Member:Yes

Posted 20 March 2009 - 01:25 PM

Well for a second there I was going to suggest we all dress up a flock of chickens in lederhosen, play tubas and drink beer but it suddenly dawned on me that you meant ideas about what is causing your permissions problem. It's a good thing I didn't post.
Gary Simmons
the Battle Cat
0

#3 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 20 March 2009 - 01:30 PM

LOL.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#4 User is offline   teflon Icon

  • of the Popeye Analogy
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 8990
  • Joined: 31-May 05
  • Location:London, UK

Posted 20 March 2009 - 03:50 PM

one of the best things tBC has come up with all day! cant wait to see what crazy and zany thing he does/says next!

as to your problem, Im afraid I havent a clue. Sorry.
Polytetrafluoroethylene to my friends.

Macbook Pro - C2D 2.4Ghz / 4Gb RAM / WD Scorpio Black 320GB ( 255GB OSX v 42GB XP ) / Geforce 8600M GT 256Mb / 15.4"
Cube - G4 1.7Ghz 7448 / 1.5Gb RAM / Samsung Spinpoint 250GB / Geforce 6200 256Mb

We won! Apple offer the 17" with a matte screen! Well... at a price...
0

#5 User is offline   bobbob Icon

  • Uberspewer
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3193
  • Joined: 25-February 03

Posted 20 March 2009 - 04:30 PM

View PostFrigidman, on March 20th 2009, 07:57 AM, said:

it seems to only be isolated within my home directory

Some app you're running can't handle permissions? Did you copy those files over with something odd? Maybe run something as an administrator on them? Or maybe your FS/ drive is dying? What does fsck -fy say? (boot into single user mode)
0

#6 User is offline   charmin Icon

  • Legendary
  • PipPipPipPipPip
  • Group: Members
  • Posts: 855
  • Joined: 31-May 07
  • Location:London, UK

Posted 20 March 2009 - 06:51 PM

Maybe it's the dreaded ACL :o
15"MBP@2.4/250/2/256 (This space saving format should be an international standard)
I'm actually TOO good at both TMFPPG and Fable:TLC.
I sleep in a BBEdit T-shirt, but I'm a TextMate user.
0

#7 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 21 March 2009 - 08:13 AM

Fairly new hard drive (some post somewhere I wrote about it).

fsck -fy doesnt say anything.

Whats pretty odd... this one folder I went in to fix all the permissions on a handful of files, I just did a ls on it this morning, and some files are back reading weird:

----------@ 1 XXXX XXXX 81155 Mar 6 10:39 shot1.jpg
----------@ 1 XXXX XXXX 82002 Mar 6 10:39 shot2.jpg
----------@ 1 XXXX XXXX 83307 Mar 6 10:39 shot3.jpg

(the XXXX is in place of my user/group... not sharing that info! lol)

The even MORE crazy part, is if I "Get Info" on those files, they show as read/write to everyone.

I have a feeling its my windows XP machine. It connects to my home directory when I want to grab storage files (I download all windows files on my mac, then pull them over to the windows machine when I NEED them). The files though above, are not windows created, nor used. I made them on my mac, saved them on my mac, and never pulled or touched them from the XP side.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#8 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 21 March 2009 - 08:38 AM

Also would like to add, it seems totally random on the user:group settings for files.

Some its MyUser:MyUser, others its MyUser:admin (where "MyUser" is my actual username/account on the machine).

Other thing to note, sometimes files have a @ symbol for their permissions (in terminal). Otherwise, some plain text files are 'x' (for executable).

Its like... my entire permissions/user/groups settings on files is totally scrambled up. What the heck?!

And last thing to note, sometimes the .DS_Store files are set to executable while some not, and the permissions again, all wacky:
-rwxrwxrwx@
-rw-------@
-rw-r-----@
-rw-rw-r--@


Even IF I reinstalled OSX all over and startedfrom scratch, all my backed up files are crazy messed up, and would come back like that. So I don't know what to make of this. Can't tell how far back in time this started to happen either.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#9 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 21 March 2009 - 09:27 AM

I found this posted on the apple support forums... but the fire trucker didnt include the link, AND I have been searching and searching and cannot find it. This post was made in 2007... certainly apple has a solution by now?

"The older setup was to have a groupid number that matched the accountid number (501 and 501 for example). Unfortunately the group that is supposed to be represented by, say, groupid=501 is missing a piece of naming information that Leopard wants -- a bug in the portion of the installer that deals with legacy accounts like this. This results in the "unknown" group showing up in Get Info's permissions section for example.

Apple has a Knowledge Base article out now that purports to show two, simple Terminal commands to add the missing piece of information to the group record of each such account (an additional name beginning with an "_" underscore character, but it appears the pair of commands they posted are incorrect, so we are going to have to be patient a little while longer while they revise that."


I can confirm my machine is indeed missing the 'group' record for 501... which causes the "Unknown" to show up in Get Info group privs for many files.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#10 User is offline   Tesseract Icon

  • Uberspewer
  • PipPipPipPipPipPipPip
  • Group: Forum Moderators
  • Posts: 3174
  • Joined: 08-December 04
  • Pro Member:Yes

Posted 21 March 2009 - 11:30 AM

Looks like you possibly found the main problem, but Windows does seem to love making things executable. IIRC this is because it doesn't have an execute permission (it's determined by the filename extension instead), so utilities that copy from Windows to Unix-ish systems tend to set the x bits on everything.

I believe the @ after the mode means the file is invisible.
0

#11 User is offline   charmin Icon

  • Legendary
  • PipPipPipPipPip
  • Group: Members
  • Posts: 855
  • Joined: 31-May 07
  • Location:London, UK

Posted 22 March 2009 - 03:40 AM

Quote

Actually, "+" indicates the richer permission model (also known as ACLs).

The "@" sign -- which is not documented in the manual page for ls(1) -- indicates that the file has extended attributes. You can use the command 'xattr -l <filename>' to show them. It seems that a lot of Finder information, which ought to be stored in the catalog, is now in extended attributes. (Hmmm, or maybe it's actually still in the catalog file and just being exposed as extended attributes, which would make a lot of sense.)

15"MBP@2.4/250/2/256 (This space saving format should be an international standard)
I'm actually TOO good at both TMFPPG and Fable:TLC.
I sleep in a BBEdit T-shirt, but I'm a TextMate user.
0

#12 User is offline   Bernie Icon

  • Naughty
  • PipPipPipPipPipPip
  • Group: IMG Pro Users
  • Posts: 1666
  • Joined: 11-February 05
  • Location:Baltimore, Maryland
  • Pro Member:Yes

Posted 22 March 2009 - 04:05 AM

Fm,

Have you found this thread? If that is your problem, I'd read the whole thread before trying anything.
One Way of Looking at Life
Good to be a Master.
Better to be a Teacher.
Best to be a Student.
0

#13 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 22 March 2009 - 09:29 AM

Thanks Bernie.

After reading through that thread, I have a pretty good idea what the frell happened.

I Had the original 10.5 Install DVD (this was before 10.5.6). I had used the "Migration" from my 10.4 install, for all my files and folders and apps (because honestly I did not want to spend weeks reconfiguring and installing everything I have!).

Well, it looks like doing so, with the old 10.5, it has serious issues with privs and perms. It sets the wrong group ids, it doesnt fix anything, and makes a broken group the same as the user (which is how the old 10.4- worked). See, 10.5, it wants to put all new users in the same 'group' and gid... of "staff 20". My machine, its all 501:501, where 501 is an unknown group to Finder.

Anyhow, I tried to boot to that CD and ran the Permissions and ACLs reset/fixer... well, that screw things up even more lol. It ended up changing ALL user's home directories to group of "wheel" !!! Which now any new files made, get the group of 'wheel', and NO users are actually IN the 'wheel' group (as evidenced by useing the nix command: id [username]).

So, it looks like I'm going to mirror my drive off to my external USB, then re-install 10.5 ground up, run through ALL the updates before I try migrating any user back. Hopefully the migration in 10.5.6 is FIXED (since all these problems were of 2007/2008). I will attempt a migrate of the user, then check the privs. If the migration of the new 10.5.6 WORKS, then I am done. Otherwise, I will have to manually migrate, by doing a 'copy' of each file into a 'new' user account. Then reinstall all my software too ugh. Only way to clean up all the permissions!

There were other mentions of running a mass spam nix command that changes all the group privs lol... but that sounds like asking for trouble. This popsnizzle should be automated by OSX, and I shouldnt "HAVE" to dig in with nix commands to fix things.

The article didnt explain why some files would suddenly get zero privs. Seems thats a unknown issue. It may be related to the fire trucked up group privs on my machine, and XP accessing and OSX not understanding what XP is doing, and things just get super fire trucked.

Backing up everything now. Oh joy.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#14 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 23 March 2009 - 10:34 AM

Well, it seems migration assisstant, even after 2 years since it was first reported as a problem, is still broken. Whenever it migrates from an older OS (or a broken one), it doesnt do a dang thing about fixing anything.

So, I just went and installed a fresh OSX.5 ran through all the software update items it wanted to, then manually copied my files, and installed apps all over. I manually copied most prefs files for each app I installed, and those worked fine.

Now, going through my directories, and looking, there is now no longer any instance of a stupid 501 GID, nor anymore 'wheels' inside my home directory.

I swear Apple, get your popsnizzle together... this crap is like dealing with windows.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

#15 User is offline   ijedi42 Icon

  • Notorious
  • PipPipPip
  • Group: Members
  • Posts: 185
  • Joined: 03-November 06
  • Location:Vancouver

Posted 23 March 2009 - 09:35 PM

i always run diskwarrior before transferring anything from an old machine to a new one, i find that helps alot.
0

#16 User is offline   bobbob Icon

  • Uberspewer
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3193
  • Joined: 25-February 03

Posted 24 March 2009 - 03:00 PM

Oh, on top of Migration Assistant being the popsnizzle, Apple ships a known broken piece of Samba. Upgrade that ASAP. The newer versions (3.3 or 4 IIRC) handle Mac extended attributes better.
0

#17 User is offline   Frigidman Icon

  • Ordinary Idiot
  • Icon
  • Group: Admin
  • Posts: 1453
  • Joined: 01-April 00
  • Location:East mahn, East!
  • Pro Member:Yes

Posted 25 March 2009 - 08:10 AM

Ah, good call.
-Fm [1oM7]
"I'm not incorruptible, I am so corrupt nothing you can offer me is tempting." - Alfred Bester
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users