Solved

Unix Network Logon..

Posted on 2006-11-07
3
185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 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

23 Experts available now in Live!

Get 1:1 Help Now