Is it possible to add a list of hosts that are only specific to a certain user? Perhaps a user-specific hosts file?
This mechanism should also complement the entries in the /etc/hosts file.
|
Is it possible to add a list of hosts that are only specific to a certain user? Perhaps a user-specific hosts file? This mechanism should also complement the entries in the |
|||||||||
|
|
The functionality you are looking for is implemented in glibc. You can define a custom hosts file by setting the Example (tested on Ubuntu 13.10):
Some limitations:
|
|||||||||||||
|
|
Beside the For instance, on Linux: If you're not using
(the shared library may be located elsewhere, e.g. Now, binary-edit the copy to replace
Edit
for Instead of
For instance which would allow different commands to use different If |
|||||||||||||||||||||
|
|
Private mountspaces created with the
|
|||||||||
|
|
One solution is to have each user in a separate |
|||||||||
|
|
I faced the same need, so I tried libnss-userhosts, but it fails at multithreaded applications. Therefore I have written libnss-homehosts. It's very new and tested only by me. You may give a chance for it! It supports some options in /etc/host.conf, multiple alias names, and reverse resolving (address to name). |
|||||
|
|
Not sure if this would help you, but I came here looking for a way to add saved "hosts" somewhere that was easily accessible to only my user. I basically needed to be able to ssh into certain boxes on our work network, which only has one entry point. What I did was add aliases to my For example, if you added:
at the bottom of the |
|||||||||
|
|
Placing the following in
An example of
|
|||
|
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?