Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2007 20:51:00 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Dima Sorkin <dima.sorkin@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ssh login as root
Message-ID:  <20070311015100.GB42241@gizmo.acns.msu.edu>
In-Reply-To: <e40293600703100843i368cee13tc2251b07608bc744@mail.gmail.com>
References:  <e40293600703100755q5ac69e75jb1f012b1f379c15e@mail.gmail.com> <3FCB18F9-CBF6-4D14-AD0F-92658914454E@rottnic.nl> <e40293600703100843i368cee13tc2251b07608bc744@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 10, 2007 at 06:43:43PM +0200, Dima Sorkin wrote:

> Hi.
> Actually I would prefer to do it via "su".
> Here a really newbie question:
> 1) How do I join regular user to 'wheel' group ?
> 2) How do I join a user to some group 'some_group' ?.
> Which manpage to read ?

Just edit the /etc/group file - using vi probably or any other text editor.
On the line that establishes the wheel group, just add the user id
on the end separated with a comma.
eg.   add  ',otherid'  to the end of the line.
Save (write) and quit.   It is now there.

////jerry

> 
> Thanks,
> Dima.
> 
> On 3/10/07, Guido Demmenie <rottweilertje@rottnic.nl> wrote:
> 
> >Default setting is that root can not login via ssh (and that's how
> >you want it).
> >You can use su(1) to gain root privileges when loged in on your box
> >with a normal
> >user if needed (if you are in the group wheel).
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070311015100.GB42241>