Probably a dumb question.

I am having trouble getting my rsync script to work because it cannot
access /media/jjj/Synology2. The script is:

-rwxrwxr-x   1 jjj  jjj        450 Feb 20 15:08  Rsync_script2.sh

Which has the same settings as the original script, which works fine.

These are the permissions and ownership of the folder:

drwxr-xr-x  3052 jjj jjj 200704 Feb 16 17:35 Synology
d---------     3 jjj jjj   4096 Feb 19 18:14 Synology2

So I did 'sudo su' to #, then 'chmod 777 /media/jjj/Synology2' and then
it appeared as:

drwxrwxrwx     3 jjj jjj   4096 Feb 19 18:14 Synology2

But after I switched back to jjj the permissions went back to
d---------. So I repeated the command as jjj with sudo, and the
permissions went back to full permissions, so I thought I had solved
the problem. Five minutes later I ran the script, and got the same
error message about cd in the script, so I did a ls again and the
permissions had all been removed, even without any action from me.

I tried one more time, and this time I included the full path in the
command, but got the same results.

There are three other folders in /media/jjj, and their permissions
haven't changed for years. What is going on? Why do permissions change
all by themselves?
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to