Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Traceroute Redhat 9

Posted on 2003-11-10
10
Medium Priority
?
1,499 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:Paulmul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 200 total points
ID: 9716082
It is a permissions thing, set the suid / sgid bit on traceroute, i.e.
chmod a+s /path/to/traceroute
0
 
LVL 1

Author Comment

by:Paulmul
ID: 9716223
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?

Thanks
0
 
LVL 18

Expert Comment

by:liddler
ID: 9717494
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:willy134
ID: 9718010
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
0
 
LVL 1

Author Comment

by:Paulmul
ID: 9718258
So can I type a+s or is it * SetUID?

Thanks
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9720556
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.
0
 
LVL 1

Author Comment

by:Paulmul
ID: 9721252
I accepted that a little prematurely. Traceroute still does not work. It just says Bash: Traceroute: command not found.

Any ideas?
0
 
LVL 18

Expert Comment

by:liddler
ID: 9721291
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
0
 
LVL 1

Author Comment

by:Paulmul
ID: 9721327
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.

0
 
LVL 1

Author Comment

by:Paulmul
ID: 9721341
It's okay, I got it now.

Thank you.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question