Great AddUser Script!

SamBC sambc at nights.force9.co.uk
Sat Jul 15 12:47:23 PDT 2000


Ever heard of ease-of-use? Some people prefer interactive systems, and they
are harder to make mistakes on...


SamBC

> -----Original Message-----
> From: owner-lfs-discuss at pcrdallas.com
> [mailto:owner-lfs-discuss at pcrdallas.com]On Behalf Of Thomas 'Balu'
> Walter
> Sent: 12 July 2000 09:23
> To: lfs-discuss at linuxfromscratch.org
> Subject: Re: Great AddUser Script!
>
>
> +-Ian Chilton-(ian at ichilton.co.uk)-[11.07.00 22:17]:
> > Hello,
> >
> > I copied this adduser script from my Slackware 7.0 system, and
> it works on LFS.
> >
> > Insert this into /usr/sbin/adduser, and you're sorted:
> >
> > #!/bin/sh
>
> Why do you need such a script, Ian? :)
>
> su-2.04# useradd
> usage: useradd	[-u uid [-o]] [-g group] [-G group,...]
> 		[-d home] [-s shell] [-c comment] [-m [-k template]]
> 		[-f inactive] [-e expire ] [-p passwd] name
>
> Or - man useradd.
>
> Using this is much faster than your script :) - and you can even
> set some defaults:
>
>        useradd -D [-g default_group] [-b default_home]
>                [-f default_inactive] [-e default_expire_date]
>                [-s default_shell]
>
>      Balu
>
> --
> Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> "unsubscribe" (without the quotation marks) in the body of the message
> (no subject is required)
>

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)



More information about the lfs-dev mailing list