Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

*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.


How to disable remote login to AIX...

How to disable remote login to AIX...

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.

RE: How to disable remote login to AIX...

smit user

pick your user, set remote login allowed to false

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


RE: How to disable remote login to AIX...

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.

RE: How to disable remote login to AIX...

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


RE: How to disable remote login to AIX...

Try this:
1. vi passwd
2. do the global change
3. for user root change it back to /bin/ksh !!!
Enjoy it.

RE: How to disable remote login to AIX...

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.

RE: How to disable remote login to AIX...

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"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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!


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