On Fri, Jun 17, 2005 at 12:23:32PM -0700, [EMAIL PROTECTED] wrote:
>
> I'm in the process of adding thousands of users to our system.
> Our users have a short life span on the system and we get many new
> users every year.
> We have a small script that will add many users to our system.
> We can g
#! /bin/bash
username=$1 # $i = first argument of script
getent passwd|awk -F ':' '{print $1}'|grep $username && (echo
this username exists) || (echo this username is available)
just extend script to your needs.
I theres no out-of-the-box script in debian.. You have to write it yourself or hire
Hi,
I'm in the process of adding thousands of users to our system.
Our users have a short life span on the system and we get many new
users every year.
We have a small script that will add many users to our system.
We can get a list of users and their passwords in this format:
FirstName LastName
Quoting Mark Collins <[EMAIL PROTECTED]>:
> Hello,
> I just ran across your message on a debian.org thread. Did
> you find a way to import user accounts from a text file?
> Were you able to add the samba passwords at the same time?
> I'm looking to do the same.
>
Hi Mark,
Yeah, I was able to d
On Sun, Aug 26, 2001 at 02:15:38PM -0700, Osamu Aoki wrote:
...
> Took me a while to get this working. Not bad excersize reading "Lerning
> Python". Does any one have suggestions of better python coding practice?
for real advice you should try the python mailing list. But for starters:
don't use
On Sat, Aug 25, 2001 at 08:53:07PM -0700, Karsten M. Self wrote:
> Actuallly, I should be forcing myself to use Python, but habits die hard
> and I just know my way around sed and awk pretty well, so they're the
> first thing I turn to when a shell script stops being what I want.
Understand your f
on Sat, Aug 25, 2001 at 07:29:57PM -0600, Cameron Matheson ([EMAIL PROTECTED])
wrote:
> On 25 Aug 2001 18:19:53 -0700, Osamu Aoki wrote:
>
> > Writing TEXT processing script in BASH is just a quick job. For real
> > world needs, use AWK (See Karsten's answer to your post), PERL, or PYTHON.
>
>
On 25 Aug 2001 18:19:53 -0700, Osamu Aoki wrote:
> Writing TEXT processing script in BASH is just a quick job. For real
> world needs, use AWK (See Karsten's answer to your post), PERL, or PYTHON.
Don't forget Ruby :)
Sorry, but it's my favorite... i just need to start learning it better
Camero
Hi,
Writing TEXT processing script in BASH is just a quick job. For real
world needs, use AWK (See Karsten's answer to your post), PERL, or PYTHON.
Besides, Karsten's awk script addresses needs to keep them lower case
etc. IF you use BASH, you need to run 'tr' command externally. AWK,
PERL, an
Thanks for the script!
I'm not good at scripting.
I like the bash one.
How do I chomp off part of the first name so that the
output looks like this: from johnny smith
jsmith
thanks
Mike
Quoting Osamu Aoki <[EMAIL PROTECTED]>:
> On Fri, Aug 24, 2001 at 05:38:56PM -0700, Mike Egglestone wrote
On Fri, Aug 24, 2001 at 05:38:56PM -0700, Mike Egglestone wrote:
>
> joe blow
> john smith
> john doe
>
> I would like to use "newusers" to add about 500 accounts to my system,
> but how do I quickly make the txt file look like this:
>
> joe_blow:password:1001:1001:,,,/home/joe_blow:/bin/bash
>
on Fri, Aug 24, 2001 at 05:38:56PM -0700, Mike Egglestone ([EMAIL PROTECTED])
wrote:
> Hi
>
> I have a txt file in this format:
>
> joe blow
> john smith
> john doe
>
> I would like to use "newusers" to add about 500 accounts to my system,
> but how do I quickly make the txt file look like this
On Fri, Aug 24, 2001 at 05:38:56PM -0700, Mike Egglestone wrote:
> I have a txt file in this format:
>
> joe blow
> john smith
> john doe
>
> I would like to use "newusers" to add about 500 accounts to my system,
> but how do I quickly make the txt file look like this:
>
> joe_blow:password:1001
Hi
I have a txt file in this format:
joe blow
john smith
john doe
I would like to use "newusers" to add about 500 accounts to my system,
but how do I quickly make the txt file look like this:
joe_blow:password:1001:1001:,,,/home/joe_blow:/bin/bash
john_smith:password:1002:1002:,,,/home/john_smi
14 matches
Mail list logo