Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local User Hosts File
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mor22
n00b
n00b


Joined: 22 Jun 2003
Posts: 52
Location: Cambridge, UK

PostPosted: Wed Sep 10, 2003 4:55 pm    Post subject: Local User Hosts File Reply with quote

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
View user's profile Send private message
mor22
n00b
n00b


Joined: 22 Jun 2003
Posts: 52
Location: Cambridge, UK

PostPosted: Wed Sep 10, 2003 11:16 pm    Post subject: zsh tab completion Reply with quote

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
View user's profile Send private message
rogue
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2002
Posts: 99
Location: Falls Church, VA

PostPosted: Thu Sep 11, 2003 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
mor22
n00b
n00b


Joined: 22 Jun 2003
Posts: 52
Location: Cambridge, UK

PostPosted: Thu Sep 11, 2003 8:58 am    Post subject: scripts Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum