Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2000 03:07:58 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Tian Siyuan <tsy@iist.unu.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: your mail
Message-ID:  <Pine.BSF.4.21.0004230301180.55888-100000@ren.sasknow.com>
In-Reply-To: <Pine.GSO.4.10.10004231645280.1550-100000@aun.iist.unu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Tian Siyuan wrote to questions@FreeBSD.ORG:

> Hi,
> 
> How can I remote login to FreeBSD as root?
> 
> Thanks & regards,
> 
> TSY
> 

I recommend SSH.  Free SSH clients are available for most variants of
UNIX/Linux, as well as Windows.  Install sshd from the FreeBSD ports to
allow SSH logins, then enable root access by adding

PermitRootLogin yes

...to /usr/local/etc/sshd_config

SSH provides secure public/private key encryption over insecure networks.  
If you are on a closed network, or if you take a brazen attitude towards
data security, root logins can be accomplished with regular telnet.  
Given a regular login user, add that user to the "wheel" group in
/etc/group.  So, at the top of /etc/group should be:

wheel:*:0:root

Simply add your name to that comma separated list.  If your login ID was
'tian', that line should read:

wheel:*:0:root,tian

You can then log in via telnet as tian, and use su(1) to switch to the
super user, provided you can enter root's password.  su -l simulates a
full login.

I still recommend SSH, however.

-- 
  Ryan Thompson <ryan@sasknow.com>
  Systems Administrator, Accounts
  Phone: +1 (306) 664-1161

  SaskNow Technologies     http://www.sasknow.com
  #106-380 3120 8th St E   Saskatoon, SK  S7H 0W2



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004230301180.55888-100000>