On 07/02/2012, Frank Murphy <frankly3d at gmail.com> wrote:
> On 07/02/12 13:39, Nick Geoghegan wrote:
>> On Tue, 2012-02-07 at 12:58 +0000, Frank Murphy wrote:
Hi there,
>>> I type in "man adduser" useradd comes up.
>>> Maybe it's a Fedora thing.
useradd --help
and
groupadd --help
look like they should give enough information to allow you to create the users.
(Looked at on a CentOS 5.6 image, I'm hoping that your Fedora is
similar enough.)
>>http://www.go2linux.org/pics/other_files/adduser.txt may be of
>> assistance, it has to me on OpenSuSE servers in the past.
>> Appreciate that Nick,
>> Do I need rename from txt to pl (perl)
The system doesn't care. From the command line, if the file is marked
executable and has a correct "#!" line, the filename extension is not
relevant. (It can be useful to the user to know what is what without
reading the files, but that's a separate thing.)
But "perl -wc adduser.txt" will probably fail with something very like
Can't locate Debian/AdduserCommon.pm in @INC
so that program probably isn't immediately usable for you, other than
as an inspiration for the commands you want. ("systemcall" in that
file is probably worth looking at.)
groupadd -g, and useradd -g and -u, look like they can be made to do
what you want.
Good luck with it,
f
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!