- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS Migration - Problem with auto.export
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 02:48 AM
02-23-2006 02:48 AM
NIS Migration - Problem with auto.export
I am on the way of migrating NIS user from one NIS server to another. The usrer which i am migrating are having their home directory in the old NIS server which dont have home directory exported from their workstation.I would like to continue using that home directory of the old NIS server. The directory is exported and i am able to mount it through fstab.
I tried to add the following lines in the new servers Makefile for mapping of those directories.
====================================================================================================
$(YPDBDIR)/$(DOM)/auto_export.time: $(DIR)/auto_export
@(sed -e "s/^[ | ]*//g" -e "/^#/d" -e s/#.*$$// < $(DIR)/auto_export $(CHKPIPE))| \
$(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.export;
@touch $(YPDBDIR)/$(DOM)/auto_export.time;
@echo "updated auto.export";
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.export; fi
@if [ ! $(NOPUSH) ]; then echo "pushed auto.export"; fi
$(YPDBDIR)/$(DOM)/auto_Direct.time: $(DIR)/auto_Direct
@(sed -e "s/^[ | ]*//g" -e "/^#/d" -e s/#.*$$// < $(DIR)/auto_Direct $(CHKPIPE))| \
$(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.Direct;
@touch $(YPDBDIR)/$(DOM)/auto_Direct.time;
@echo "updated auto.Direct";
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.Direct; fi
@if [ ! $(NOPUSH) ]; then echo "pushed auto.Direct"; fi
====================================================================================================
auto.export:
@if [ ! $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_export.time DOM=$(DOM) DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_export.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
auto.Direct:
@if [ ! $(NOPUSH) ]; then $(MAKE) $(MFLAGS) -k \
$(YPDBDIR)/$(DOM)/auto_Direct.time DOM=$(DOM) DIR=$(DIR); \
else $(MAKE) $(MFLAGS) -k $(YPDBDIR)/$(DOM)/auto_Direct.time \
DOM=$(DOM) DIR=$(DIR) NOPUSH=$(NOPUSH);fi
====================================================================================================
and when do a make at /var/yp i am getting following error.
Bad character | (octal 174), line 239Make: . Stop.
(line 239 is : $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.export;)
So kindly guide me, whether i am doing any wrong step. What i have done so far is to replicate the entries in the passwd, group, auto_user, netgroup entries domainypsrc directory.
Waiting for the expert comments.
With Regards
manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 09:18 PM
02-23-2006 09:18 PM
Re: NIS Migration - Problem with auto.export
if I compare this against similar entries in my Makefile, I see this difference:
Yours:
@(sed -e "s/^[ | ]*//g" -e "/^#/d" -e s/#.*$$// < $(DIR)/auto_export $(CHKPIPE))| \
$(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.export;
Mine:
@(sed -e "s/^[ | ]*//g" -e "/^#/d" -e s/#.*$$// < $(DIR)/auto_export $(CHKPIPE)) \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.export;
Nevertheless the first one seems syntactically correct as well for the Posix shell. If you have a
SHELL = ..
line in your Makefiles, check for its value.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 06:17 PM
02-24-2006 06:17 PM
Re: NIS Migration - Problem with auto.export
I verified the variables in the Makefile and seems no SHELL variable set.
#DIR =/etc
DIR =/var/yp/sgp-nis_maps
DOM = `domainname`
NOPUSH = ""
ALIASES = /etc/mail/aliases
YPDIR=/usr/sbin
YPDBDIR=/var/yp
YPPUSH=$(YPDIR)/yppush
MAKEDBM=$(YPDIR)/makedbm
REVNETGROUP=$(YPDIR)/revnetgroup
STDETHERS=$(YPDIR)/stdethers
STDHOSTS=$(YPDIR)/stdhosts
MKNETID=$(YPDIR)/mknetid
MKALIAS=$(YPDIR)/mkalias
PWFILE=$(DIR)/passwd
Also tried to match the with your setup. Unfortunately same error. Is anything additionaly i need to set since auto.export was not there in the new NIS Makefile.
Regards
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 11:41 PM
02-24-2006 11:41 PM
Re: NIS Migration - Problem with auto.export
a simple question: is your makefile really correcttly formatted for make syntax?
The first character in a make rules has to be a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2006 05:40 PM
02-25-2006 05:40 PM
Re: NIS Migration - Problem with auto.export
Yes it is with Tab. Attaching my Makefile.
Regards
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 05:37 AM
03-01-2006 05:37 AM
Re: NIS Migration - Problem with auto.export
I don't think, that the makefile format is correct:
The file in the attachment does NOT have a
Other makerules do not have this was well!
Check again, correct this and the makefile will work.
mfG Peter