On Tue, Jun 2, 2015 at 10:15 AM, Joel Rees <joel.r...@gmail.com> wrote:
> Checked in openbsd 5.6.
>
> 2015/05/31 23:38 "Joel Rees" <joel.r...@gmail.com>:
>>
>> I have a home directory buried one deep in a directory owned by a
>> non-login user:
>>
>> /home
>> /home/bubble
>> /home/bubble/userA
>>
>> where /home/bubble is owned by user/group bubble, with read and search
>> permissions set for owner and group. userA is a member of the bubble
>> group.
>>
>> Login says the home directory does not exist.
>>
>> When I make /home/bubble world readable, login finds the home directory.
>
> 5.6 has the same behavior here, even without special login classes.
>
>> Once logged in, when I try to
>>
>> sudo -H -u userB firefox
>>
>> it appears to try to start firefox, then give up. Nothing special in
>> the logs, that I have noticed.
>
> Similar in 5.6, but more noise from firefox, so that I can see it is trying
> to start. No error message in /var/log or on stdout to explain why it gives
> up.
>
>> userB is s a member of the userA group.
>
> So I have to correct this:
>
>> sudo-ing firefox worked in 5.6. I'm not sure about the login stuff
>
> None of this worked as I decribe it here in openbsd 5.6. I think I'm going
> to assume that the firefox engineers must have recently decided that hiding
> user directories was a suspicious, malware-like activity.  Or something.

sudo -H -u userB -s "cd; firefox"

seems to work. I Haven't tried all the variations, but it looks like I
just needed to get the working directory set to userB's home
directory. Which makes sense. Guess I was forgetting how sudo works.

>> dmesg below:
>>[...]

Sorry to use the list as a place to talk to myself.

-- 
Joel Rees

Reply via email to