Koozali.org: home of the SME Server

Linux Workstations on SME

Damian

Linux Workstations on SME
« Reply #45 on: January 28, 2005, 03:00:29 PM »
Louis,

The "make" needs to be in there. That's what pushes the changes out. The lines wrap in this forum. It should be just two lines. Line 1 is:

grep "/home/e-smith/files/users" /etc/passwd | awk -F: ' {print $1":"$2":"$3":"$4":"$5":\/home\/"$1":\/bin\/bash"}' > /etc/passwd.dist

and line 2 is:

make

Try it with just these two lines in it.

Damian

crimsonline

Linux Workstations on SME
« Reply #46 on: January 28, 2005, 03:08:35 PM »
i get

[root@server root]# /var/yp/push  
make: *** No targets specified and no makefile found.  Stop.

Damian

Linux Workstations on SME
« Reply #47 on: January 28, 2005, 03:49:50 PM »
Louis,

make looks for the Makefile in the current directory so cd to /var/yp before running make.

Damian

crimsonline

Linux Workstations on SME
« Reply #48 on: January 28, 2005, 03:56:27 PM »
did not know that! :oops:
it is working !!!!
do i have to do the push every time i add an user?
i also need to get nfs working to sort out the dcop error right?

Damian

Linux Workstations on SME
« Reply #49 on: January 28, 2005, 04:34:12 PM »
Yes, every time you add a user. It takes no time at all to push - place I used to work had 2500 NIS accounts and 80 NIS groups and used to take 20-30 seconds to compile. Then add the 14 NIS Slave servers to notify and pass on the updated NIS maps wen requested. Worked well though.

NFS is needed to get rid of the DCOP issue (and actually to have the user homedir automatically mounted on whichever workstation they log in to).

Sense of achievement yet ?

Damian

crimsonline

Linux Workstations on SME
« Reply #50 on: January 28, 2005, 05:22:52 PM »
Damian,

I’ve got a deadline of tomorrow to get everything up and running.
So I want to get the nfs sorted asap.

Sme:
Installed nfs

Created /etc/exports
If I want to use the wildcard is it:
/home/e-smith/files/users 192.168.2.0 (rw) ?
changed the passwd.dist

Suse:
Created auto.home
Selected automounter
Restarted ypbind
Stoped rcnscd

I can su “louis”<- user

But I still get the “dcopserver” error

Damian

Linux Workstations on SME
« Reply #51 on: January 28, 2005, 06:13:37 PM »
Louis,

Assuming your network mask is 255.255.255.0 then your SME /etc/exports with wildcards can look like:

/home/e-smith/files/ibays       192.168.2.0/24(rw)

Run "/etc/init.d/nfs restart" to activate it.

Then on SUSE, run "ypcat passwd | grep louis" and look at the home directory field (fields are separated by : and you're looking at field 6). Should be "/home/louis".

Then make sure autofs is running on SUSE (rcautofs restart) and try "cd /home/louis". Should complete without errors.

If all this is OK try "su - louis" which switches user to louis and takes all environment settings - including changing directory to the user's homedir.

Damian

crimsonline

Linux Workstations on SME
« Reply #52 on: January 28, 2005, 06:30:53 PM »
damian,
when i do the rcautofs restart on suse i get
Shutting down service automount              done
Starting service automounter ("files nis" does not provide any mounts      skipped
 :idea:

Damian

Linux Workstations on SME
« Reply #53 on: January 28, 2005, 07:07:46 PM »
Louis,

On SUSE, do you get this ....

# ypcat auto.home
192.168.2.X:/home/e-smith/files/users/&/home

where X is the ip of your NIS server.?

If not, on SME create the following inside /etc/auto.home:
*               192.168.2.X:/home/e-smith/files/users/&/home

where X is the ip of your NIS server.

Check that you're pushing that map too in /var/yp/Makefile, in the section "all" you should have:

 # If you don't want some of these maps built, feel free to comment
# them out from this list.

all:  passwd group shadow auto.master auto.home \
#all:  passwd group hosts rpc services netid protocols mail \
        # netgrp shadow publickey networks ethers bootparams printcap \
        # amd.home auto.master auto.home auto.local passwd.adjunct \
        # timezone locale netmasks

Then run "push" on SME and "rcautofs restart" on SUSE.

Damian

crimsonline

Linux Workstations on SME
« Reply #54 on: January 28, 2005, 08:06:06 PM »
when i do the push on sme i get:
[root@server yp]# ./push  
gmake[1]: Entering directory /var/yp/crimson'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating shadow.byname... Ignored -> merged with passwd
gmake[1]: *** No rule to make target /etc/auto.master', needed by auto.master'.  Stop.
gmake[1]: Leaving directory /var/yp/crimson'
make: *** [target] Error 2

Damian

Linux Workstations on SME
« Reply #55 on: January 28, 2005, 08:56:11 PM »
Louis,

Do you have the following definition lines in your /var/yp/Makefile :

AUTO_HOME   = $(YPSRCDIR)/auto.home
AUTO_MASTER = $(YPSRCDIR)/auto.master

and in /etc/auto.master:

/home           auto.home

Sorry we're doing this piecemeal.

Damian

crimsonline

Linux Workstations on SME
« Reply #56 on: January 28, 2005, 09:01:10 PM »
yes i do

Damian

Linux Workstations on SME
« Reply #57 on: January 28, 2005, 09:37:49 PM »
Can you post lines 58-114 and 409-422 of /var/yp/Makefile.

Damian

crimsonline

Linux Workstations on SME
« Reply #58 on: January 28, 2005, 09:48:51 PM »
YPSRCDIR = /etc
YPPWDDIR = /etc
YPBINDIR = /usr/lib/yp
MAKE = /usr/bin/gmake
UMASK = umask 066
 
#
# These are the source directories for the NIS files; normally
# that is /etc but you may want to move the source for the password
# and group files to (for example) /var/yp/ypfiles. The directory
# for passwd, group and shadow is defined by YPPWDDIR, the rest is
# taken from YPSRCDIR.
#
YPSRCDIR = /etc
YPPWDDIR = /etc
YPBINDIR = /usr/lib/yp
YPSBINDIR = /usr/sbin
YPDIR = /var/yp
YPMAPDIR = $(YPDIR)/$(DOMAIN)
 
# These are the files from which the NIS databases are built. You may edit
# these to taste in the event that you wish to keep your NIS source files
# seperate from your NIS server's actual configuration files.
#
GROUP       = $(YPPWDDIR)/group
PASSWD      = $(YPPWDDIR)/passwd.dist
SHADOW      = $(YPPWDDIR)/shadow
GSHADOW     = $(YPPWDDIR)/gshadow
ADJUNCT     = $(YPPWDDIR)/passwd.adjunct
#ALIASES     = $(YPSRCDIR)/aliases  # aliases could be in /etc or /etc/mail
ALIASES     = /etc/aliases
ETHERS      = $(YPSRCDIR)/ethers     # ethernet addresses (for rarpd)
BOOTPARAMS  = $(YPSRCDIR)/bootparams # for booting Sun boxes (bootparamd)
HOSTS       = $(YPSRCDIR)/hosts
NETWORKS    = $(YPSRCDIR)/networks
PRINTCAP    = $(YPSRCDIR)/printcap
PROTOCOLS   = $(YPSRCDIR)/protocols
PUBLICKEYS  = $(YPSRCDIR)/publickey
RPC         = $(YPSRCDIR)/rpc
SERVICES    = $(YPSRCDIR)/services
NETGROUP    = $(YPSRCDIR)/netgroup
NETID       = $(YPSRCDIR)/netid
AMD_HOME    = $(YPSRCDIR)/amd.home
AUTO_MASTER = $(YPSRCDIR)/auto.master
AUTO_HOME   = $(YPSRCDIR)/auto.home
AUTO_LOCAL  = $(YPSRCDIR)/auto.local
TIMEZONE    = $(YPSRCDIR)/timezone
LOCALE      = $(YPSRCDIR)/locale
NETMASKS    = $(YPSRCDIR)/netmasks
 
YPSERVERS = $(YPDIR)/ypservers  # List of all NIS servers for a domain
 
target: Makefile
        @test ! -d $(LOCALDOMAIN) && mkdir $(LOCALDOMAIN) ; \
        cd $(LOCALDOMAIN)  ; \
        $(NOPUSH) || $(MAKE) -f ../Makefile ypservers; \
        $(MAKE) -f ../Makefile all
 
# If you don't want some of these maps built, feel free to comment
# them out from this list.
 
all:  passwd group shadow auto.master auto.home \

crimsonline

Linux Workstations on SME
« Reply #59 on: January 28, 2005, 09:59:20 PM »
i dont have a file called /etc/auto.master on sme.
do i need to create one?