Solved

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

Posted on 2011-09-13
3
268 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
ID: 36542480
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
ID: 36564606
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
ID: 36591871
found the answer myself
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

11 Experts available now in Live!

Get 1:1 Help Now