Solved

Unix Network Logon..

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 gone bad 19 128
Search also sub-folder 1 66
AS400 user directory 6 113
Windows doesn't download updates 26 103
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
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.

773 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