LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   GPSD not working from non-root user? (https://www.linuxquestions.org/questions/slackware-14/gpsd-not-working-from-non-root-user-427098/)

Archer36 03-21-2006 07:48 PM

GPSD not working from non-root user?
 
Hey guys I am not sure how to get this fixed. Basically I got a eXplorist 210 which interfaces though USB, I plug it in and the kernel quickly loads up cdc_acm and gives it to /dev/ttyACM0.

I can CAT the file and see the wealth of NMEA data flowing but when I do "gpsd -p /dev/ttyACM0" then "xgps" it does nothing, it says "no data arriving" in the xgps window. I have tried "sudo gpsd -p /dev/ttyACM0" and "sudo xgps" and it gives me the same result.

However when logging in as root I can run the gpsd command and bring up xgps with no problems at all. Obviously its a permissions issue however I am incompetent about permisions and wondering what should I change?

Thanks,
Archer

Archer36 03-21-2006 08:54 PM

Actually I think I know what happend, a few hours after posting I did some digging around and found that I have two gpsd executables floating around. I found this because I noticed that I couldn't use some command line options while in root, as the ones in my normal user.

So the executable located in /usr/bin/ would NOT properly drop privs to nobody, so if I did "sudo /usr/sbin/gpsd -p /dev/ttyACM0" I am able to pull up xgps and kismet reports the correct values.

Thanks


All times are GMT -5. The time now is 05:20 PM.