From owner-freebsd-questions@FreeBSD.ORG Thu Oct 11 15:10:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C039C16A421 for ; Thu, 11 Oct 2007 15:10:28 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6E87E13C44B for ; Thu, 11 Oct 2007 15:10:28 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l9BF8ZSU022615; Thu, 11 Oct 2007 11:08:35 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l9BF8Y2s022614; Thu, 11 Oct 2007 11:08:34 -0400 (EDT) (envelope-from jerrymc) Date: Thu, 11 Oct 2007 11:08:34 -0400 From: Jerry McAllister To: Erich Dollansky Message-ID: <20071011150834.GD22422@gizmo.acns.msu.edu> References: <470E0667.7080000@yahoo.com> <470E0A5E.4070901@pacific.net.sg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <470E0A5E.4070901@pacific.net.sg> User-Agent: Mutt/1.4.2.2i Cc: "freebsd-questions@freebsd.org" Subject: Re: How to create a user account with the same permission as "root" ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 15:10:28 -0000 On Thu, Oct 11, 2007 at 07:34:54PM +0800, Erich Dollansky wrote: > Hi, > > FreeBSD is not Windows. True statement - thank heaven. > > You cannot have another "root" in the system. Unless I misunderstand what you are saying, this is NOT a true statement. You can create as many ids with a '0' UID as you want. It may not be a good idea, but it works just fine. Then, if you give it the same home directory and shell, it will be almost impossible to distinguish how it functions from how the 'root' account functions. Now, if you mean having two accounts named "root", then you can't have that, but that isn't what you imply by your following statement about creating an account called 'william'. Having said all that, doing part of what follows is better -- create a regular user account with its own UID (eg not 0) and then add it to the 'wheel' group by editint /etc/group file. But, then, do not make all files have group wheel permission. Instead, when you want to work on those files or other things root might do, use su(1) to change your working UID to '0' temporarily. That way, files will have normal owner and group, user will have normal UID and GID, and everything will work nicely. > > What you can do is the creation of the group "wheel" and put "william" > into this group. > > Allow then all members of "wheel" to access the files needed by the > group "wheel". Not the best idea. > > I would not do this as it creates many security wholes. > > If you just want to do something as root without being root, use su. Yes, do this. I guess you rethought what you wrote about the files. ////jerry > > Erich > > williamkow wrote: > >Finally, I manage to setup X.org and then KDE 3.5.4 running on FreeBSD > >6.2-Release. > >I created a user account named "william" and do not assign any group as > >I do not know what are the list of group name for me to select. To start > >KDE, i use command "kdm" but I can only logon using the newly created > >user name "william", but it do not have same permission/access rights as > >"root" account. > >Please show on how to enable this user account, with the same permission > >as root ? > >Thank you. > >_______________________________________________ > >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" > > > _______________________________________________ > 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"