Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unix Network Logon..

Posted on 2006-11-07
3
Medium Priority
?
193 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
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.

885 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