Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NIS passwd maps problem plz help

Status
Not open for further replies.
Dec 18, 2002
59
GB
Hi Gurus, plz help I get following errors for passwd when creating nis maps I do not know what this ^ parse error means:-

# make NOPUSH=true -W /var/yp/Makefile -f ../Makefile all
Updating passwd.byname...
gawk: cmd. line:1: !/^[-+#]/ { if ($1 != "" && $3 >= 500 && $3 != ) print $1"\t"$0 }
gawk: cmd. line:1: ^ parse errorUpdating passwd.byuid...
gawk: cmd. line:1: !/^[-+#]/ { if ($1 != "" && $3 >= 500 && $3 != ) print $3"\t"$0 }
gawk: cmd. line:1: ^ parse error
Updating hosts.byname...
Updating hosts.byaddr...
Updating services.byname...
Updating services.byservicename...
Updating protocols.bynumber...
Updating protocols.byname...
Updating auto.master...
#


Your help would be much appreciated
 
There is a preview - button and there are code-tags.
[ code] (without the blank)
Code:
gawk: cmd. line:1: !/^[-+#]/ { if ($1 != "" && $3 >= 500 && $3 !=  )  print $3"\t"$0 }
gawk: cmd. line:1:                                                 ^ parse error
[/ code] (without the blank)
- and your formating is preserved.

Code:
if ($3 != )
is a syntax-error, a half-way-interrupted comparision.
Code:
 ...&& $3 != "foo")
would be syntactically correct, but I don't know, what would be semantically correct.
Perhaps it's an expanded variable, which unexpectedly expanded to 'nothing'.

grep -R gawk *

might help you find the source of this evil.

seeking a job as java-programmer in Berlin:
 
Many Thanks Stefanwagner,
But I am still non the wiser (sorry I am not a programmer !),
I am just following Fedora linux instructions to setup a NIS server, everything seems to be ok except passwd file maps are not being created resulting in the error messages as above. Any help in solving this would be much appreciated.
 
I don't have nis/yp.
So I'm guessing.
You're running 'make' here:
Code:
make NOPUSH=true -W /var/yp/Makefile -f ../Makefile all
(Is this a source-package you're installing?
Where you told to run 'configure' before, and did you do so?)

/var/yp/Makefile contains either the suspicious code, or calls another script/ Makefile, which contains the code, or calls a script which calls ... which contains ...
- you get the idea?

Normally those indirect called files are in a subdirectory.
grep -R gawk /var/yp/*

will search all subdirectories for 'gawk'-statements.
Perhaps that helps.



seeking a job as java-programmer in Berlin:
 
Many Thanks Stephenwagner,
I have found the problem! It was the passwd section of the Makefile which was corrupted! replacing the Makefile did the trick. I appreciate your help. thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top