LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2007, 05:23 PM   #1
aus-city
LQ Newbie
 
Registered: Mar 2007
Posts: 7

Rep: Reputation: 0
/dev/gps0 permission denied


I am trying to set up my GPS to sync ntpd.

I know my GPS works as I can see the 4800 baud data on the serial port using gtkterm.

I set my ntp.conf:

server 127.127.20.0 mode 1 version 4 prefer
fudge 127.127.20.0 refid PPS flag2 1 flag3 time1 0.000 stratum 1

Okay I then made a symlink for /dev/gps0 to /dev/ttyS0

Its got full permissions

When I restart ntpd I get this error in the logs:

/dev/gps0 permission denied

It then freezes ntpd. I have to remove the symlink of /dev/gps0 and restart ntpd, I then get a plain it can't find /dev/gps0 and ntpd starts up.

I read somewhere someone said it is selinux. If it is what option do I need to modify in selinux to get ntpd and gps working?

Thanks!
 
Old 03-12-2007, 07:39 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
As a test you can disable selinux completely by adding selinux=0 as a kernel command line option.

BTW what is the make / model of your GPS receiver and does it really have a 1 pulse per second output?
 
Old 03-13-2007, 05:15 AM   #3
aus-city
LQ Newbie
 
Registered: Mar 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply!

I don't want to disable selinux, so I will opt to run gpsd.

But now I got a different quuestion so I better post as a new topic.

Thanks again!
 
  


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
/dev/null permission denied sagar.1986 Linux - General 4 01-19-2007 03:39 PM
/dev/null: Permission Denied dsschanze Red Hat 3 10-13-2006 01:38 PM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 06:31 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
/dev/dsp: Permission denied jtX Slackware 1 02-06-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 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