An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Topic Options
#13327 - 12/15/10 04:19 AM Reset user's home permissions?
artie505 Online


Registered: 08/04/09
Beginning with Leopard we've been able to do this while booted from our install discs, but I don't think I've ever seen a Terminal command posted, and I'm not certain that what Google turns up is what I'm asking about.

Actually, I'm not even 100% certain what the exercise accomplishes, in the first place.

Anybody?

Thanks.
_________________________
The new Great Equalizer is the SEND button.

In Memory Of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Top
#13331 - 12/15/10 09:33 AM Re: Reset user's home permissions? [Re: artie505]
Hal Itosis Offline


Registered: 09/03/09
Loc: 10.6.8 (build 10K549)
Do you mean just "permissions" --- or ownership, group membership and ACLs as well?

It takes more than a single command to cover everything. I believe my old homeACLtool script still functions in 10.6 —but that's just for ACLs.

The utility you mentioned (on the install dvd) does the whole megillah... including setting the group on [changed] items to 'wheel' for some strange reason (IIRC).


Quote:
Actually, I'm not even 100% certain what the exercise accomplishes, in the first place.

If you're not having a specific problem, then perhaps "exercise" is the right word. OTOH, if someone is being denied access to some items inside their own home, then maybe "solution" is a more appropriate description.


Edited by Hal Itosis (12/15/10 09:37 AM)

Top
#13332 - 12/15/10 09:47 AM Re: Reset user's home permissions? [Re: Hal Itosis]
Hal Itosis Offline


Registered: 09/03/09
Loc: 10.6.8 (build 10K549)
Originally Posted By: Hal Itosis
I believe my old homeACLtool script still functions in 10.6 —but that's just for ACLs.

Oops... actually it's broken (in a very benign way), because fsaclctl no longer exists.

I believe the fix is to simply comment out this entire block:
Code:
if [[ $1 ]] && [[ $1 != -l ]]
then
	if [ -r /usr/sbin/fsaclctl ] && z=`fsaclctl -p / 2>/dev/null`
	then
		if echo $z |grep -iqs disabled
		then
			printf 'Need to enable ACLs with \e[1msudo' >&2
			printf ' fsaclctl -p / -e\e[0m\nand restart,' >&2
			printf ' before this script becomes useful.\n' >&2
			exit2sh 1 #ACLs disabled
		fi
	else
		printf 'cannot find fsaclctl\n' >&2
		exit2sh 1 #ACLs impossible
	fi
fi

...but i can post a more official version if you so desire.

Top
#13333 - 12/15/10 09:53 AM Re: Reset user's home permissions? [Re: Hal Itosis]
artie505 Online


Registered: 08/04/09
Originally Posted By: Hal Itosis
Do you mean just "permissions" --- or ownership, group membership and ACLs as well?

It takes more than a single command to cover everything. I believe my old homeACLtool script still functions in 10.6 —but that's just for ACLs.

The utility you mentioned (on the install dvd) does the whole megillah... including setting the group on [changed] items to 'wheel' for some strange reason (IIRC).


Quote:
Actually, I'm not even 100% certain what the exercise accomplishes, in the first place.

If you're not having a specific problem, then perhaps "exercise" is the right word. OTOH, if someone is being denied access to some items inside their own home, then maybe "solution" is a more appropriate description.

I mean whatever running that routine from your install disk accomplishes, and I'm wondering whether it can be acconplished without rebooting?

It's a veeery looong shot, but I thought it might help me with my Excel problem.

Edit: [shrug] I guess I'll just reboot. [/shrug]


Edited by artie505 (12/15/10 09:55 AM)
_________________________
The new Great Equalizer is the SEND button.

In Memory Of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Top
#13334 - 12/15/10 10:07 AM Re: Reset user's home permissions? [Re: artie505]
Hal Itosis Offline


Registered: 09/03/09
Loc: 10.6.8 (build 10K549)
Originally Posted By: artie505
It's a veeery looong shot, but I thought it might help me with my Excel problem.

idunno, but since (in the Excel thread) you stated: "I've tried my test account,"
i do have doubts it will make any difference. [no harm trying though.]

Top

Moderator:  alternaut, dkmarsh, joemikeb