Re: [gentoo-user] Peculiar problem: no su - to root

2018-02-04 Thread Tom H
On Sat, Feb 3, 2018 at 4:05 PM, Harry Putnam  wrote:
>
> I've just completed getting gentoo booted as guest in vbox vm.
>
> I'm having a peculiar problem. I cannot call `su -' or `su root' and
> login as root.
>
> I can still get to root by `ssh root@localhost' having set up
> /etc/sshd_config while still chrooted during install.
>
> Still no getting to root by way of `su -' or `su root'
>
> I just get the `Permission denied' message.
>
> I've never had this happen before over many installs of various linux
> distros.
>
> I did try ssh root@localhost and then resetting root passwd while
> logged in as root, but still no getting to root by `su -'.

Add the su-ing user to the "wheel" group (because of "auth required
pam_wheel.so" in "/etc/pam.d/su").



Re: [gentoo-user] Peculiar problem: no su - to root

2018-02-03 Thread Manuel Mommertz
Am Samstag, 3. Februar 2018, 22:05:14 CET schrieb Harry Putnam:
> I've just completed getting gentoo booted as guest in vbox vm.
> 
> I'm having a peculiar problem.  I cannot call `su -' or `su root' and
> login as root.
> 
> I can still get to root by `ssh root@localhost' having set up
> /etc/sshd_config while still chrooted during install.
> 
> Still no getting to root by way of `su -' or `su root'
> 
> I just get the `Permission denied' message.
> 
> I've never had this happen before over many installs of various linux
> distros.
> 
> I did try ssh root@localhost and then resetting root passwd while
> logged in as root, but still no getting to root by `su -'.
> 
> Any ideas whats might be wrong.

Adding you normal user to the wheel group should help. ;)



Re: [gentoo-user] Peculiar problem: no su - to root

2018-02-03 Thread Jack

On 2018.02.03 16:05, Harry Putnam wrote:

I've just completed getting gentoo booted as guest in vbox vm.

I'm having a peculiar problem.  I cannot call `su -' or `su root' and
login as root.

I can still get to root by `ssh root@localhost' having set up
/etc/sshd_config while still chrooted during install.

Still no getting to root by way of `su -' or `su root'

I just get the `Permission denied' message.

I've never had this happen before over many installs of various linux
distros.

I did try ssh root@localhost and then resetting root passwd while
logged in as root, but still no getting to root by `su -'.

Any ideas whats might be wrong.


Have you tried just plain "su" ?  Can you do "sudo bash" ?  That might  
be an easier (temporary) workaround than ssh.


See if "ls -al" in /root and in /etc show some file with strange  
permissions.


Jack