Solved Trying to install 'locate' but failing to add group mlocate

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

MvW

Senior Member
I'm trying to install locate, following these instructions which seem to have worked by executing

Code:
opkg update
opkg install mlocate

Before I can use it, I have to make sure the database is filled, but when running
Code:
updatedb
it is complaining:
Code:
updatedb: can not find group mlocate[/CODE}

To add a group 'mlocate' with the appropriate permissions, I need the package 'addgroup' or 'synogroup' (as suggested alternative) alternative, but both are apparently not available in entware-ng.

Anyone have any pointers how to create the appropriate group? The instructions are not for Merlin but for Padavan, but looking at them, I can hardly image this coudn't be achieved on Merlin as well. Or am I too positive?
 

ColinTaylor

Part of the Furniture
Do you specifically need mlocate? How about using GNU locate instead (findutils-locate)?
 
  • Like
Reactions: MvW

MvW

Senior Member

underdose

Regular Contributor
You need to add the user mlocate to the group file under /etc in order to use the updatedb command.

You can achieve this by creating a group.add file under jffs > configs, with the content mlocate:x:666: . This way, whenever you reboot your router, user mlocate will be added to the group file and you won't need to add again manually.

Image for reference:

mlocate.png
 

MvW

Senior Member
You need to add the user mlocate to the group file under /etc in order to use the updatedb command.

You can achieve this by creating a group.add file under jffs > configs, with the content mlocate:x:666: . This way, whenever you reboot your router, user mlocate will be added to the group file and you won't need to add again manually.

Image for reference:

View attachment 33345

Great solution. I couldn't achieve what I wanted with findutils-locate but with your solution locate from the package mlocate it works like a charm. Thanks for the suggestion!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top