Sorry for the previous empty message. Pressed the retuen key by accident. My question: Can I use YaST2 when I need to add many users at once, or is it better to user some script, or should I write my own script? TIA. ............................................................ Maksuton sähköposti aina käytössä http://luukku.com Kuukausimaksuton MTV3 Internet-liittymä www.mtv3.fi/liittyma
Can I use YaST2 when I need to add many users at once, Yes , if you love boring, repetive actions. or is it better to user some script, I am sure there are some around. or should I write my own script? That is simple, too.
Am Montag, 10. Februar 2003 10:39 schrieb pd3@luukku.com: like: for i in $(cat file_with_usernames) do useradd -m $i done with your adjustments as neccesary. HTH Dan
On Mon, 10 Feb 2003 22:07, Dan Am wrote:
Am Montag, 10. Februar 2003 10:39 schrieb pd3@luukku.com:
Can I use YaST2 when I need to add many users at once,
Yes , if you love boring, repetive actions.
or is it better to user some script,
I am sure there are some around.
or should I write my own script?
That is simple, too. like: for i in $(cat file_with_usernames) do useradd -m $i done
with your adjustments as neccesary.
A Batch Job to Add New User IDs http://linux.oreillynet.com/lpt/a//linux/2002/05/09/uid.html -- Regards, Graham Smith ---------------------------------------------------------
On Tue, 11 Feb 2003 00:02:22 +1100
Graham Smith
On Mon, 10 Feb 2003 22:07, Dan Am wrote:
Am Montag, 10. Februar 2003 10:39 schrieb pd3@luukku.com:
Can I use YaST2 when I need to add many users at once,
Yes , if you love boring, repetive actions.
or is it better to user some script, I am sure there are some around. or should I write my own script?
for i in $(cat file_with_usernames) do useradd -m $i done
with your adjustments as neccesary.
A Batch Job to Add New User IDs http://linux.oreillynet.com/lpt/a//linux/2002/05/09/uid.html
Also perl has a module for this called UserMod. Go to http://cpan.org and search for UserMod. -- use Perl; #powerful programmable prestidigitation
participants (4)
-
Dan Am
-
Graham Smith
-
pd3@luukku.com
-
zentara