Opened 11 years ago

Closed 11 years ago

#40667 closed defect (invalid)

Macports taking over file permissions on Time Machine files

Reported by: grapesh@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.0
Keywords: Cc:
Port:

Description

Trying to access files from my old Time Machine backups, I noticed I don't have permissions to open many of the folders (e.g. Users, System, etc)

Here is a dir listing (below), and anything owned by macports:staff is neither accessible by sudo user nor can be changed by chown or chmod commands...

Any idea how to modify permissions so I can get access? Thanks!

/Volumes/Toshi/Backups.backupdb/vostok/2013-03-15-134416/Macintosh HD/Users/svinogradov
host-l-179:svinogradov svinogra$ ls -ltr
total 0
drwxr-xr-x@  5 root      staff   170 Dec 20  2012 Sites
drwxr-xr-x@  5 root      staff   170 Dec 20  2012 Public
drwxr-xr-x@  4 root      staff   136 Dec 28  2012 Movies
drwx------+ 38 macports  staff  1292 Jan 12  2013 Library
drwx------+  7 macports  staff   238 Feb  1  2013 Music
drwx---rwx+ 16 macports  staff   544 Mar  5  2013 Documents
drwx------+ 13 macports  staff   442 Mar  7  2013 Pictures
drwx------+ 53 macports  staff  1802 Mar 11  2013 Downloads
drwxr-xr-x@  4 macports  staff   136 Mar 14  2013 Import
drwx------+ 18 macports  staff   612 Mar 14  2013 Desktop

Change History (2)

comment:1 Changed 11 years ago by grapesh@…

I think I found a solution myself... This is ACL issue:

drwx------+

where '+' sign indicates ACL dependency.

I ran

cd /Volumes/Toshi/Backups.backupdb/
chmod -RN vostok

to rid of ACL and voila:

host-l-179:svinogradov svinogra$ ls -ltr
total 0
drwxr-xr-x@  5 root  staff   170 Dec 20  2012 Sites
drwxr-xr-x@  5 root  staff   170 Dec 20  2012 Public
drwxr-xr-x@  4 root  staff   136 Dec 28  2012 Movies
drwxr-xr-x@ 38 root  staff  1292 Jan 12  2013 Library
drwxr-xr-x@  7 root  staff   238 Feb  1  2013 Music
drwxr-xr-x@ 16 root  staff   544 Mar  5  2013 Documents
drwxr-xr-x@ 13 root  staff   442 Mar  7  2013 Pictures
drwxr-xr-x@ 53 root  staff  1802 Mar 11  2013 Downloads
drwxr-xr-x@  4 root  staff   136 Mar 14  2013 Import
drwxr-xr-x@ 18 root  staff   612 Mar 14  2013 Desktop

Still unsure how MacPorts hijacked my permissions, but chmod -RN did the trick!

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Resolution: invalid
Status: newclosed

MacPorts does not hijack permissions or ownership. MacPorts creates a normal system user account—"macports"—and uses it for certain purposes.

Note: See TracTickets for help on using tickets.