Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2014 21:48:01 +0000 (UTC)
From:      Will Parsons <varro@nodomain.invalid>
To:        freebsd-questions@freebsd.org
Subject:   Re: ssh + su problem
Message-ID:  <slrnlosgkh.2le.varro@anukis.local>
References:  <slrnlokc4u.2it.varro@anukis.local> <20140601231728.9decb4f8b733c26bf040f963@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help
Eduardo Morras wrote:
> On Sat, 31 May 2014 19:42:23 +0000 (UTC)
> Will Parsons <varro@nodomain.invalid> wrote:
>
>> I have a problem in that I cannot su to root on a FreeBSD machine
>> remotely from a Windows machine.  Note that the user I'm logging in as
>> *is* a member of the wheel group (and I can su locally just fine).
>> Symptoms are:
>> 
>> % su
>> Password:
>> su: Sorry
>> %
>> 
>> Although I *think* the purpose of the sshd option "PermitRootLogin" is
>> to (dis)allow *direct* root ssh logins, I changed it to "yes" anyway
>> in sshd_config, but that doesn't seem to be the problem.
>> 
>> I'm inclined to think this a server-side configuration issue, since I
>> get the same result whether I use Cygwin ssh or PuTTY to log in
>> remotely to the FreeBSD machine.
>> 
>
> Try 
>
> %su -
>
> Perhaps it's failing because root user tries to use your user configuration and it has some issue (non existing directory, config incompatible with root user, whatever...)

No - doesn't help.  (Again, note that there's no problem su-ing
locally, only after loggin in remotely with ssh.)

-- 
Will




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnlosgkh.2le.varro>