From owner-freebsd-questions Thu Jun 1 9: 4:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from shell.selkie.org (cr296652-a.crdva1.bc.wave.home.com [24.115.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 71DE937BFC9 for ; Thu, 1 Jun 2000 09:04:20 -0700 (PDT) (envelope-from chris@selkie.org) Received: from localhost (chris@localhost) by shell.selkie.org (8.9.3/8.9.3) with ESMTP id JAA86026; Thu, 1 Jun 2000 09:08:20 -0700 (PDT) (envelope-from chris@selkie.org) Date: Thu, 1 Jun 2000 09:08:19 -0700 (PDT) From: Chris Phillips To: Willem Brown Cc: Gabriel Ambuehl , freebsd-questions@FreeBSD.ORG Subject: Re: Adding user / length of usernames... In-Reply-To: <39368683.C58B3C0E@brwn.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Have you checked into pw? -Chris Phillips On Thu, 1 Jun 2000, Willem Brown wrote: > Hi, > > This is not very elegant but it seems to work. > > bash-2.03# adduser -s -q < > testuser > > Test User > > sh > > > > > > > > > > > > passwird > > passwird > > > > > > > > > > n > > ! > > Run it interactively and record all the steps. An empty line > is like hitting the return key and accepting the default. > > Regards > Willem Brown > > Gabriel Ambuehl wrote: > > > > Hello, > > I've got some questions regarding adding users. If I try to start > > adduser, it shows up an interactive interface for adding users. This > > is nice for people who need it rarely or need to have different > > configs all the time. I, OTOH, need to have it scripted as we > > have to create almost identical accounts over and over (we use them as > > login for the FTPd as well as for quota reasons) again. man adduser > > shows switches but if I try to use > > # adduser -shell no -home /home/web/a/test2_com/web/ test2_com > > I end up with the interactive interface as well. What am I doing > > wrong? (Linux' useradd did this without any problems but that one > > hasn't got any interactive modes, AFAIK). > > > > And the second question: > > > > "You can change UT_NAMESIZE in > > /usr/include/utmp.h and recompile the world; people have done > > this and it works, but you will have problems with any precom- > > piled programs, or source that assumes the 8-character name limit > > and NIS." - adduser manpage > > We won't use NIS but ProFTPd [1] (which handles long > > names on Linux without any problems) so is it safe to do that? I'd > > like to have longer usernames so I can assign them pretty like the > > user's realname making it easy for them to remember it. I think it's a > > pain for them to remember and for us to figure out who's really > > the owner of something... > > > > [1] And NFS is going to be used as well as the standard utils such > > as chmod and chown. > > > > CU > > Gabriel > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > /* =============================================================== */ > /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ > /* =============================================================== */ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message