ariel
(ariel)
March 16, 2018, 9:29am
1
I want to backup my alerts settings, so i command “mongodump -h dbhost -d dbname -o dbdirectory”, but I have some trouble
this my Error message
and i command" sudo apt-get install mongodb-clients "
this my Error message
and i command" sudo apt-get update "
this my Error message
Looking forward for your reply.
Thank you
jochen
(Jochen)
March 16, 2018, 10:06am
2
Make sure that the name resolution on that machine is working, /etc/resolv.conf
, resolvconf
, etc.
1 Like
ariel
(ariel)
March 29, 2018, 5:38am
3
Thank you @jochen , I successfully downloaded mongodb tools
Now have to backup , But how do I solve this problem?
Looking forward for your reply.
Thank you
jochen
(Jochen)
March 29, 2018, 7:29am
4
Make sure that the system user you’re running the command with has permission to write into the directory you’ve given to mongodump
.
Check the output of the following command:
# namei -l /etc/graylog/backup/
ariel
(ariel)
March 29, 2018, 7:49am
5
Hi @jochen :
Thank you, I check the command
Is this has permission ?
Looking forward for your reply.
Thank you
jochen
(Jochen)
March 29, 2018, 8:02am
6
ariel:
Is this has permission ?
As you can see from the output, only the user “root” is allowed to write into the directory /etc/graylog/backup/
.
For an introduction to Linux file system permissions, please refer to
Author: JT Smith Mayank writes “In a secure multi-user environment like Linux, file permissions access rights are defined. However, these access rights can cause problems for new users who are used to the access-anything style of DOS/Windows. This is...
1 Like
ariel
(ariel)
March 29, 2018, 8:43am
7
hi @jochen
Thank you for your answer
and I want to ask What command can make me get permission?
Let (mongodump -h 127.0.0.1 -d graylog -o /etc/graylog/backup) can run?
Looking forward for your reply.
Thank you
jochen
(Jochen)
March 29, 2018, 9:03am
8
Either use a different directory, run the command as “root”, or change the permissions of /etc/graylog/backup/
with chown
or chgrp
.
1 Like
ariel
(ariel)
March 29, 2018, 9:34am
9
hi @jochen
Thank you very much !!! I succeed to make it run
system
(system)
Closed
April 12, 2018, 9:34am
10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.