On Fri, 21 Sep 2001, Dalius Gilvydis wrote:
> Rick-
>
> These are the files in /usr/local/bin... should they be owned by gnats
> user or root?
>
> drwxr-xr-x 2 root root 4096 Sep 18 14:06 .
> drwxr-xr-x 16 root root 4096 Apr 1 18:01 ..
> -rwxr-xr-x 1 root root 980 Sep 18 14:06 edit-pr
> -rwxr-xr-x 1 root root 77676 Sep 18 14:06 getclose
> -rwxr-xr-x 1 root root 2590 Sep 18 14:06 install-sid
> -rwxr-xr-x 1 root root 982 Sep 18 14:06 nedit-pr
> -rwxr-xr-x 1 root root 59232 Sep 18 14:06 nquery-pr
> -rwxr-xr-x 1 root root 3915 Apr 1 18:01 pth-config
> -rwxr-xr-x 1 root root 80372 Sep 18 14:06 query-pr
> -rwxr-xr-x 1 root root 14577 Sep 18 14:06 send-pr
> -rwxr-xr-x 1 root root 52472 Sep 18 14:06 sub-type
Compared to you I have these differences:
-r-sr-xr-x 1 gnats other 71388 Jan 13 2000 gen-index
-r-xr-xr-x 1 gnats other 139208 Jan 13 2000 gnatsd
-r-sr-xr-x 1 gnats other 111200 Jan 13 2000 pr-edit
-r-sr-xr-x 1 gnats other 72428 Jan 13 2000 queue-pr
But from the command line you are OK, right? You might as well fix the
ownership and setuid anyway. You must not have run "make install" to
install those, because it does the setuid etc. You have to run make
install as root.
You might try just making locks 777 and be done with it.
You might try running gnatsd from the command-line with --not-inetd and
then attach strace to it (truss on Solaris) and watch what happens when it
tries to make the lock file. It must be somthing simple, but I don't see
it.
> At 06:45 PM 9/20/2001 -0600, you wrote:
>
> >You need to look at the permissions of the gnats-admin/locks directory.
> >
> >
> >On Thu, 20 Sep 2001, Dalius Gilvydis wrote:
> >
> > > At 05:58 PM 9/20/2001 -0600, Rick Macdonald wrote:
> > > >On Thu, 20 Sep 2001, Dalius Gilvydis wrote:
> > > >
> > > > > I've got an interesting locking problem that I cannot figure out...
> > > > >
> > > > > I can succesfully creat edit query PRs from the unix command
> > > > > line. *However*, I cannot edit PRs using TkGnats or gnatsweb. I
> > get an
> > > > > error that says:
> > > > >
> > > > > Cannot create lock file
> > > > > /usr/local/share/gnats/gnats-db/gnats-adm/locks/3.lock The PR
has not
> > > > been
> > > > > changed. If this problem persists, please contact a GNATS
> > administrator.
> > > > >
> > > > > Any ideas as to what could be happening? I am able to create and
> > query
> > > > PRs
> > > > > using tkgnats and gnatsweb, but not edit. I am using gnats
v3.113.1,
> > > > > tkgnats v.3.0.18, and gnatsweb v.2.9.0. Any help would be
> > appreciated...
> > > >
> > > >tkgnats and gnatsweb both talk to gnatsd. Perhaps gnatsd is not
set to run
> > > >as the gnats user in /etc/inetd.conf so you have a permissions problem
> > > >writing to /usr/local/share/gnats/gnats-db/gnats-adm/locks.
> > > >
> > > >...RickM...
> > >
> > > This is what my /etc/xinetd.d/support file looks like. It takes
place of
> > > the inetd.conf file. The user is set as gnats and the rest of the
params
> > > look good.
> > >
> > > service support
> > > {
> > > socket_type = stream
> > > protocol = tcp
> > > wait = no
> > > user = gnats
> > > server = /usr/local/libexec/gnats/gnatsd
> > > server_args = gnatsd
> > > }
> > > ------------------------------------------------------------------
> > > This is what my /usr/local/libexec/gnats/ contents looks like. are the
> > > permissions correct??
> > >
> > > drwxrwxr-x 2 root root 4096 Sep 18 14:06 .
> > > drwxrwxr-x 3 root root 4096 Sep 18 14:06 ..
> > > -rwxr-xr-x 1 root root 4078 Sep 18 14:06 at-pr
> > > -rwxr-xr-x 1 root root 3151 Sep 18 14:06 check-db
> > > -rwxr-xr-x 1 root root 4683 Sep 18 14:06 delete-pr
> > > -rwxr-xr-x 1 root root 82772 Sep 18 14:06 file-pr
> > > -r-sr-xr-x 1 gnats root 49708 Sep 18 14:06 gen-index
> > > -rwxr-xr-x 1 root root 9717 Sep 18 14:06 gnats-edit-pr
> > > -r-xr-xr-x 1 gnats root 106088 Sep 18 14:06 gnatsd
> > > -rwxr-xr-x 1 root root 3160 Sep 18 14:06 mail-query
> > > -rwxr-xr-x 1 root root 2374 Sep 18 14:06 mkcat
> > > -rwxr-xr-x 1 root root 5037 Sep 18 14:06 mkdist
> > > -rwxr-xr-x 1 root root 52792 Sep 18 14:06 npr-addr
> > > -rwxr-xr-x 1 root root 55608 Sep 18 14:06 npr-edit
> > > -rwxr-xr-x 1 root root 47468 Sep 18 14:06 pr-addr
> > > -rwxr-xr-x 1 root root 75628 Sep 18 14:06 pr-age
> > > -r-sr-xr-x 1 gnats root 82644 Sep 18 14:06 pr-edit
> > > -rwxr-xr-x 1 root root 53080 Sep 18 14:06 pr-mail
> > > -r-sr-xr-x 1 gnats root 50924 Sep 18 14:06 queue-pr
> > > -rwxr-xr-x 1 root root 2404 Sep 18 14:06 rmcat
> > > -----------------------------------------------------------------
> > >
> > > Maybe I shouldn't be putting things in /etc/xinetd.d/support?
> > >
> > > Dalius
> > >
> > >
> > > _______________________________________________
> > > Bug-gnats mailing list
> > > Bug-gnats@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/bug-gnats
> > >
> >
> >...RickM...
> >
> >
> >_______________________________________________
> >Bug-gnats mailing list
> >Bug-gnats@gnu.org
> >http://mail.gnu.org/mailman/listinfo/bug-gnats
>
...RickM...
_______________________________________________
Bug-gnats mailing list
Bug-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnats