Thread View: news.software.readers
11 messages
11 total messages
Started by Tommy Wareing
Thu, 16 Sep 1993 12:24
Tin Indexes (Daemon and User)
Author: Tommy Wareing
Date: Thu, 16 Sep 1993 12:24
Date: Thu, 16 Sep 1993 12:24
21 lines
1580 bytes
1580 bytes
I've just got round to installing the tin indexing daemon on our
setup, and lo! we've got a small horde of index files lurking in
the news directory. Thinking that this was working, I deleted all
my old $HOME/.tin.index files. So far so good.
But when I read a group, tin says that it's indexing the group,
and promptly creates a new index file in my account. This then
takes up a lot of unnecessary(?) space.
I'm reading news locally (ie. on the machine with the index files),
not via nntp.
What am I doing wrong?
--
_________________________ ________________________________
/ Tommy Wareing \ / Dying ain't much of a living, \
| p0070621@brookes.ac.uk X When you're out and on the run,|
\ 0865-483389 / \ Dying ain't much of a living, |
~~~~~~~~~~~~~~~~~~~~~~~~~ \ When you're young /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Tin Indexes (Daemon and User)
Author: Pope Clifton
Date: Thu, 16 Sep 1993 20:29
Date: Thu, 16 Sep 1993 20:29
20 lines
1631 bytes
1631 bytes
Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote: : I've just got round to installing the tin indexing daemon on our : setup, . . . : But when I read a group, tin says that it's indexing the group, : and promptly creates a new index file in my account. This then : takes up a lot of unnecessary(?) space. : I'm reading news locally (ie. on the machine with the index files), : not via nntp. The tin executable wants to be installed as a "setuid" executable with the same owner as the index files. Use "make install_suid" or the equivalent to do the final installation. -- Clifton -- cliftonr@netcom.com is Clifton Royston is Pope of the Church of the Subgenius in Paradise is a happily married man is a programmer is a structural fiction. "If we were materialists we would hoard things. We are not. We are nihilists, and we pride ourselves on the rate at which we destroy." (Tom Boutell)
Re: Tin Indexes (Daemon and User)
Author: Tommy Wareing
Date: Fri, 17 Sep 1993 09:58
Date: Fri, 17 Sep 1993 09:58
38 lines
2347 bytes
2347 bytes
Pope Clifton (cliftonr@netcom.com) wrote: > The tin executable wants to be installed as a "setuid" executable with the > same owner as the index files. Use "make install_suid" or the equivalent to > do the final installation. > -- Clifton Maybe I'm just being awkward :-) The Makefile insists that the tin owner is news. In this case, it's not: it's me. Yes, I've got UseNet setup with all the files in my account... (I've also got no quota :-) I just tried installing tin as a setuid (having hacked the Makefile), and then ran it, but it still creates the files in my home directory. I've just had a look in the init.c file, and I've found that it determines whether to use local or central indexing according to tin_uid == read_uid So it'll work for everyone else then? (I hope...) but not for me. -- _______________ ________________________ _____________ < Tommy Wareing X p0070621@brookes.ac.uk X 0865-483389 > =============== ======================== ============= / If it's something I want, then it's something I need.\ | I wasn't built for comfort, I was built for speed! | \ -- Jim Steinman, Bad for Good / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- _________________________ __________________________________________ / Tommy Wareing \ / I've been looking for an original sin, \ | p0070621@brookes.ac.uk X One with a twist and a bit of a spin | \ 0865-483389 / \ -- Pandora's Box, Jim Steinman / ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Tin Indexes (Daemon and User)
Author: Pope Clifton
Date: Fri, 17 Sep 1993 20:31
Date: Fri, 17 Sep 1993 20:31
25 lines
2013 bytes
2013 bytes
Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote: : The Makefile insists that the tin owner is news. In this case, it's : not: it's me. Yes, I've got UseNet setup with all the files in my : account... (I've also got no quota :-) : I just tried installing tin as a setuid (having hacked the Makefile), : and then ran it, but it still creates the files in my home directory. : I've just had a look in the init.c file, and I've found that it determines : whether to use local or central indexing according to : tin_uid == read_uid You're right. This is a poor way. It has occurred to me that this also works against users having private copies of tin (e.g. the latest version) which are nonetheless using a central index maintained by the news admins. (I.e. I would like to use the central index in read-only mode.) Any ideas about a better simple test to use? -- Clifton -- cliftonr@netcom.com is Clifton Royston is Pope of the Church of the Subgenius in Paradise is a happily married man is a programmer is a structural fiction. "If we were materialists we would hoard things. We are not. We are nihilists, and we pride ourselves on the rate at which we destroy." (Tom Boutell)
Re: Tin Indexes (Daemon and User)
Author: Tom J Parry
Date: Mon, 20 Sep 1993 04:58
Date: Mon, 20 Sep 1993 04:58
19 lines
1669 bytes
1669 bytes
Pope Clifton (cliftonr@netcom.com) wrote: > You're right. This is a poor way. It has occurred to me that this also > works against users having private copies of tin (e.g. the latest version) > which are nonetheless using a central index maintained by the news admins. > (I.e. I would like to use the central index in read-only mode.) > Any ideas about a better simple test to use? > -- Clifton You could find the bit of code where it sets index_dir (or similar) and then hack it! I've had to do that on one installation. The reason I don't like running tin setuid is that if it is running setuid something then anybody can become that user VERY easily. (even by mistake!) -- Tom J Parry. Your reality is a figment of my imagination.
Re: Tin Indexes (Daemon and User)
Author: Tommy Wareing
Date: Mon, 20 Sep 1993 09:04
Date: Mon, 20 Sep 1993 09:04
26 lines
2115 bytes
2115 bytes
Pope Clifton (cliftonr@netcom.com) wrote: > Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote: > : I've just had a look in the init.c file, and I've found that it determines > : whether to use local or central indexing according to > : tin_uid == read_uid > You're right. This is a poor way. It has occurred to me that this also > works against users having private copies of tin (e.g. the latest version) > which are nonetheless using a central index maintained by the news admins. Which in a way is what I'm doing: I'm running both tin and news though :-) > (I.e. I would like to use the central index in read-only mode.) > Any ideas about a better simple test to use? What I'm finally doing is letting everyone else run tin in setuid mode, so they get the central index, whilst I've linked my .tin/.index directory to the central one. It works... just ;-) -- _______________ ________________________ _____________ < Tommy Wareing X p0070621@brookes.ac.uk X 0865-483389 > =============== ======================== ============= / If it's something I want, then it's something I need.\ | I wasn't built for comfort, I was built for speed! | \ -- Jim Steinman, Bad for Good / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Tin Indexes (Daemon and User)
Author: (HCST) Earle F. Ake
Date: Mon, 20 Sep 1993 12:54
Date: Mon, 20 Sep 1993 12:54
26 lines
1711 bytes
1711 bytes
Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote: : I've just got round to installing the tin indexing daemon on our : setup, and lo! we've got a small horde of index files lurking in : the news directory. Thinking that this was working, I deleted all : my old $HOME/.tin.index files. So far so good. : But when I read a group, tin says that it's indexing the group, : and promptly creates a new index file in my account. This then : takes up a lot of unnecessary(?) space. : I'm reading news locally (ie. on the machine with the index files), : not via nntp. : What am I doing wrong? Sounds like tin was just installed and not installed-setuid. It checks to see if the setuid bit is on before it uses or writes to the global index files. -Earle -- Earle Ake akee@wpdis11.wpafb.af.mil Hassler Communication Systems Technology MSC/SID WPAFB, Ohio 257-4499/4544 DSN: 787-4499/4544
Re: Tin Indexes (Daemon and User)
Author: The System Manager
Date: Wed, 22 Sep 1993 08:43
Date: Wed, 22 Sep 1993 08:43
37 lines
2711 bytes
2711 bytes
Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote: > I've just got round to installing the tin indexing daemon on our > setup, and lo! we've got a small horde of index files lurking in > the news directory. Thinking that this was working, I deleted all > my old $HOME/.tin.index files. So far so good. > But when I read a group, tin says that it's indexing the group, > and promptly creates a new index file in my account. This then > takes up a lot of unnecessary(?) space. > I'm reading news locally (ie. on the machine with the index files), > not via nntp. > What am I doing wrong? > -- >>>>>>>>>> I'm joining my voice to yours, i got the same heck, and i keep >>>>>>>>>> wondering , any explaination there !!?? +!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+ Ihab H. M. ISMAIL friend of all, foe of few ! ****************************************************************************** * _ | | | _ | | | | | * * / \ | | / \ | | /| | | | \ * * Q___|____\ __| | | . |__Q____\ __| | (_|__|__| | Q_|__|__|___) * * ___/ : / |___| / ___/ . * * _/ _/ * * In the name of "ALLAH", the most Beneficent, the most Merciful * ****************************************************************************** Siemens Corporation ,ZFE-OI-2 Ihab.Ismail@zfe.siemens.de Corporate Research and Development OR: ihab@egypt.zfe.siemens.de Informations Management and Organisation. ph: (+49)(89)636-49643 Otto-Hahn-Ring 6 Fax: (+49)(89)63640144 81739 Munich, Germany-Europe. ******************************************************************************
Re: Tin Indexes (Daemon and User)
Author: Mark Buckaway
Date: Tue, 28 Sep 1993 22:40
Date: Tue, 28 Sep 1993 22:40
22 lines
1811 bytes
1811 bytes
Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote:
: What I'm finally doing is letting everyone else run tin in setuid mode, so
: they get the central index, whilst I've linked my .tin/.index directory to
: the central one. It works... just ;-)
In my case, I made an alias in the .profile's of all users:
alias tin="tin -I /usr/spool/news/.index"
No links required here.
My 2 cents.
Mark
--
==============================================================================
Mark Buckaway | root@datasoft.north.net | DataSoft Communications
DataSoft Communications | uunorth!datasoft!root | 62 Rock Fernway
System Administrator | Voice: +1 416 756 4497 | Willowdale, ON M2J 4N5
==============================================================================
"UNIX and OS/2 are operating systems. Windows is a shell, and
DOS is an boot virus"
==============================================================================
Re: Tin Indexes (Daemon and User)
Author: Serge Robyns
Date: Thu, 30 Sep 1993 10:26
Date: Thu, 30 Sep 1993 10:26
97 lines
3701 bytes
3701 bytes
Mark Buckaway (mark@datasoft.com) wrote:
:>Tommy Wareing (p0070621@oxford-brookes.ac.uk) wrote:
:>: What I'm finally doing is letting everyone else run tin in setuid mode, so
:>: they get the central index, whilst I've linked my .tin/.index directory to
:>: the central one. It works... just ;-)
:>In my case, I made an alias in the .profile's of all users:
:>alias tin="tin -I /usr/spool/news/.index"
:>No links required here.
Ok,
I used the the same kind of work-around for 1.2 & 1.21.
But sometimes users just entered tin the hard way and then ....
So with 1.22 I patched main.c & init.c to have a FIXED_INDEX option.
It will disbale the -I option and use the INDEX_NEWSDIR for the
index_newsdir.
vvvv main.c vvvv
#if !defined(NNTP_ONLY) && !defined(FIXED_INDEX)
case 'I':
my_strncpy (index_newsdir, optarg, sizeof (index_newsdir));
my_mkdir (index_newsdir, 0777);
break;
#endif
^^^^ main.c ^^^^
This will cut off the -I option.
vvvv init.c vvvv
#ifdef INDEX_DAEMON
joinpath (lock_file, TMPDIR, LOCK_FILE);
strcpy (newsrc, news_active_file); /* default so all groups are indexed */
joinpath (active_times_file, rcdir, "active.times");
joinpath (index_newsdir, get_val ("TIN_INDEXDIR", spooldir), INDEX_NEWSDIR);
if (stat (index_newsdir, &sb) == -1) {
my_mkdir (index_newsdir, 0755);
}
#else
# ifdef HAVE_LONG_FILENAMES
sprintf (lock_file, "%stin.%s.LCK", TMPDIR, userid);
# else
sprintf (lock_file, "%s%s.LCK", TMPDIR, userid);
# endif
if (stat (rcdir, &sb) == -1) {
created_rcdir = TRUE;
my_mkdir (rcdir, 0755);
}
# ifdef FIXED_INDEX
joinpath (index_newsdir, get_val ("TIN_INDEXDIR", spooldir), INDEX_NEWSDIR);
# else
if (tin_uid != real_uid) {
joinpath (index_newsdir, get_val ("TIN_INDEXDIR", spooldir), INDEX_NEWSDIR);
set_tin_uid_gid ();
if (stat (index_newsdir, &sb) == -1) {
my_mkdir (index_newsdir, 0777);
}
set_real_uid_gid ();
} else if (stat (index_newsdir, &sb) == -1) {
my_mkdir (index_newsdir, 0777);
}
# endif /* FIXED_INDEX */
if (stat (postfile, &sb) == -1) {
if ((fp = fopen (postfile, "w")) != NULL) {
fclose (fp);
}
}
if (stat (attributes_file, &sb) == -1) {
write_attributes_file ();
}
/*
* Read user config file ~/.tin/tinrc
*/
read_rcfile ();
#endif /* INDEX_DAEMON */
^^^^ init.c ^^^^
This will used the INDEX_NEWSDIR as default index directory.
PS: Iain, can you insert such a kind of option for your next release.
^ ^
o o
-------oOO-(_)-OOo-------------------------------------------------------------
Serge Robyns - System Engineer and Postmaster
Denkart n.v.
Molenweg 107
B-2830 Willebroek - Belgium
Voice: +32 (3) 866-0022 Fax: +32 (3) 866-0301
e-mail: sr@denkart.be (postmaster@denkart.be)
Re: Tin Indexes (Daemon and User)
Author: Patrick Goebel
Date: Fri, 01 Oct 1993 19:00
Date: Fri, 01 Oct 1993 19:00
21 lines
1847 bytes
1847 bytes
In the version of TIN I am running (1.22) there is an environment variable called TIN_INDEXDIR that can be set to point to the location of the global index file. For example, in root's crontab I periodically run the command: su news -c '/usr/local/etc/tind -I /var/spool/news/.tin/.index' Then, in each user's .cshrc I have a line that reads: setenv TIN_INDEXDIR /var/spool/news/.tin Note how you don't include the ".index" part of the path in the environment variable. This seems to work for us. Cheers, patrick -- Patrick Goebel E-MAIL: patrick@casbs.Stanford.EDU Network Administrator VOICE: (415) 321-2052 CASBS, 202 Junipero Serra Blvd. FAX: (415) 321-1192 Stanford, CA 94305 BEEPER: Temporarily Out of Order...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads