How to configure user specific hosts file on Windows [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
There is Windows Server 2003 machine which has many users to access. Each of them want to configure their own hosts file to redirect a hostname to certain IP address. (They are virtual machines with same hostname and different IP addresses owned by each user.)
C:\WINDOWS\system32\drivers\etc\hosts
Also, we cannot simply ask users to use IP address to connect because the hostname is configured and need to be used in an application. Can we have this user specific hosts file configured or any workaround?

technically this is not possible...a simple programmatic work around could be to write a script and at user logon replace the file with whatever values you want.
since most of the changes in the hosts file are read at runtime, you should be able to achieve the result you are expecting

Related

How to restrict bypassing bash ssh tunnel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am using SSH to exchange some keys between my server and a client.
Here the client should use SSH to send me his public key; my question is, how to restrict the other commands in bash?
Even if I use rbash, the client can run commands like:
ssh remote_host command_to_run
What can I do to overcome this problem?
Are you trying to authorize only one command on the server when a particular SSH key is used ? If yes, you can check the command statement of the authorized_keys file.
For example to authorize only ps -aux when the user foobar use KEY, you can edit /home/foobar/.ssh/authorized_keys this way :
command="ps -aux" ssh-rsa KEY
See the manual.
Please have a look at sshd_config on your (server) machine.
"Match" and "ForceCommand" should provide you with means for
restricting the commands available (or which command(s) to execute on connect).
You might also consider allowing only scp (to a specific directory)
and pickup the files from a daemon (or cron job) on the server.

Mikrotik - How to add Simple Load Balancing in Mikrotik [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have to WAN connected to mikrotik routerboard, named ppoe-WAN1 and ppoe-WAN2
I want to add simple load balancing to using tow internet connection for all lan users
the simplest way is that add new route with 2 gateway like image below,
Note that if before add this route you must delete all route with distance 1 that does not contains routing marks
and disable Add default Route from pope connections
Having two gateways for the same destination will just put the other in redundancy. It is better that you decide on one of the following:
1. Policy based routing (PBR)
2. Per connection classifier (PCC)

how to decrease ssh connection timeout value [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a list of full remote host ip addresses. I wrote a script to connect all the hosts in this list, one by one. My question is, sometimes when an IP address is down, script waits for a while (maybe a couple of minute) to go and execute next host. So I would like to decrease this waiting time. For example after 10 s, I want ssh connection is timeout and my script tries the next IP address. So how I can tweak this?
Thanks
if you call ssh script you can use something like that
ssh -o ConnectTimeout=10 <hostName>
where 10 is the number of seconds

Domain name registered for client and they want to transfer it to another domain host. OK to charge them for the domain name? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am a freelance programmer and often I will register a domain name for a client under a domain name reseller (and of course under my account).
I wanted to know if there is any standard procedure for selling the domain name to the client or just let them transfer it.
Does anyone know a normal procedure for this type of scenario?
If the domain name was purchased on behalf of the client, then it belong to the client and I would not charge them if they want to move the domain to a different registrar. It would not be ethical. I normally insert my name as technical contact only and leave the client as administrative contact, thereby indicating they are the owners.

domain name prefix 'www' [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
In a domain name, mostly started with prefix 'www'.is it used like a standard? ifnot, let me know, why?
www stands for world wide web. Many web addresses begin with www, because of the long-standing practice of naming Internet hosts (servers) according to the services they provide.
WWW prefix
A FQDN starting with "www." is used, by convention, for the machine hosting the primary website for a domain.
These days, where websites are more important then they were in the early days of the Internet, it is conventional to also run a webserver on the main machine for the domain (i.e. example.com rather than www.example.com) (these are usually the same machine) and redirect from one to the other.

Resources