LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-26-2011, 07:01 PM   #1
hammil1
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 192.168.0.1" 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.
Thanks,
Hamish
 
Old 11-30-2011, 07:27 AM   #2
clvic
Member
 
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:
Code:
chmod +s /bin/ping
 
  


Reply



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 04:17 AM
permission denied error in php socket programming jayasekar Linux - Software 1 01-21-2010 06:04 AM
rsh connections : rcmd: socket: Permission denied tiuz Linux - Networking 8 08-21-2009 08:21 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
Couldn't create socket: Permission denied piforever Fedora 9 12-22-2005 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:19 AM.

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