• Re: dictd?

    From Greg Wooledge@21:1/5 to David Chmelik on Wed Jun 19 13:20:01 2024
    On Wed, Jun 19, 2024 at 07:51:34 -0000, David Chmelik wrote:
    On Wed, 19 Jun 2024 10:29:58 +0500, Stanislav Vlasov wrote:
    ср, 19 июн. 2024 г. в 06:53, David Chmelik <[email protected]>:
    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

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Stanislav Vlasov on Wed Jun 19 19:40:01 2024
    On Wed, Jun 19, 2024 at 22:15:20 +0500, Stanislav Vlasov wrote:
    ср, 19 июн. 2024 г. в 16:18, Greg Wooledge <[email protected]>:

    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Max Nikulin on Sat Jun 22 17:10:02 2024
    On Thu 20 Jun 2024 at 09:04:29 (+0700), Max Nikulin wrote:
    On 20/06/2024 00:31, Greg Wooledge wrote:
    On Wed, Jun 19, 2024 at 22:15:20 +0500, Stanislav Vlasov wrote:
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)