Bind Error 13
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us redis opening socket: bind: permission denied Learn more about Stack Overflow the company Business Learn more about hiring developers bind permission denied uwsgi or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack socket permission denied linux Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up python bind socket.error: [Errno 13] Permission denied
Bind Failed Permission Denied
up vote 6 down vote favorite 2 I have a python script which gets packets from a remote machine and writes them (os.write(self.tun_fd.fileno(), ''.join(packet))) to a tun interface gr3: Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.0.0.6 P-t-P:10.0.0.8 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:61 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:5124 (5.0 KiB) TX bytes:0 (0.0 b) I bind permission denied c would like to receive those packets via a separate pong script as follows: import threading, os, sys, fcntl, struct, socket from fcntl import ioctl from packet import Packet HOST = '10.0.0.6' PORT = 111 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print 'Connected by', addr while 1: data = conn.recv(1024) if not data: break else: print data conn.sendall(data) conn.close() I got this error : s.bind((HOST, PORT)) File "
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Community Lounge > Programming & Packaging c program tcp/ip socket.error: [errno 13] permission denied flask bind() errno 13 (permission) FedoraForum Search User Name Remember Me? Password Forgot Password?
Linux Allow User To Bind To Privileged Port
Join Us! Register All Albums FAQ Today's Posts Search Programming & Packaging A place to discuss programming and packaging. Google™ Search
Redis Opening Unix Socket: Bind: Permission Denied
FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 6th August 2013, 11:38 http://stackoverflow.com/questions/24001147/python-bind-socket-error-errno-13-permission-denied PM rclark Offline Registered User Join Date: Nov 2004 Location: MT USA Posts: 816 c program tcp/ip bind() errno 13 (permission) Security question for a 'C' program. Binding a socket works fine if I run my program as 'root'. But when the same program runs as normal user, bind() fails with errno set to 13, when means "permission denied" according to documentation. Is this normal that you can't run a http://forums.fedoraforum.org/showthread.php?t=293158 TCP/IP 'server' as a normal user? Is there a setting that needs to be changed, or do I have to run my program always as a root user? Just curious. rclark View Public Profile Find all posts by rclark #2 7th August 2013, 04:18 AM ocratato Offline Registered User Join Date: Oct 2010 Location: Canberra Posts: 2,318 Re: c program tcp/ip bind() errno 13 (permission) The port numbers 1...1023 are reserved for root. What port number are you using? __________________ The universe is under no obligation to prevent disappointment. ocratato View Public Profile Find all posts by ocratato #3 7th August 2013, 03:35 PM rclark Offline Registered User Join Date: Nov 2004 Location: MT USA Posts: 816 Re: c program tcp/ip bind() errno 13 (permission) Using port 80 for my web-server. No way around that I suppose. rclark View Public Profile Find all posts by rclark #4 7th August 2013, 05:17 PM george_toolan Offline Registered User Join Date: Dec 2006 Posts: 2,088 Re: c program tcp/ip bind() errno 13 (permission) That's a security feature and not a bug ;-) Just use a different port like 1080 or 8080. george_toolan View Public Profile Find all posts by george_toolan #5 7th Augu
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://unix.stackexchange.com/questions/79329/could-not-bind-socket-permission-denied-when-trying-to-start-ndoutils-using-uni Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a permission denied question Anybody can answer The best answers are voted up and rise to the top Could not bind socket: Permission denied when trying to start NDOUtils using UNIX socket up vote 1 down vote favorite I followed these directions to a tee: Everything was going well until I actually tried to run this command (there is a typo in the article, I've corrected it here): /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg socket: bind: permission My results: # /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg Could not bind socket: Permission denied I'm running this command as root already. I chose to use the UNIX socket rather than TCP. The Nagios log shows the following after a fresh reboot but nothing if I try to run that command manually. [1371152186] ndomod: NDOMOD 1.5.2 (06-08-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1371152186] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1371152186] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. Looking at the process tree, I see no "ndo" process of any kind running. Looking at netstat, I see this: unix 2 [ ACC ] STREAM LISTENING 841374 /var/run/saslauthd/mux unix 2 [ ACC ] STREAM LISTENING 840356 @/com/ubuntu/upstart unix 2 [ ] DGRAM 840610 @/org/kernel/udev/udevd unix 10 [ ] DGRAM 841162 /dev/log unix 2 [ ACC ] STREAM LISTENING 841337 /var/lib/mysql/mysql.sock unix 2 [ ] DGRAM 857504 unix 2 [ ] DGRAM 847472 unix 2 [ ] DGRAM 841625 unix 2 [ ] DGRAM 841584 unix 2 [ ] DGRAM 841534 unix 2 [ ] DGRAM 841517 unix 2 [ ] DGRAM 841373 unix 2 [ ] DGRAM 841212 unix 3 [ ] DGRAM 84