[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 01/08/17 18:02, mr meowski wrote:
On 01/08/17 13:10, Julian Hall wrote:Here we go again.. having had to replace the NAS HDs the permissions are playing up again for some Office files. Not the slightest clue why but it's the same problem as last time. Again it's only Office files. So far I have tried following the instructions from last time: Cerce is the desktop PC. The Shared folder on the NAS is CASSIOPEIA and the problems are on that. The problem folder is primarily Finances, however I have also just found that my Word folder has some files with the old 1026 user permissions on them which is weird. This is the fstab segment in case that is relevant: # automount CASSIOPEIA on NAS [General files] 192.168.1.3:/volume1/CASSIOPEIA /media/julian/CASSIOPEIA nfs rsize=8192,wsize=8192,timeo=70,intr # automount DIANA on NAS [Graphics files] 192.168.1.3:/volume1/DIANA /media/julian/DIANA nfs rsize=8192,wsize=8192,timeo=70,intr # automount PERSEPHONE on NAS [Video files] 192.168.1.3:/volume1/PERSEPHONE /media/julian/PERSEPHONE nfs rsize=8192,wsize=8192,timeo=70,intr All three mount automatically which is my preferred behaviour. If for any reason the NAS is not on, boot obviosuly takes longer as system.d decides to time out. So far with the current problem I have: julian@Cerce sudo chmod 777 Finances julian@Cerce sudo chown -R julian:julian Finances julian@Cerce sudo cp -avr Finances ~/Desktop/ julian@Cerce cd ~/Desktop/Finances julian@Cerce ls -alh julian@Cerce ~/Desktop/Finances $ ls -alh total 2.1M drwxrwxrwx 9 julian julian 4.0K Aug 1 2017 . drwxr-xr-x 3 julian julian 4.0K Aug 1 11:26 .. -rwxrwxrwx 1 julian julian 164K Jul 16 22:46 COMPLETE_SAS_WAR_DIARY_ORDER_FORM.pdf drwxrwxrwx 6 julian julian 4.0K Jul 16 22:46 Credit Card drwxrwxrwx 2 julian julian 4.0K Jul 21 20:53 @eaDir -rwxrwxrwx 1 julian julian 68K Jul 16 22:46 FoneFunShop .pdf -rwxrwxrwx 1 julian julian 190K Jul 16 22:46 IKEA _ IKEA Checkout.pdf -rwxrwxrwx 1 julian julian 22K Jul 16 22:46 Julian Hall Savings-Pensions.doc -rwxrwxrwx 1 julian julian 239K Jul 16 22:46 LV closing statement.jpg -rwxrwxrwx 1 julian julian 41 Jul 16 22:46 Natwest.txt -rwxrwxrwx 1 julian julian 58 Jul 16 22:46 NWDPIN.txt drwxrwxrwx 9 julian julian 4.0K Aug 1 2017 O2 Bills drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 Pensions -rwxrwxrwx 1 julian julian 23 Jul 16 22:46 Principality.txt -rwxrwxrwx 1 julian julian 177K Jul 16 22:46 SAS_WAR_DIARY_ORDER_FORM.pdf -rwxrwxrwx 1 julian julian 27K Jul 16 22:46 Savings-Pensions.doc drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 Shares -rwxrwxrwx 1 julian julian 164 Jul 16 22:46 student loan.txt drwxrwxrwx 11 julian julian 4.0K Aug 1 2017 Swalec -rwxrwxrwx 1 julian julian 574K Jul 16 22:46 towrylaw_julian2.jpg -rwxrwxrwx 1 julian julian 536K Jul 16 22:46 towrylaw_julian.jpg drwxrwxrwx 12 julian julian 4.0K Aug 1 2017 Virgin Bills Then the subfolder Swalec julian@Cerce ~/Desktop/Finances $ cd Swalec/ julian@Cerce ~/Desktop/Finances/Swalec $ ls -alh total 792K drwxrwxrwx 11 julian julian 4.0K Aug 1 12:03 . drwxrwxrwx 9 julian julian 4.0K Aug 1 2017 .. -rwxrwxrwx 1 julian julian 203K Jul 16 22:46 170105E.pdf -rwxrwxrwx 1 julian julian 121K Jul 16 22:46 170105G.pdf -rwxrwxrwx 1 julian julian 203K Jul 16 22:46 170322E.pdf -rwxrwxrwx 1 julian julian 120K Jul 16 22:46 170322G.pdf drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2011 drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2012 drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2013 drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2014 drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2015 drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 2016 drwxrwxrwx 2 julian julian 4.0K Jul 21 20:53 @eaDir drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 FIT -rwxrwxrwx 1 julian julian 75K Aug 1 11:43 Gas-Electric 2017.ods -rwxrwxrwx 1 julian julian 20K Jul 16 22:46 Solar Production 2017.xls drwxrwxrwx 3 julian julian 4.0K Aug 1 2017 Spreadsheets All permissions look fine, files open properly. However, copied back to CASSIOPEIA and Gas-Electric 2017.ods for example says it is already open and will only open Read Only. The permissions still look correct - julian:julian - and no lock files are in evidence. I haven't tried fixing the Word folder yet to get one done at a time. Any suggestions please? Kind regards, JulianOk, it's weird that the same problem has popped up again - I'm going to guess it's the Synology NAS that is doing something strange here. Can you clarify 'replacing the disks'? As in, you've just completely replaced all the drives in the NAS and rebuilt the array and copied all your data fresh from Cerce? I can't exactly follow what you've done here but it's subtly wrong:julian@Cerce sudo chmod 777 Finances julian@Cerce sudo chown -R julian:julian Finances julian@Cerce sudo cp -avr Finances ~/Desktop/ julian@Cerce cd ~/Desktop/Finances julian@Cerce ls -alhMake the copy *first* before you start nuking perms/owns! sudo cp -avr Finances ~/Desktop/ Operate on the new copy leaving the originals intact: cd ~/Desktop sudo chmod -R 777 Finances sudo chown -R julian:julian Finances ls -alh Finances You missed the recursive flag on the chmod command by the looks of it. Also check your original Finance folder because if you copied that command sequence verbatim from your terminal session you've accidentally slightly clobbered it... I really don't recommend 'fixing' things with brute force like this though, although we all do it sometimes of course *cough* If you have just fully repopulated your NAS and are going from scratch with a fresh set of data, it would definitely be worth getting to the bottom of this properly whilst you've got the chance. Cheers PS: Also, as far as I can tell the "intr" options in your fstab have long since been deprecated so should be removed. Your fstab entries do look considerably saner than before though.
Hi.. julian@Cerce ~/Desktop $ sudo chmod -R 777 Finances [sudo] password for julian: julian@Cerce ~/Desktop $ sudo chown -R julian:julian Finances julian@Cerce ~/Desktop $ ls -alh Finances total 2.1M *snip* drwxrwxrwx 11 julian julian 4.0K Aug 1 18:39 Swalec *snip* julian@Cerce ~/Desktop $ cd Finances/Swalec/ julian@Cerce ~/Desktop/Finances/Swalec $ ls -alh total 792K drwxrwxrwx 11 julian julian 4.0K Aug 1 18:39 . drwxrwxrwx 9 julian julian 4.0K Aug 1 18:39 .. -rwxrwxrwx 1 julian julian 203K Jul 16 22:46 170105E.pdf -rwxrwxrwx 1 julian julian 121K Jul 16 22:46 170105G.pdf -rwxrwxrwx 1 julian julian 203K Jul 16 22:46 170322E.pdf -rwxrwxrwx 1 julian julian 120K Jul 16 22:46 170322G.pdf drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2011 drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2012 drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2013 drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2014 drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2015 drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 2016 drwxrwxrwx 2 julian julian 4.0K Aug 1 18:39 @eaDir drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 FIT -rwxrwxrwx 1 julian julian 75K Aug 1 11:43 Gas-Electric 2017.ods -rwxrwxrwx 1 julian julian 20K Jul 16 22:46 Solar Production 2017.xls drwxrwxrwx 3 julian julian 4.0K Aug 1 18:39 Spreadsheets julian@Cerce ~/Desktop/Finances/Swalec $The copy on the desktop still opens correctly but when copied back to the NAS refuses claiming it's already open.
Julian -- The Mailing List for the Devon & Cornwall LUG https://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq