Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Gaining ip address
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
lynz_addict
n00b
n00b


Joined: 31 Jan 2004
Posts: 54
Location: Singapore

PostPosted: Wed Jan 19, 2005 3:27 pm    Post subject: [Solved]Gaining ip address Reply with quote

How to get the ip address of the machine w/o having access to the root?
_________________
ADDictED to PoweR!
ADDictED to LiNuX !!!


Last edited by lynz_addict on Wed Jan 19, 2005 4:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed Jan 19, 2005 3:48 pm    Post subject: Reply with quote

Code:
/sbin/ifconfig

_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
nemo_
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 167
Location: Brussels, Belgium

PostPosted: Wed Jan 19, 2005 3:50 pm    Post subject: Reply with quote

try netstat -ie
should give the same info as ifconfig, but runs as a regular user I beleive.
Back to top
View user's profile Send private message
Niosop
n00b
n00b


Joined: 04 Oct 2003
Posts: 24

PostPosted: Wed Jan 19, 2005 3:50 pm    Post subject: Reply with quote

You can use ifconfig, which by default is world executable I believe. It's in /sbin though, so you'll either have to add /sbin to your users path, or type /sbin/ifconfig to run it each time.

Hope this helps,
Niosop
Back to top
View user's profile Send private message
lynz_addict
n00b
n00b


Joined: 31 Jan 2004
Posts: 54
Location: Singapore

PostPosted: Wed Jan 19, 2005 4:37 pm    Post subject: Reply with quote

Thanks! It worked. ifconfig by default is not there in the path for users. Its only there for the root. But, ya! /sbin/ifconfig works.
_________________
ADDictED to PoweR!
ADDictED to LiNuX !!!
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