Sponsored Content
Full Discussion: Recurring Permissions Voodoo
Operating Systems OS X (Apple) Recurring Permissions Voodoo Post 302467815 by jim mcnamara on Sunday 31st of October 2010 12:18:48 PM
Old 10-31-2010
hmm.

You have validated the contents of Netinfo, right? Or are you using LDAP or whatever else for user authentication? Do this BEFORE fsck.


Filesystems are made of several things. Metadata (data about files) , data in the file, and some part or all of a device like a disk. The metadata maps the data onto the physical device. Metadata also involves permissions, ACLs, inodes and other stuff like blocksizes.

When a filesystem goes South it usually means the metadata got messed up, or there was a physical problem with the disk. What I am seeing is 'interesting' metadata.

I am assuming you ran low-level checks on disk physical integrity, right?

You appear to have metadata issues, a lot of them. fsck will try to fix it. You will probably see complaints about some directories you never heard of. If you have files in those wierd directories, you have to see if either fsck can move them or you may need to try to recover those files.

Do not go messing about with xattr to fix the @ metadata until after fsck pronounces things okay. @=extended attributes, kind of cutsie information about files. After fsck have a go with xattr. I think there is no help for xattr, so try xattr -h or xattr -? to get some idea how to use it.

I'm guessing the ACL's are pure nonsense. Try:
The ACL Permissions pane
to play around with the ACL pane. If you see numbers instead of text for user ids or groups in an ACL it has to be a garbage ACL. Or something from a previous app that no longer exists - meaning it is: dangerous, a problem, or pointless. I think the ACL pane complains on certain problems. Do this post-fsck.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permissions

Hi everyone, I'm looking for some information concerning Unix permissions. I am new to Unix and am doing research for a graduate class. Given the permissions below, can anyone give me five unique exploits that would be available to a hacker/cracker given this configuaration? -rw-rw-rw- 1... (1 Reply)
Discussion started by: skeeter
1 Replies

2. UNIX for Dummies Questions & Answers

permissions

to prohibit 'others' from deleting files, what should we omit: write or execute? thx (9 Replies)
Discussion started by: melanie_pfefer
9 Replies

3. Shell Programming and Scripting

recurring run of sh script in crontab

Hello gurus. I have a problem: my crontab -e is looks like this: ORACLE_SID=bla-bla * 21 * * * (sqlplus hotback/hotback @/oracle/backups/bla-bla/scripts/hotback/daily_hotback.sql) 0 19 * * * /oracle/backups/dev10g/scripts/exports/daily_exports.sh 0 1 * * *... (4 Replies)
Discussion started by: MarGur
4 Replies

4. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

5. Shell Programming and Scripting

sed or awk to convert text files with recurring headings to rows and colum

I have many text file reports generated by a Information Assurance tool that I need to get into a .CSV format or Excel tab delimited format. I want to use sed or awk to grab all the information in the sample text file below and create column headings:Risk ID, Risk Level, Category, Description, How... (5 Replies)
Discussion started by: Bjoeboo
5 Replies

6. Shell Programming and Scripting

print the last line of an recurring pattern on the 3rd field

How can i awk/sed to print the last line of an recurring pattern on the 3rd field? Input lines: 123456.1 12 1357911 11111.1 01 123456.2 12 1357911 11111.2 02 123456.3 12 1357911 11111.3 03 123456.4 12 1357911 11111.4 04 123456.5 12 1357911 11111.5 05 246810.1 12 1357911 22222.1 01... (4 Replies)
Discussion started by: ux4me
4 Replies

7. Shell Programming and Scripting

Script to make simple recurring ascii file edit

Hi, I have an ascii file with recurring lines (the file is 36mb so lots of lines) which look like this: -2.5 -66.324-68.138 935.2 1.953 -0.664 272.617 73.684 -2.428 269.998 0.000 Every 14 lines there is a blank line. I would like to, for each non-blank line,... (2 Replies)
Discussion started by: blueade7
2 Replies

8. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy