Solved

Traceroute Redhat 9

Posted on 2003-11-10
10
1,463 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
 
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Anti-Spam SMTP Proxy Server (@SSP) 7 84
Replace Ubuntu Desktop with Ubuntu Server 7 91
Anti-virus for Linux Server 15 127
AWS CLI issues with Tags 3 65
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now