Solved

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

Posted on 2011-09-13
3
269 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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