LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2009, 04:21 PM   #16
Karas
Member
 
Registered: Oct 2009
Distribution: Slackware 13.0
Posts: 49

Original Poster
Rep: Reputation: 15

ops, after correcting my input error, the email sent was:

Quote:
newusers: line 1:invalid line
 
Old 11-20-2009, 04:23 PM   #17
Karas
Member
 
Registered: Oct 2009
Distribution: Slackware 13.0
Posts: 49

Original Poster
Rep: Reputation: 15
After entering the script correctly, the email sent to root was:

Quote:
newusers: line 1: invalid line
 
Old 11-20-2009, 05:03 PM   #18
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
The file you're feeding him seems to be malformed, then.

Please carefully read the newusers(8) manpages and make adjustments to the format as needed.
 
Old 11-21-2009, 09:39 AM   #19
Karas
Member
 
Registered: Oct 2009
Distribution: Slackware 13.0
Posts: 49

Original Poster
Rep: Reputation: 15
The format is:

Quote:
usernameassword:UID:GID:userinfo:/home/dir:/bin/bash
:S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create user account with a 'newusers' run from a cron job? tifoso Linux - General 3 11-05-2009 07:19 AM
find which program is calling cron every 10 minutes - using ubuntu intreoid getglenn Linux - Newbie 1 04-08-2009 04:53 AM
Cron every 5 minutes but not between midnight and 1 am xnomad Linux - Server 5 10-11-2007 01:17 PM
cron newusers command ? jchambers Programming 2 10-05-2007 03:38 AM
howto run a script from cron every 5 minutes except 11pm-8am ? cccc Programming 2 03-20-2005 04:52 AM


All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration