[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 10/04/17 15:32, mr meowski wrote:
On 10/04/17 14:20, Julian Hall via list wrote:Thanks Michael, unfortunately it didn't work as the laptop already has the same UID. Cerce ~ # id julian uid=1000(julian) gid=1000(julian) groups=1000(julian),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),130(sambashare) The output is the same on both machines. I'm at a loss now to understand why it thinks they are different users.It would help to have the result of "ls -alh /path/to/problem/files" but the short answer is to do: chown -R $USER:$USER /path/to/problem/files You might have fixed up your userid on the laptop to match now but the files presumably have inherited some 'dodgy' permission bits, especially if network storage was involved at some point (look out for the dreaded 'nfsuser' permissions for example), as was mentioned elsewhere. You do have actually have +w on the files that are opening readonly right? Cheers
Hi,You've probably seen my reply to Peter by now, but here's the answer to your questions;
Cerce ~ # ls -alh /media/julian/HERA/Finances/Swalec total 724K drwxrwxrwx 11 1026 users 4.0K Apr 10 2017 . drwxrwxrwx 9 1026 users 4.0K Aug 1 2016 .. -rw-r--r-- 1 julian julian 203K Jan 5 21:20 170105E.pdf -rw-r--r-- 1 julian julian 121K Jan 5 21:21 170105G.pdf -rw-r--r-- 1 julian julian 203K Mar 22 21:55 170322E.pdf -rw-r--r-- 1 julian julian 120K Mar 22 21:56 170322G.pdf drwxr-xr-x 2 julian julian 4.0K Jan 3 2016 2011 drwxr-xr-x 3 julian julian 4.0K Jul 25 2016 2012 drwxr-xr-x 3 julian julian 4.0K Jul 25 2016 2013 drwxr-xr-x 2 julian julian 4.0K Apr 1 2016 2014 drwxr-xr-x 3 julian julian 4.0K Jul 25 2016 2015 drwxr-xr-x 2 julian julian 4.0K Jan 4 16:39 2016 drwxrwxrwx 2 root users 4.0K Jul 25 2016 @eaDir drwxr-xr-x 2 julian julian 4.0K Jan 4 16:40 FIT -rw-r--r-- 1 julian julian 76 Apr 10 2017 .~lock.Untitled1.ods# -rw-r--r-- 1 julian julian 22K Mar 6 01:11 Solar Production 2017.xls drwxr-xr-x 2 julian julian 4.0K Apr 10 16:07 Spreadsheets -rw-r--r-- 1 julian julian 0 Apr 10 2017 Untitled1.odsCerce ~ # /media/julian/HERA/Finances/Swalec - hasn't worked either. You'll probably notice the lock file for Untitled1.ods.. OO crashed.. I deleted both as they were only test files. Solar Production 2017.xls still only opens as Read Only.
Cheers, Julian -- The Mailing List for the Devon & Cornwall LUG https://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq