no login and motd problem

rajesh (Rajesh.K.Adhikari@mcdnet.ems.vsnl.net.in)
Fri, 05 Dec 1997 19:07 +0000

Hi All
I got some of the response to my problem . Thanks to all who all
replied.Some person asked what display I am using , I am using Xdm on
Ultra 1 the openwindows widget comes autometically after the booting as
I configured it in the init.d directory. In the Win 95 pc I am using
Exceed X-term emulation software with xdcmp protocol.
As per the response I did some of the thing like I edited the Xsession
file for the /etc/nologin file , its working but the problem is I can't
login from any terminal including the Ultra 1 (using root also its not
going inside, so while doing the R&D I loggged in from the 2 terminals
and checked it). Also the /etc/motd is not working after editing the
Xsession file. But some waht it solved my problem.

I went to the Ftp site as mentioned by Matthew Stier , but it says "no
document"( I am trying form yesterday). I will keep on trying i the
logdaemon patch will solve my problem . After downloding the patch I
will inform all of U.

Thanks
Rajesh
I am coping all the response I got

My problem

Hi all
>
> I have a ultra 1 with Solaris 2.5.1. I have installed Exceed X-term
> Emulation software in all my win 95 pcs so that the user can run their
> x-win application.
> My problem some times I want that no one should login to the Ultra 1 ,
> so for that I put the nologin file under the /etc directory , but I
> found that I can still login from any pc's through Exceed . The same
> thing is happening while I want to put some mesg. in "motd" file. (From
> a vt100 emulation terminal the above thing is working fine). Can any one
> give some sugg. All suggesstion will be appriciated.
>
> Thanks In Advance
>
> Rajesh

response from :

1. Re: nologin and motd problem (Danny Johnson , Thu 3:06)
To:
Rajesh.K.Adhikari@mcdnet.ems.vsnl.net.in

edit what you need into /usr/lib/X11/xdm/Xsession (assuming
you are running xdm; for CDE something similar would have
to be done but I do not know the locations.)

2. (Matthew Stier , Thu 3:32)
Sun did not reinstall this feature until Solaris 2.6.

My recommendation, install logdaemon-5.6 (from
ftp://ftp.win.tue.nl/pub/security/ ) This package does support
/etc/nologin, plus permits you additional access control and logging.

3. Joseph S D Yao , Thu 4:27)

You don't tell us how eXceed logs you into the Sun. I suspect that it's
not telnet - that should use 'login' and so should obey /etc/nologin and
display /etc/motd. So I suspect that it's 'xdm'.

Look at the manual entry in /usr/openwin/man/man1/xdm.1. It will tell
you all about the files that are in /usr/openwin/lib/xdm/. You should
be able to modify 'Xsession' to check for the existence of /etc/nologin
and then call a simple Tcl/TK or 'xterm' script to say "Sorry" before
terminating the session. Also, it should similarly be able to display
/etc/motd in a window on session startup.

4. (Joel Lee , Thu 7:25)

If that's the case, you should disable telnetd and login from
inetd.conf.

5.Re: nologin and motd problem (Stephen Frost , Thu 18:39)
To:
Rajesh.K.Adhikari@mcdnet.ems.vsnl.net.in

You might try putting -ls on the xterm command line, I'm not
sure that'll
fix the problem, but that does tell the xterm to make that session a
'login
session'. Only other thing you might try is chmod o-x
/usr/openwin/bin/xterm, that'll stop 'em. :)

6. Response #1: Pull the plug!

Response #2: edit the /etc/passwd file so there are no entries. except
root probably. Then you can edit /etc/default/login(?) one of the files
in this directory. and furthere stipulate that login is only allowed
though the console.

-- 
Jonathan Loh
jloh@futon.sfsu.edu
*** Please quote when responding.  Thanks!

7.RE: nologin and motd problem ("Channaueerappa, Puttaraju" , Thu 19:25) To: Vendor1 <Rajesh.K.Adhikari@mcdnet.ems.vsnl.net.in>

Hi you should disable in /etc/default/login file it will not allow from remote system

8.Re: nologin and motd problem ("Juan Nicolas Ruiz N." , Thu 19:31) To: Vendor1 <Rajesh.K.Adhikari@mcdnet.ems.vsnl.net.in>

Hi: What command are you using to conect the clients to the Server? If I'm not wrong, if you use "rexec" o "rsh", then the /etc/nologin file won't be honored.

Thanks to all Regards

-- 
Rajesh Adhikari              PHONE NO. : 91-80-5521250/51/52/53
System Specialist            E-Mail: rajesh@mcdnet.ems.vsnl.net.in
                                        or
                                     rkadhikari@hotmail.com