Discussion:
dictd?
(too old to reply)
David Chmelik
2024-06-19 02:00:01 UTC
Permalink
How can I add a dictionary (I have dictionary.dict.gz & dictionary.index)
to dictd? Apparently doesn't work same as on *BSD UNIX & Slackware GNU/
Linux...
Stanislav Vlasov
2024-06-19 05:40:01 UTC
Permalink
Post by David Chmelik
How can I add a dictionary (I have dictionary.dict.gz & dictionary.index)
to dictd? Apparently doesn't work same as on *BSD UNIX & Slackware GNU/
Linux...
man dictd:
/usr/share/dictd
The default directory for dictd databases (.index and
.dict[.dz] files)

Place files to /usr/share/dictd and run `dictdconfig -w` and restart
dictd service
--
Stanislav
David Chmelik
2024-06-19 08:00:01 UTC
Permalink
Post by Stanislav Vlasov
Post by David Chmelik
How can I add a dictionary (I have dictionary.dict.gz &
dictionary.index)
to dictd? Apparently doesn't work same as on *BSD UNIX & Slackware
GNU/ Linux...
/usr/share/dictd
The default directory for dictd databases (.index and
.dict[.dz] files)
Place files to /usr/share/dictd and run `dictdconfig -w` and restart
dictd service
Thanks! I guess it doesn't work with symbolic links (symlinks) to user
directories/folders though... I used to enter my own directories in
db.list instead of being forced to put everything there and generate that.
Greg Wooledge
2024-06-19 11:20:01 UTC
Permalink
Post by David Chmelik
Post by Stanislav Vlasov
Post by David Chmelik
How can I add a dictionary (I have dictionary.dict.gz &
dictionary.index)
to dictd? Apparently doesn't work same as on *BSD UNIX & Slackware
GNU/ Linux...
/usr/share/dictd
The default directory for dictd databases (.index and
.dict[.dz] files)
Place files to /usr/share/dictd and run `dictdconfig -w` and restart
dictd service
Thanks! I guess it doesn't work with symbolic links (symlinks) to user
directories/folders though...
Doesn't work, how? Do you get permission denied? If that's the case,
it might be something like AppArmor.

Or does dictd have a configuration setting that allows or disallows the
following of symlinks? I did a couple quick searches on
<https://manpages.debian.org/bookworm/dictd/dictd.8.en.html> and didn't
see anything about following symlinks, but it's a *large* page so I
could have missed it.
Stanislav Vlasov
2024-06-19 17:20:01 UTC
Permalink
Post by Greg Wooledge
Post by David Chmelik
Post by Stanislav Vlasov
Place files to /usr/share/dictd and run `dictdconfig -w` and restart
dictd service
Thanks! I guess it doesn't work with symbolic links (symlinks) to user
directories/folders though...
Doesn't work, how? Do you get permission denied? If that's the case,
it might be something like AppArmor.
I create .deb with dictionary and didn't place dict files manually, so
further my assumption.

I think, dictd user have no access to $HOME even without
apparmor/selinux/another acl
ls -ld ~ will show you more.
In my system mode bits on my home dir are `drwx------` so only my user
have access to it.
--
Stanislav
Greg Wooledge
2024-06-19 17:40:01 UTC
Permalink
Post by Stanislav Vlasov
Post by Greg Wooledge
Post by David Chmelik
Post by Stanislav Vlasov
Place files to /usr/share/dictd and run `dictdconfig -w` and restart
dictd service
Thanks! I guess it doesn't work with symbolic links (symlinks) to user
directories/folders though...
Doesn't work, how? Do you get permission denied? If that's the case,
it might be something like AppArmor.
I create .deb with dictionary and didn't place dict files manually, so
further my assumption.
I think, dictd user have no access to $HOME even without
apparmor/selinux/another acl
ls -ld ~ will show you more.
In my system mode bits on my home dir are `drwx------` so only my user
have access to it.
Well, yeah. That's not a default setting, but indeed, if you have
stuff in user home directories that you wanted to share (~/public_html/
directories, or these dictionaries), you'll need to add at least +x
permissions on the home directory(ies) in question.

You still haven't told us what kind of failure you're seeing with your
dictionaries. Is there a specific error message? What does it say?
Max Nikulin
2024-06-20 02:10:01 UTC
Permalink
Post by Greg Wooledge
Post by Stanislav Vlasov
In my system mode bits on my home dir are `drwx------` so only my user
have access to it.
Well, yeah. That's not a default setting
0700 is the current default. See /usr/share/doc/adduser/README.gz and
/usr/share/doc/adduser/NEWS.Debian.gz
David Wright
2024-06-22 15:10:02 UTC
Permalink
Post by Max Nikulin
Post by Greg Wooledge
Post by Stanislav Vlasov
In my system mode bits on my home dir are `drwx------` so only my user
have access to it.
Well, yeah. That's not a default setting
0700 is the current default. See /usr/share/doc/adduser/README.gz and
/usr/share/doc/adduser/NEWS.Debian.gz
I think that's a recent change, with bookworm. And there was some
vacillation while that was testing.

ISTR that long ago, you got the setgid as well, ie r-s.

Cheers,
David.

Loading...