Solved

VPS: Restrict Access for a user for specific period of time

Posted on 2011-09-13
3
265 Views
Last Modified: 2012-08-13
Currently i shared my VPS admin login with my co-worker. Now i would like to know if there a solution so i could restrict him to log on my VPS for specific period of time ?

ps: i already create his user login.
0
Comment
Question by:veematics
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Lester_Clayton
Comment Utility
In a Windows Active Directory environment, you can set an account to expire.  You cannot do this on standalone servers, which is what I suspect you will be running, so here's another idea:

Create a Scheduled Task to disable the account using the command line:

Net user John /active:no

Assuming, that John is the account name of your co-worker.

Because NET is a command, and not an application, you will probably have to wrap this in a CMD.EXE, so your application will run C:\Windows\system32\cmd.exe with the parameters /C "
Net user John /active:no"

Be warned though, that if your co-worker is a local administrator - he can find the scheduled task and disable it.
0
 

Accepted Solution

by:
veematics earned 0 total points
Comment Utility
After browse site to site, i finally found the solution on microsoft site:
hxxp://support.microsoft.com/kb/816666

The easiest solution are:
net user john /time:M-F,08:00-17:00  

for restrict user john to only able access the server from monday to friday 08:00-17:00

and
net user john /time:all

to disable the logon restriction

Thanks
0
 

Author Closing Comment

by:veematics
Comment Utility
found the answer myself
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Many people don't know about it - and it's almost like a huge secret, but Hyper-V is one of the most cost-effective Virtual solutions out there, and I'll tell you why. In a single word - Licensing. The Breakdown Microsoft gi…
Learn about cloud computing and its benefits for small business owners.
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…

744 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

13 Experts available now in Live!

Get 1:1 Help Now