Traceroute Redhat 9


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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It is a permissions thing, set the suid / sgid bit on traceroute, i.e.
chmod a+s /path/to/traceroute

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PaulmulAuthor Commented:
Can you explain that a bit more? When I typed that it said to few arguements. Do I have to be logged in as root?  what is a+s and path/to/traceroute?

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

which traceroute
to find where yours is
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

also to find out where traceroute is do this as root
which traceroute

good luck
PaulmulAuthor Commented:
So can I type a+s or is it * SetUID?

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.
PaulmulAuthor Commented:
I accepted that a little prematurely. Traceroute still does not work. It just says Bash: Traceroute: command not found.

Any ideas?
which traceroute
if it says:
/sbin/traceroute <IP address>
You can modify your PATH variable
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
PaulmulAuthor Commented:
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.

PaulmulAuthor Commented:
It's okay, I got it now.

Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.