Solved

Unix Network Logon..

Posted on 2006-11-07
3
184 Views
Last Modified: 2012-05-05
Hi All,
      We run medical manager on our SCO UNIX machine and at the end of the month we perform a month close. This normally takes 5-6 hours. During this process I can’t have users logged on to the system. Now what I do is, remove the network connection from the system and I plug it in the next morning. Is there any way to stop the users from logging on to the system, instead of removing the network connections (like Ethernet card disable in windows)

Thanks,
arsmed
0
Comment
Question by:arsmed840
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
PsiCop earned 250 total points
ID: 17892263
I don't know SCO's UNIX specifically, so the commands may differ in name or syntax from what I suggest here. You'll need to be root to do these things.

You can shut down a network interface like this:

# ifconfig eth0 down

The command is "ifconfig".

"eth0"  **ASSUMES**  that the interface is named "eth0". I have no idea what naming convention SCO follows.

You can get a list of currently-defined interfaces using:

# ifconfig -a

Assuming the "-a" parameter is a valid option in SCO's implementation, or that SCO uses "ifconfig" and didn't name the command something else.

To bring the interface back up:

# ifconfig eth0 up

Again, the same assumptions apply. The man pages will help you figure it out if SCO's stuff differs:

# man ifconfig

Alternatively, you may be able to bar users from logging in by creating a file. The location and name of the file varies from *NIX to *NIX, but generally it's /etc/nologin. You can create it like this:

# touch /etc/nologin

If you put some text in it, then that text is usually displayed when users try to login.

Again, I've made an assumption that your particular flavor of SCO UNIX supports this and uses a file with that name and location. Other possible file name/locations include /etc/nologin.txt and /nologin

Check your system man pages - they may have more information:

# man nologin
0
 

Author Comment

by:arsmed840
ID: 17892486
Excellentooooooooooo...........................what I exactly needed.....
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 17892964
If using /etc/nologin (or whatever) is supported in SCO UNIX and you use that method, then don't forget to delete the file when you're done so people can login:

# rm /etc/nologin

Finally, while it didn't make a difference here, the VERSION of the product can make a difference with other Questions. Get in the habit of including it.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now