Re: doas and home directory of target user

2015-09-25 Thread dan mclaughlin
On Fri, 25 Sep 2015 02:09:40 +0900 Joel Rees wrote: > At any rate, I have convinced myself that doas follows the manual page > in preserving the calling user's key environment variables, including > HOME and USER. > > I had not grasped that this was considered desired

Re: doas and home directory of target user

2015-09-24 Thread Joel Rees
At any rate, I have convinced myself that doas follows the manual page in preserving the calling user's key environment variables, including HOME and USER. I had not grasped that this was considered desired behavior, so did not initially read it that way. I still think the man page is a little

Re: doas and home directory of target user

2015-09-22 Thread Joel Rees
Ahem. Dmesg below. (Sorry about that.) On Wed, Sep 23, 2015 at 8:29 AM, Joel Rees wrote: > Thank you, Dan, Ben, and Frank. I see that I have left out some > important information: > > user2 is specified as a non-login class of user in /etc/login.conf, > auth=reject:

Re: doas and home directory of target user

2015-09-22 Thread Joel Rees
Thank you, Dan, Ben, and Frank. I see that I have left out some important information: user2 is specified as a non-login class of user in /etc/login.conf, auth=reject: shell=/sbin/nologin, and has a default shell of /sbin/nologin in /etc/passwd . On Tue, Sep 22, 2015 at 5:41 PM, Joel Rees

doas and home directory of target user

2015-09-22 Thread Joel Rees
I have this rule in doas.conf: permit nopass user1 as user2 As user1, I try this at the command line: doas -u user2 whoami and it tells me I am user2, as I expect. And doas -u user2 ls tells me I don't have permission. I kind of expect this. I'm looking for a way to do the

Re: doas and home directory of target user

2015-09-22 Thread Benjamin Baier
On Tue, 22 Sep 2015 17:41:57 +0900 Joel Rees wrote: > I have this rule in doas.conf: > > permit nopass user1 as user2 > > As user1, I try this at the command line: > > doas -u user2 whoami > > and it tells me I am user2, as I expect. And > >doas -u user2 ls

Re: doas and home directory of target user

2015-09-22 Thread dan mclaughlin
On Tue, 22 Sep 2015 17:41:57 +0900 Joel Rees wrote: > I have this rule in doas.conf: > > permit nopass user1 as user2 > > As user1, I try this at the command line: > > doas -u user2 whoami > > and it tells me I am user2, as I expect. And > >doas -u user2 ls >