* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
1997-11-21 5:00 ` How to stop people to log in Nikola Milutinovic
@ 1997-11-21 5:00 ` Dr. Strangelove
1997-11-21 5:00 ` Erik Persson
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Dr. Strangelove @ 1997-11-21 5:00 UTC (permalink / raw)
On 21 Nov 1997 09:58:49 GMT, onglb@NIEVAX.NIE.AC.SG (Ong Liang Bu)
wrote:
>Hi
>
>I have a Digital DEC2000 installed with osf/1 ver 3.2. The system has users log in 24 hrs a day, nonstop. I need to find a way to stop users from coming in so that I can do backup. Apart from modify the /etc/inittab and run 'init q'; i s there anyway to stop new users coming in? Also when existing user logout the connection is closed to prevent others from seizing the connection. Most of my users connect to the machine remotely by lat. Anyone can help?
>
>I appreciate all the help I can get.
>
>Thanks
>Ong LB
What I do is have a cron job run at a suitable time that
overwrites .profiles with a new .profile that has something
like
echo "The system is currently unavilable"
exit 0
At the very end of it.
I then kill off any logged on users and do the backup. Another cron
job copies back the original .profiles.
Hope this helps.
Dr. Strangelove
Rewrite the address with the obvious bits taken out if you want to mail me.
mailto:ivegotan%at%ombomb%dot%org%with%no%spam%please
http://www.ombomb.org/
"Put your money on 'The Bribes', they always win." - Jello Biafra
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
1997-11-21 5:00 ` How to stop people to log in Nikola Milutinovic
1997-11-21 5:00 ` Dr. Strangelove
@ 1997-11-21 5:00 ` Erik Persson
1997-11-21 5:00 ` Finnbarr P. Murphy
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Erik Persson @ 1997-11-21 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
I am not to sure what implications running LAT might have, but if
you're running NIS it is very effective to replace the
'+::::::' (or something like that)
in /etc/passwd (indicating "include all NIS users here") with
'+::::::/bin/foo-script'
This will cause all NIS users to get their login shell subsituted with
'foo-scrip' that might contain something like:
--->snip<---
#!/bin/sh
echo "The system is being prepared for backup. Login not permitted."
exit 0
--->snip<---
/Erik
--
Erik Persson, System Manager e-mail: erik@ikp.liu.se
Dept. of Mech. Engineering Voice: +46 13 28 2464
Division of Solid Mechanics Fax: +46 13 21 2717
University of Link�ping, Sweden
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
` (2 preceding siblings ...)
1997-11-21 5:00 ` Erik Persson
@ 1997-11-21 5:00 ` Finnbarr P. Murphy
1997-11-21 5:00 ` John Hascall
1997-11-23 5:00 ` Stuart R. Fuller
1997-11-24 5:00 ` lombardi emanuele
1997-11-24 5:00 ` Aleksandar Milivojevic
5 siblings, 2 replies; 8+ messages in thread
From: Finnbarr P. Murphy @ 1997-11-21 5:00 UTC (permalink / raw)
It's simple - touch /etc/nologin. See the login(1) reference page
>I have a Digital DEC2000 installed with osf/1 ver 3.2. The system has users log
>in 24 hrs a day, nonstop. I need to find a way to stop users from coming in so
>that I can do backup. Apart from modify the /etc/inittab and run 'init q'; i s
>there anyway to stop new users coming in? Also when existing user logout the
>connection is closed to prevent others from seizing the connection. Most of my
>users connect to the machine remotely by lat. Anyone can help?
>
>I appreciate all the help I can get.
>
>Thanks
>Ong LB
Finnbarr
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
@ 1997-11-21 5:00 ` Nikola Milutinovic
1997-11-21 5:00 ` Dr. Strangelove
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Nikola Milutinovic @ 1997-11-21 5:00 UTC (permalink / raw)
Ong Liang Bu wrote:
>
> Hi
>
> I have a Digital DEC2000 installed with osf/1 ver 3.2. The system has users log in 24 hrs a day, nonstop. I need to find a way to stop users from coming in so that I can do backup. Apart from modify the /etc/inittab and run 'init q'; i s there anyway to stop new users coming in? Also when existing user logout the connection is closed to prevent others from seizing the connection. Most of my users connect to the machine remotely by lat. Anyone can help?
If there is a file called /etc/nologin, system will not log in anyone
except root and will display the contents of /etc/nologin instead.
Nix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
1997-11-21 5:00 ` Finnbarr P. Murphy
@ 1997-11-21 5:00 ` John Hascall
1997-11-23 5:00 ` Stuart R. Fuller
1 sibling, 0 replies; 8+ messages in thread
From: John Hascall @ 1997-11-21 5:00 UTC (permalink / raw)
Finnbarr P. Murphy <fpm@amber.zk3.dec.com> wrote:
}It's simple - touch /etc/nologin. See the login(1) reference page
Better yet, do:
# echo "Sorry, backups in progress : `date`" > /etc/nologin
John
}>I have a Digital DEC2000 installed with osf/1 ver 3.2. The system has users log
}>in 24 hrs a day, nonstop. I need to find a way to stop users from coming in so
}>that I can do backup. Apart from modify the /etc/inittab and run 'init q'; i s
}>there anyway to stop new users coming in? Also when existing user logout the
}>connection is closed to prevent others from seizing the connection. Most of my
}>users connect to the machine remotely by lat. Anyone can help?
}>
}>I appreciate all the help I can get.
}>
}>Thanks
}>Ong LB
}
} Finnbarr
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
1997-11-21 5:00 ` Finnbarr P. Murphy
1997-11-21 5:00 ` John Hascall
@ 1997-11-23 5:00 ` Stuart R. Fuller
1 sibling, 0 replies; 8+ messages in thread
From: Stuart R. Fuller @ 1997-11-23 5:00 UTC (permalink / raw)
Finnbarr P. Murphy (fpm@zk3.dec.com) wrote:
:
:
: It's simple - touch /etc/nologin. See the login(1) reference page
:
:
: >I have a Digital DEC2000 installed with osf/1 ver 3.2. The system has users log
: >in 24 hrs a day, nonstop. I need to find a way to stop users from coming in so
: >that I can do backup. Apart from modify the /etc/inittab and run 'init q'; i s
: >there anyway to stop new users coming in? Also when existing user logout the
: >connection is closed to prevent others from seizing the connection. Most of my
: >users connect to the machine remotely by lat. Anyone can help?
: >
Even better:
echo System is unavailable while it is being backed up > /etc/nologin
In addition to checking for the existence of this file, login will also
display the contents of the file.
Stu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
` (3 preceding siblings ...)
1997-11-21 5:00 ` Finnbarr P. Murphy
@ 1997-11-24 5:00 ` lombardi emanuele
1997-11-24 5:00 ` Aleksandar Milivojevic
5 siblings, 0 replies; 8+ messages in thread
From: lombardi emanuele @ 1997-11-24 5:00 UTC (permalink / raw)
As simple as
touch /etc/nologin
No new login will be allowed when such file exists.
You may even write a message into the same file /etc/nologin
The users will read the message before their login is rejected
Greeting from Italy
Emanuele
--
Emanuele Lombardi
mail: AMB-GEM-CLIM ENEA Casaccia
I-00060 S.M. di Galeria (RM)
ITALY
mailto:lele@mantegna.casaccia.enea.it
tel +39 6 30483366
fax +39 6 30483591
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to stop people to log in
[not found] <653m0p$cqf@news.ntu.edu.sg>
` (4 preceding siblings ...)
1997-11-24 5:00 ` lombardi emanuele
@ 1997-11-24 5:00 ` Aleksandar Milivojevic
5 siblings, 0 replies; 8+ messages in thread
From: Aleksandar Milivojevic @ 1997-11-24 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
Ong Liang Bu (onglb@NIEVAX.NIE.AC.SG) wrote:
> I have a Digital DEC2000 installed with osf/1 ver 3.2. The system
> has users log in 24 hrs a day, nonstop. I need to find a way to
> stop users from coming in so that I can do backup. Apart from
> modify the /etc/inittab and run 'init q'; i s there anyway to stop
> new users coming in? Also when existing user logout the connection
> is closed to prevent others from seizing the connection. Most of my
> users connect to the machine remotely by lat. Anyone can help?
If you have C2 security, you can restrict when users can login to
system. For example, with edauth command you can add something like
"u_tod=Any0800-2000", which will allow user to login any day between
8am and 8pm.
If you don't have C2 enabled, you can just touch /etc/nologin, do
backup, and then remove /etc/nologin.
--
Aleksandar Milivojevi� http://jagor.srce.hr/~alex/
e-mail: alex@srce.hr
================================ooooO=Ooooo==============================
Real Users never know what they want, but they always know when your
program doesn't deliver it.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1997-11-24 5:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <653m0p$cqf@news.ntu.edu.sg>
1997-11-21 5:00 ` How to stop people to log in Nikola Milutinovic
1997-11-21 5:00 ` Dr. Strangelove
1997-11-21 5:00 ` Erik Persson
1997-11-21 5:00 ` Finnbarr P. Murphy
1997-11-21 5:00 ` John Hascall
1997-11-23 5:00 ` Stuart R. Fuller
1997-11-24 5:00 ` lombardi emanuele
1997-11-24 5:00 ` Aleksandar Milivojevic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox