Re: FW: Request to mailing list freebsd-hackers rejected



James Hicks wrote:
Per instructions from the moderator below i'm making this post to the
free-bsd questions mailing list.


I'm building a samba server. I have an XP laptop using putty via ssh
to remotley administer. I cannot use putty to logon as root directly.
If I logon as my regular user I cannot su/sudo in as root. I tried
modifying the sshd_config file with AllowUsers root@ip. This didn't
work. Any suggestions? Im somewhat new to UNIX and nery new to
FreeBSD, so my indepth knowledge is not the best.

James

<original message from freebsd-hackers snipped>
Direct root login from ssh is disabled for good reason, so please leave
it this way. If however you cannot su to root from your user account,
this is not a problem with ssh configuration, it is simply a problem of
your account not belonging to the wheel group. Check it using the following:

id <your_login_name>

you will see a list of groups. If you do not see "wheel" under these
groups, you are not able to su. In FreeBSD only members of the wheel
group can su root.
You can change this with the pw usermod command, something like:

pw usermod <your_login_name> -g <your_login_group> -G wheel

see man pw for details.
As for sudo, it is easy to setup, but you have to install it from ports:
cd /usr/ports/security/sudo
make install clean
then run visudo to configure

Hope this helps


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: is this an intruder?
    ... > grant root access for non-root users; granting the wheel group ... > ssh logins as well as root access is essentially allowing root ...
    (RedHat)
  • Re: not able to login as a root
    ... > was restarted ssh. ... > access of root, please let me know. ... You are probably not in the 'wheel' group, ... sudo and perhaps can just 'sudo /bin/sh'. ...
    (SSH)
  • Re: putty, openssh and e-smith: key is wrong type....
    ... the chances are that your server has told you it ... You need to be root in order to change the master ... >> BTW how is the location of the public key (.ssh) determined. ... I followed jacobs advise to set set the PuTTY preference to SSH2 (although i ...
    (comp.security.ssh)
  • Re: connecting user root with ssh
    ... You can create a user and add the user into the wheel in /etc/group ... It's not recommended to ssh to the box using root, ... Electronic Computing Systems Engineer ...
    (freebsd-questions)
  • Re: Telnet Access as root
    ... > Why can I not access my linux server as the root? ... Don't use telnet, use SSH. ... Putty ...
    (Debian-User)