Max2Play Home › Forums › Max2Play on Raspberry PI › How do I change the dns setting?
- This topic has 10 replies, 3 voices, and was last updated 7 years, 2 months ago by
castalla.
-
Posted in: Max2Play on Raspberry PI
-
19. März 2016 at 21:39 #19370
I want to change the dns in resolv.conf
This is almost impossible in putty – I want to use the editor in WinSCP
BUT
How do I get root access ????
19. März 2016 at 21:56 #19371ssh in as pi
sudo passwd root
Enter whatever passwd u want
Then wscp as root19. März 2016 at 22:06 #19373Ooops!
Doesn’t work.
sudo passwd root allows successful change
BUT
access is denied on login
?????
19. März 2016 at 22:38 #19374Something else going on
Did it many times with no problems
Did you try ssh in as root?
Did you change anything else?19. März 2016 at 22:46 #19375No changes. Login as pi, sudo passwd root … changed successfully. Login as root … access denied
Tried su with root password – changed password again – successful change. Login as root … access denied
Must need a root login routine enabled.
19. März 2016 at 23:01 #19376Hmmm ….
To enable SSH login for a root user on Debian Linux system you need to first configure SSH server. Open /etc/ssh/sshd_config and change the following line:
FROM:
PermitRootLogin without-password
TO:
PermitRootLogin yesHad a look at the file and it doesn’t contain any PermitRootLogin line ???
19. März 2016 at 23:21 #19378Of Course but never had to
By default is enabled on most of Linux flavours
I usually had to do the other way around
Disable root ssh in20. März 2016 at 3:01 #19379Apart from the above task …. changing the dns in Jessie requires the following:
and
add the line
name_servers=n.n.n.n (the actual dns nameserver address)
to /etc/resolvconf.conf
It should be a lot easier than this!
-
You must be logged in to reply to this topic.