Paulmul
asked on
Traceroute Redhat 9
Hi,
I'm a bit of a linux newbie but need to use it for a college project. What I need to know is, why is it I can not use traceroute when I log in as me but I can when I log in as root? How do I go about changin this?
Thanks
I'm a bit of a linux newbie but need to use it for a college project. What I need to know is, why is it I can not use traceroute when I log in as me but I can when I log in as root? How do I go about changin this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes u have to be root
a+s on chmod means All plus SetUID, i.e. let all users run this command like the commands owner (root).
Sorry /path/to is a convention not a literal - /path/to/traceroute means wherever your tracerouter is located
for example
/usr/bin/traceroute
/usr/local/bin/tracroute
/etc/traceroute
type:
which traceroute
to find where yours is
a+s on chmod means All plus SetUID, i.e. let all users run this command like the commands owner (root).
Sorry /path/to is a convention not a literal - /path/to/traceroute means wherever your tracerouter is located
for example
/usr/bin/traceroute
/usr/local/bin/tracroute
/etc/traceroute
type:
which traceroute
to find where yours is
A lot of tools like traceroute can be placed in your /sbin directory. Most users don't have the /sbin added to their path. I don' t know about RH9 but you could also try
/sbin/tracroute
also to find out where traceroute is do this as root
which traceroute
good luck
willy
/sbin/tracroute
also to find out where traceroute is do this as root
which traceroute
good luck
willy
ASKER
So can I type a+s or is it * SetUID?
Thanks
Thanks
1. login as a root and type this command.
#which traceroute
2. check the answer for 1(suppose it is /sbin/traceroute).
#chmod a+s /sbin/traceroute
then u can login as yourself and try the traceroute command.
#which traceroute
2. check the answer for 1(suppose it is /sbin/traceroute).
#chmod a+s /sbin/traceroute
then u can login as yourself and try the traceroute command.
ASKER
I accepted that a little prematurely. Traceroute still does not work. It just says Bash: Traceroute: command not found.
Any ideas?
Any ideas?
type:
which traceroute
if it says:
/sbin/traceroute
type
/sbin/traceroute <IP address>
You can modify your PATH variable
PATH=$PATH:/sbin
export PATH
so you can then type just traceroute, however this will only work while you are logged in, you need to update your .profile file in your home directory, by adding the PATH lines above
which traceroute
if it says:
/sbin/traceroute
type
/sbin/traceroute <IP address>
You can modify your PATH variable
PATH=$PATH:/sbin
export PATH
so you can then type just traceroute, however this will only work while you are logged in, you need to update your .profile file in your home directory, by adding the PATH lines above
ASKER
When I type which traceroute (in user) it says traceroute not found and lists some directories. I know it is in /usr/sbin. I checked but it can not see it.
ASKER
It's okay, I got it now.
Thank you.
Thank you.
ASKER
Thanks