Subject: Re: Newbie - su'ing to root problem / groups
To: None <port-arm32@NetBSD.ORG>
From: Paul Wain <pwain@nc.com>
List: port-arm32
Date: 09/19/1997 18:48:54
--=_NCMail_yGIM7D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
You need to add yourself to the group 'wheel' in /etc/group
The line would read something like:
wheel:*:0:root,richard
Note that 'su' doesnt check the default gid (group id) when su'ing to root,
thus you explicitly need to add each user who can su to root in the /etc/group
file. The list of users is comma separated. (see also "man group")
P.
> Hi,
>
> I've run into a problem where I've created a user on the system (funny enough
> called 'richard') and set the user up to be a member of group wheel since I
> read that I have to be member of that group to allow me to su to root.
>
> Unfortunately, when I try and su, I get an error message saying that I am
> not a member of a suitable group to su to root with...
>
> any ideas on what I've done wrong and what I should do ?
>
> how do I go about adding new groups and making users members of multiple
> groups - can I ?
>
> Cheers,
> Richard
>
> --
> Richard J N Barrass BSc.
> Knight Software Solutions.
> Private email to: richard@knight-soft.demon.co.uk
> Website: http://www.knight-soft.demon.co.uk/
>
>
--
This mail was sent from a 233MHz StrongARM NC
--=_NCMail_yGIM7D
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Reply</TITLE>
<BASE HREF=3D"file:">
</HEAD>
<BODY>
<P>Hi,<BR>
<BR>
You need to add yourself to the group 'wheel' in /etc/group<BR>
<BR>
The line would read something like:<BR>
<BR>
	wheel:*:0:root,richard<BR>
<BR>
Note that 'su' doesnt check the default gid (group id) when su'ing to =
root, thus you explicitly need to add each user who can su to root in =
the /etc/group file. The list of users is comma separated. (see also &=
quot;man group")<BR>
<BR>
P.<BR>
<BR>
<PRE>> Hi,
>
> I've run into a problem where I've created a user on the system (=
funny enough
> called 'richard') and set the user up to be a member of group whe=
el since I
> read that I have to be member of that group to allow me to su to =
root.
>
> Unfortunately, when I try and su, I get an error message saying t=
hat I am
> not a member of a suitable group to su to root with...
>
> any ideas on what I've done wrong and what I should do ?
>
> how do I go about adding new groups and making users members of m=
ultiple
> groups - can I ?
>
> Cheers,
> Richard
>
> --
> Richard J N Barrass BSc.
> Knight Software Solutions.
> Private email to: richard@knight-soft.demon.co.uk
> Website: http://www.knight-soft.demon.co.uk/
>
>
</PRE></P>
</BODY>
</HTML>
<br><br><pre>--
This mail was sent from a 233MHz StrongARM NC
</pre>
--=_NCMail_yGIM7D--