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] randon linux dev bits...

[ILUG] randon linux dev bits...

kevin lyda kevin at suberic.net
Fri Apr 28 10:07:26 IST 2000


want to script account management stuff on linux (or solaris) from
perl?  see here: http://www.cs.kuleuven.ac.be/~pelov/pam/ .  make sure
to read the faq, the two questions in it were the exact two questions i
had.  ugly hack or no, it works.

on redhat systems there are several shell utils for managing users. 
useradd, userdel, and chpasswd.  if one was to make a script to add a
user, the following would work:

    system("useradd -c '$gecos' $login");
    open(PW, "|chpasswd");
    print PW ("$login:$pass\n");
    close(PW);

procmail gets distributed with some helper programs.  formail is the
most useful.  if you need to migrate mail or similar type things it's a
good tool to use.

kevin
-- 
kevin at suberic.net       "we were goin' for breakfast.  in canada.  we
fork()'ed on 37058400    made a deal: if she'd stop hookin', i'd stop
meatspace place: work    shootin' people.  maybe we were aiming high."
                                                   --porter, "payback"




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