From: Radovan D. <rad...@em...> - 2013-09-18 08:11:19
|
###Hello Vasos, ###I have tripplechecked that sudo setup - switched to apache user and perform sudo commands. ###No problem has been detected in sudo setup. ###I think it may be some apache config issue - Or do you think can it be also some php version trouble, please? [root@manitou ~]# su - apache -bash-4.2$ id uid=48(apache) gid=48(apache) groups=48(apache) context=unconfined_u: unconfined_r:unconfined_t:s0-s0:c0.c1023 -bash-4.2$ sudo iwconfig --version iwconfig Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. -bash-4.2$ sudo iwpriv --version iwpriv Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. -bash-4.2$ sudo iwlist --version iwlist Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. -bash-4.2$ sudo ifconfig bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500 ... ... ... br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ... ... ... em1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500 ... ... ... lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 ... ... ... mon.wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ... ... ... p1p1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500 ... ... ... p1p2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ... ... ... wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ... ... ... -bash-4.2$ sudo route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ... ... ... -bash-4.2$ -bash-4.2$ sudo dhclient --version isc-dhclient-4.2.5 -bash-4.2$ ###Thanks. ###Rad. ---------- Původní zpráva ---------- Od: vasos g <ba...@gm...> Datum: 17. 9. 2013 Předmět: Re: [Wifiadmin-users] System bindings errors. " I realized that the correct command to test for priviledged execution of command iwconfig (sudo iwconfig) of user "apache" is # sudo -u apache sudo iwconfig I assume that you haven't set up sudo and my apologies to this as I realized that the register script that does exactly this is documented only for SSH routers and not for local. So, you could start by $ cd installl; ./register_host.sh and following the instructions or by reading the README and following the manual steps. For dmesg what $ which dmesg print ? Maybe we should make the binaries configurable to support various distributions. Vg. On 17/09/13 13:24, Radovan Drahovsky wrote: "Hello Vasos, I have tried to troubleshoot this but I faild. I did changed /etc/passwd for apache user and change it from nologin to / bin/bash for default shell. I have also set selinux to permissive mode. Did reboot of whole server but no luck :-( I will work harder with apache log files but if you have some idea what I can check here to get that commands working, please suggest, please? Thanks. Rad. ---------- Původní zpráva ---------- Od: basos g <ba...@gm...>(mailto:ba...@gm...) Datum: 17. 9. 2013 Předmět: RE: [Wifiadmin-users] System bindings errors. " Hi, the audio thing is strange since they work on cli. Maybe a Apache restart? anyway these are to modify settings, but you should read them properly. Vg Radovan Drahovsky <rad...@em...>(mailto:rad...@em...) wrote: #Hello Vasos, #Thank you very much for your reply and your support. #I tried to perform system bindings from webbrowser but I got lots of errors. #Here is small report: System bindings Status. Note that you will need to install missing items for wifiadmin to be functional System Binaries Checking.. Checking cat : Ok Checking ls : Ok Checking dmesg : Missing. This *will* render some information messages useless Checking /sbin/wlanconfig : Missing. This *may* break things Checking /sbin/iwconfig : Ok Checking /sbin/ifconfig : Ok Checking /sbin/route : Ok Checking host : Ok Checking /usr/sbin/arp : Ok Checking uname : Ok Sudo (privileged) execution checking..Checking sudo iwconfig : Error. This *may* break things Checking sudo iwpriv : Error. This *may* break things Checking sudo iwlist : Error. This *may* break things Checking sudo ifconfig : Error. This *may* break things Checking sudo route : Error. This *may* break things Checking sudo dhclient : Error. This *may* break things #This is what I could see on console on webbrowser: [19:54][X] sudo iwconfig --version [19:54][X] sudo iwpriv --version [19:54][X] sudo iwlist --version [19:54][X] sudo ifconfig [19:54][X] sudo route [19:54][X] sudo dhclient --version #Also dmesg was rec - so I suppose also failed: [19:54][X] dmesg #I tried commands from commandline - and all of them were working just fine: [root@manitou ~]# sudo -u apache iwconfig --version iwconfig Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. [root@manitou ~]# sudo -u apache iwpriv --version iwpriv Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. [root@manitou ~]# sudo -u apache iwlist --version iwlist Wireless-Tools version 29 Compatible with Wireless Extension v11 to v22. Kernel Currently compiled with Wireless Extension v22. mon.wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. wlan0 Recommend Wireless Extension v21 or later, Currently compiled with Wireless Extension v22. #All other commands was just as well .... #Please suggest, please? #Thank you very much. #Regards. #Rad. " " " |