Subject: Re: vi temporary permissions problems
To: None <netbsd-help@NetBSD.org>
From: Joel Rees <joel_rees@sannet.ne.jp>
List: netbsd-help
Date: 04/02/2004 20:05:19
On 2004.4.2, at 10:26  AM, Michael W. Lucas wrote:

> First thought:
>
> maybe you should have used the -p flag to tar in the install?

Yep. That's what it was. I copied the base tarball back into root with 
the installer, booted, moved it down to /tmp where it would be out of 
the way, and did a tar --diff. Found five directories that didn't have 
their sticky bits set, including (heh) /tmp and /var/tmp/vi.recover. 
Set those sticky bits, and vi runs fine.

Guess I'll have to repeat with the other tarballs, just to be on the 
safe side.

Except, I'm pretty sure base was the only one I let the installer do. 
May need to follow this up back on mac68k@.

Thanks. Sorry about sending my dmesg to you instead of the list. Nice 
books, by the way. I'm reading the freeBSD one while I wait for this 
old mac to process tarballs. Sometimes, slow hardware can be useful. ;-)

> On Fri, Apr 02, 2004 at 09:19:47AM +0900, Joel Rees wrote:
>> Just finished installing a special soft-float build of mac68k by hand
>> copying everything after base and etc into /, then using tar -zx.
>>
>> Then I set up an admin user, with gid=uid, but with secondary groups
>> set to wheel, operator, staff, guest, and users.
>>
>> I can log on as root and use vi with no problems. But I get the 
>> message
>>
>>     ex/vi: Error: Unable to create temporary permissions file:
>> Permission denied
>>
>> I checked /var/tmp/vi.recover and the owner is root, group was wheel.
>> So I changed the group to users, just for fun, and still get the same
>> message. (Makes sense, permission string is drwxrwxrwx.)
>>
>> Just for grins, I set up another user, -G to the list above, but let
>> primary user default to users, and I can't vi with that user either.
>>
>> Searching the web for the error message didn't turn anything useful 
>> up.
>> Any ideas where I should start poking around next?
>
> -- 
> Michael Lucas		mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org
>
> Today's chance of throwing it all away to start a goat farm: 49.1%
> 		http://www.BlackHelicopters.org/~mwlucas/
>