Re: NIS with Linux and Sun: Environment

From: Michael Laajanen (michael.laajanen.no-spam._at_telia.com)
Date: 02/22/04


Date: Sun, 22 Feb 2004 18:37:17 GMT

HI,
Rick Denoire wrote:
> Hello
>
> I am integrating some Linux (RH AS 2.1) clients in a Sun (2.7) NIS
> domain. Some difficulties arise related to the different environments
> needed depending on the host from which the user is logging in.
>
> I seems that the /etc/profile and the $HOME/.profile and a lot other
> shell related files have to be adapted to handle environment
I have a common global bash_profile, just MUST use bash tcsh is not
available via a Redhat system this due to stupid implementation is GNOME
login where they have hardcoded bash and they refuse to fixed it I have
filed abug on this years ago!!!

So in the global file I have a switch to set PATH accordingly to
platform, I also have make a common platform indepent NFS filesystem
where I have wrappers for common tools.

> differences, checking the type of host the user is coming from.
> One striking problem is the shell set in the NIS passwd file, which
> will prevent logging in if it won't exist at the same place in the
> client. My only idea until now is to put a link on the client.
>
> I do this procedure for the first time and it seems quite prone to
> errors. For example, similar binaries on different platforms could
> create an own .dir in the user's home (like .netscape), putting files
> there that are not necessarily compatible across platforms, or files
> could be overwritten by switching platforms etc. I am looking for
> something like "best practices", "common methods", "proven solutions"
> or the like, in order not to have to test and invent everything anew.
> Shells used are csh, ksh, bash and sh.\
See above!!

>
> Any hint, recommendation or reference to pertinent documents will be
> highly appreciated.
>
But any problems with . files/dir I have not experienced but .gnome
could be a problem but if you make the Sun users stick to CDE/Openwin
you should be fine.

When you have a tool with a problem, why not make a wrapper in a comming
platform independent place, I have a /opt/system/bin for wrapper that is
NFS mounted on all platform, Solaris, Linux and NetBSD works great.

Also, I would recommend you to have some common tools of the same
version, emacs,mozilla, opera, gimp and more and so I have a
/opt/tools/bin that is platform dependent for this.

/michael



Relevant Pages

  • Re: NIS with Linux and Sun: Environment
    ... > needed depending on the host from which the user is logging in. ... platform, I also have make a common platform indepent NFS filesystem ... I would recommend you to have some common tools of the same ...
    (linux.redhat.misc)
  • Re: Multiple logins on WIN2000
    ... Cconnect.exe in the resource kit. ... > What is the best way to stop users from logging in more ... The platform is ... > different machines throughout the day. ...
    (microsoft.public.win2000.security)
  • Multiple logins on WIN2000
    ... What is the best way to stop users from logging in more ... The platform is ... feasible to hit workstations. ... different machines throughout the day. ...
    (microsoft.public.win2000.security)