Fedora Linux Support Community & Resources Center
Old 19th March 2008, 02:50 PM
DesiSniper Offline
Registered User
Join Date: Nov 2007
Posts: 9
mtr: unable to get raw sockets


I have a fedora 6 box, and on it I have installed MTR using YUM. Logged on as root I can use mtr and it works. However after creating a restricted user, I cannot use mtr, I get the following error:

mtr: unable to get raw sockets.

Could anyone shed any light on as to why this is occuring, it only happens if i log in using a restricted user profile.

Reply With Quote
Old 20th March 2008, 06:53 AM
nucleo Offline
Registered User
Join Date: Jan 2008
Posts: 101
Try this as root
chmod 4755 /usr/sbin/mtr
Reply With Quote
Old 20th March 2008, 05:13 PM
DesiSniper Offline
Registered User
Join Date: Nov 2007
Posts: 9
sweet that worked man, thanks.

Now I would like to know what exactly 4755 permissions do?
Reply With Quote
Old 20th February 2012, 09:11 PM
over5characters Offline
Registered User
Join Date: Feb 2012
Location: The Best Coast
Posts: 1
Re: mtr: unable to get raw sockets

4000 is setuid "set user id on execution"


from "man chmod"

chmod clears the set-group-ID bit of a regular file if the file’s group ID does not
match the user’s effective group ID or one of the user’s supplementary group IDs,
unless the user has appropriate privileges. Additional restrictions may cause the
set-user-ID and set-group-ID bits of MODE or RFILE to be ignored. This behavior
depends on the policy and functionality of the underlying chmod system call. When
in doubt, check the underlying system behavior.

chmod preserves a directory’s set-user-ID and set-group-ID bits unless you explic-
itly specify otherwise. You can set or clear the bits with symbolic modes like u+s
and g-s, and you can set (but not clear) the bits with a numeric mode."

755 is just rwxr-xr-x. standard permissions.
Reply With Quote
Old 20th February 2012, 09:24 PM
nucleo Offline
Registered User
Join Date: Jan 2008
Posts: 101
Re: mtr: unable to get raw sockets

Capabilities used instead of SETUID beginig from Fedora 15 http://fedoraproject.org/wiki/Features/RemoveSETUID

So, now to get mtr working it is needed to run setcap
# setcap cap_net_raw+ep /usr/sbin/mtr
(this is set when mtr package installing so if capabilities not set then package reinstalling can help).

getcap can check file capabilities:
$ getcap /usr/sbin/mtr
/usr/sbin/mtr = cap_net_raw+ep

Last edited by nucleo; 20th February 2012 at 09:32 PM.
Reply With Quote

mtr, raw, sockets, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sockets and strings fizy Programming & Packaging 4 10th May 2008 10:40 PM
Java and MTS sockets tashirosgt Programming & Packaging 1 24th July 2007 10:06 AM
sockets are hanging nimbius Servers & Networking 12 19th May 2007 12:37 PM
Another sockets problem pepribal Programming & Packaging 5 26th February 2007 08:08 PM
upgrade php with -sockets sadouk Using Fedora 0 5th March 2005 08:38 PM

Current GMT-time: 04:24 (Monday, 26-01-2015)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Snow Point, Manali Photos on Instagram - Roof Garden, Athens Gate Hotel Photos on Instagram - Maumelle High School Travel Photos