D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Changing User ID.

 

On 10/04/17 15:37, M. J. Everitt via list wrote:
On 10/04/17 14:37, Peter Walker via list wrote:
Hi Julian,

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.

Julian

I'm guessing that the files you where using were on some sort of network storage. 
Were they open on the main PC when it died?
A lot of editing apps will maintain a lockfile of some kind and don't like you 
editing the same file twice.
If that is not the case then we need some more information.
1. ls -l on one of the problem files.
2. create a new file in the same directory and ls -l that.
3. How are you mounting the network files?

Cheers,

Pete

Yeah, lock files was my next port of call.... try a 'ls -la' which will
list (long-format, all-files) to see if there's something hidden which
tells office/etc that its "open" when its not. Have had this when
pulling files off a working/live machine to work elsewhere before!!

MJE
Hi Michael,

ls -la gives:

Cerce Swalec # ls -la
total 720
drwxrwxrwx 11   1026 users    4096 Apr 10  2017 .
drwxrwxrwx  9   1026 users    4096 Aug  1  2016 ..
-rw-r--r--  1 julian julian 207411 Jan  5 21:20 170105E.pdf
-rw-r--r--  1 julian julian 123835 Jan  5 21:21 170105G.pdf
-rw-r--r--  1 julian julian 206875 Mar 22 21:55 170322E.pdf
-rw-r--r--  1 julian julian 122744 Mar 22 21:56 170322G.pdf
drwxr-xr-x  2 julian julian   4096 Jan  3  2016 2011
drwxr-xr-x  3 julian julian   4096 Jul 25  2016 2012
drwxr-xr-x  3 julian julian   4096 Jul 25  2016 2013
drwxr-xr-x  2 julian julian   4096 Apr  1  2016 2014
drwxr-xr-x  3 julian julian   4096 Jul 25  2016 2015
drwxr-xr-x  2 julian julian   4096 Jan  4 16:39 2016
drwxrwxrwx  2 root   users    4096 Jul 25  2016 @eaDir
drwxr-xr-x  2 julian julian   4096 Jan  4 16:40 FIT
-rw-r--r--  1 julian julian      0 Apr 10  2017 Solar Production 2017.ods
-rw-r--r--  1 julian julian  22528 Mar  6 01:11 Solar Production 2017.xls
drwxr-xr-x  2 julian julian   4096 Apr 10 16:07 Spreadsheets

Cheers,

Julian

--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq