Solved

Traceroute Redhat 9

Posted on 2003-11-10
10
1,467 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
10 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 50 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Filesystems reporting faster growth than actual file growth... 7 75
awk file 6 79
AWS EC2 HTTP & HTTPS 2 45
How to change the nameserver on Ubuntu Server 6 50
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

829 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