Solved

Unix Network Logon..

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IT Director 7 33
Is Cross Site Request Forgery (CSRF) & XSS applicable to RPG coding? 10 186
BOSD APC_INDEX_MISMATCH - who's the culprit ? 4 52
OS Selection Menu 1 47
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
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.

840 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