INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

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!

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

How to disable remote login to AIX...

(OP)
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....


Mike
michael.j.lacey@ntlworld.com

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

(OP)
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
  fi
fi


Mike
michael.j.lacey@ntlworld.com

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

Try this:
1. vi passwd
2. do the global change
   :%s/\/bin\/ksh/\/dev\/null/g
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"

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