Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 11-26-2011, 08:01 PM   #1
LQ Newbie
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Socket(): permission denied

Hi guys,
Got an experimental Debian build on an ARM system, but having some problems with sockets.
Basically, everything runs fine as root, but as a standard user I can't even ping. I ran an strace for "ping" and got this fatal line :
Socket(...): -1 EACCES permission denied
Since socket() is a system call, I'm not too sure where the permission settings are.
Old 11-30-2011, 08:27 AM   #2
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
Hello, the problem is that making a ping opens a raw socket, not a TCP one...
so it's not surprising that it's forbidden to normal users. Ping is "suid" in unix systems, so maybe in your system it is not... try setting it suid:
chmod +s /bin/ping


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
user mode permission denied to bind to socket hieswarmcaquest Programming 2 05-04-2011 05:17 AM
permission denied error in php socket programming jayasekar Linux - Software 1 01-21-2010 07:04 AM
rsh connections : rcmd: socket: Permission denied tiuz Linux - Networking 8 08-21-2009 09:21 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Couldn't create socket: Permission denied piforever Fedora 9 12-22-2005 05:52 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration