LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] man useradd learning of.

[ILUG] man useradd learning of.

Francis Daly francisdaly at gmail.com
Tue Feb 7 15:06:37 GMT 2012


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


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell