Closed Nichlas closed 5 years ago
Same problem, can not backup files outside home directory jotta-cli release (jotta-cli version): jotta-cli version 0.4.4986
sudo jotta-cli add /media/erik/data/Data Error: [7] stat /media/erik/data/Data: permission denied
sudo jotta-cli add /home/erik/Data Added /home/erik/Data OK
Same problem here, I can add my home directory, but it will not copy any files:
Path : /home/monteto Files : 0 files / 0bytes Status : Up to date! ---- The following paths could not be backed up ---- /home/monteto => open /home/monteto: permission denied
OK
It doesn't matter if I'm running it as root or user.
Similar problem here, Arch Linux
jotta-cli version
---------------------------
jotta-cli version 0.4.4986
jottad version 0.4.4986
jottad host margretetorp
jottad path /usr/bin/jottad
jottad appdata /var/lib/jottad
---------------------------
I get "Error: [7] stat [...] permission denied" on my folders. I tried changing permissions, adding myself to jottad group and vice versa, but to no avail. Also tried running as user and as root.
Similar, but I have stat permission denied on files and folders... (both as user and root). The trick is that the problem occurs only on NTFS drive mounted with fuse. On linux ext4 partition everything seems fine (as user or root). (No other tests done, as I have no other partition types)
It is important to mention that the stat (when run separately on files or dirs) function works well everywhere, on every file and as every user.
jottad executable : /usr/bin/jottad jottad appdata : /var/lib/jottad jottad version : 0.5.14050 jotta-cli version : 0.5.14050
Linux comp 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 (2019-01-17) x86_64 GNU/Linux
EDIT: Forget my note. I am using rclone now and it works like a charm (for my needs)... I love jottacloud and rclone :) I have synced 160 GB data without a glitch.
imho the jotta-cli shouldn't be forced to run as jottad and rather by the user who initiate it. I am aware that this is a security concern, but I think this should only apply to the daemon.
jotta-cli runs as the user who invoked it. But almost all filesystem interaction is done by jottad which if installed using a deb/rpm package runs as the jottad user.
You can chose to run jottad as any user by downloading the binaries packaged as tar archives from here https://repo.jotta.us/archives/linux/ and running jottad manually.
./jottad
is enough to start it however it might not chose the same applicationdata directory as if it was installed using one of the packages.
You can specify the applicationdata directory using ./jottad datadir /path/to/appdata
. This way you can even have multiple jottad "sessions/installations" ( though not running at the same time ).
But the deb and rpm packages we provide will continue to use the jottad user. This seems to be the safest default option.
Same problem here
Path : /home/wide/macDocs Files : 0 files / 0bytes Status : Up to date! ---- The following paths could not be backed up ---- /home/wide/macDocs => lstat /home/wide/macDocs/.AppleDouble: permission denied
We have added an article about setting permissions on linux so that jottad gets the required access and can backup folders: https://docs.jottacloud.com/jottacloud-command-line-tool/using-the-command-line-tool/jottacloud-cli-and-permissions-on-linux.
If you have any comments/feedback regarding the post please post them to a new issue.
Make sure you are running the latest version of jotta-cli before reporting an issue.
jotta-cli release (
jotta-cli version
): jotta-cli version 0.4.4986jottad version 0.4.4986 jottad host nichlas-desktop jottad path /usr/bin/jottad jottad appdata /var/lib/jottad
Description of problem:
Expected: Expected Jotta to have access to the folder.
jotta-cli status (
jotta-cli status
):