View previous topic :: View next topic |
Author |
Message |
mor22 n00b
Joined: 22 Jun 2003 Posts: 52 Location: Cambridge, UK
|
Posted: Wed Sep 10, 2003 4:55 pm Post subject: Local User Hosts File |
|
|
I would like to have a hosts file similar to /etc/hosts that a local user without root priv's can write their own hosts to.
Does anyone know if this is possible?
Cheers |
|
Back to top |
|
|
mor22 n00b
Joined: 22 Jun 2003 Posts: 52 Location: Cambridge, UK
|
Posted: Wed Sep 10, 2003 11:16 pm Post subject: zsh tab completion |
|
|
The reason I want this is to allow tab completion when sshing to another machine without typing the host ip address.
zshell can do tab completion of host names, yet to get it working tho.
Just a thought though . |
|
Back to top |
|
|
rogue Tux's lil' helper
Joined: 15 May 2002 Posts: 99 Location: Falls Church, VA
|
Posted: Thu Sep 11, 2003 1:12 am Post subject: |
|
|
is this something that you want to be individual for all users, or something that you don't mind potential abuse for...
you could just write a script with the setuid bit set that just modifies the /etc/hosts file? i.e. something that you would call 'add-host blah ip' _________________ (rob) |
|
Back to top |
|
|
mor22 n00b
Joined: 22 Jun 2003 Posts: 52 Location: Cambridge, UK
|
Posted: Thu Sep 11, 2003 8:58 am Post subject: scripts |
|
|
I can't do that because I don't have root permisions on that box, but I guess I could have a script with just:
ssh 123.456.768.123
instead of typing ip address I type the hostname (which is the name of the script)
Lame workarround I think. |
|
Back to top |
|
|
|