Smart questions
Smart answers
Smart people
Join Tek-Tips Forums

Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

How to disable remote login to AIX...Helpful Member! 

restockton (MIS) (OP)
28 Nov 00 11:08
I know that you can place a file, either nologin, or nologon in a specific file system, and if that file is present, only logon from the console is allowed.  I can not remember if it is nologin or nologon, and I can't remember where to put the file.  I have done this before, and it works great, but I just had a brain fade and can't remember the details. Not something you use everyday.  If anyone can remember and tell me, I would appreciate it.

Thanks for your help.
MikeLacey (MIS)
28 Nov 00 15:16
smit user

pick your user, set remote login allowed to false

That's the lazy way I know....


restockton (MIS) (OP)
28 Nov 00 15:54
What I need is to disable all remote login while I do maintenance to the machine without rebooting in single user mode.  I don't want to just disable a particular user, but thanks for the info, I may use that for a different situation later.
MikeLacey (MIS)
28 Nov 00 18:15
Oh I see.

I remember this, it was a standard feature in BSD, it was implemented in /etc/profile.

The logic in /etc/profile was something like this:

if the user is not root
  if the file /etc/nologin exists
    display a polite message and log the user out


Guest (visitor)
30 Nov 00 14:56
Try this:
1. vi passwd
2. do the global change
3. for user root change it back to /bin/ksh !!!
Enjoy it.
MikeLacey (MIS)
30 Nov 00 19:28

Wow -- that is *such* a scary thing to suggest....


Helpful Member!  Suza (MIS)
4 Dec 00 21:45
restockton - to implement what MikeLacey suggests above, simply type in the following command:

touch /etc/nologin

It creates the 'nologin' file in /etc which prohibits any login from anyone except root, it does not however kill off any current users - that's up to you - but it will prevent them from logging back in.  When you're done simply remove the nologin file by typing

rm -i /etc/nologin  (-i isn't required, just good practice)
No reboot is required.
slgordon (IS/IT--Management)
13 Dec 00 15:20
You can also edit the /etc/nologin file to display a message to the user when they try to login.
i.e. "System down for maintenance, please try again later"

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close