Lsyncd with non-root user

Hello everyone!

I'm trying to use the Lsyncd with a non-root User, but I'm having some problems.

With the root User works perfectly.

When disabled the Root Login (PermitRootLogin no) the Lsyncd does not.

This is my configuration lsyncd.conf.lua

settings {

logfile = "/var/log/lsyncd.log",

statusFile = "/var/log/lsyncd-status.log"

}

sync{

default.rsyncssh,

delete = false,

insist,

source="/var/www",

host="my private IP",

targetdir="/var/www",

rsync = {

archive = true,

perms = true,

owner = true,

_extra = {"-a"},

},

delay = 5,

maxProcesses = 4,

ssh = {

port = 22

}

}

Any ideas about this problem?

Thank you guys

1 Reply

So with which user you are trying to run this script ? The user have permission to access all files you have mentioned in the script ?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct