D&C GLug - Home Page

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

Re: [LUG] Changing User ID.

 

On 02/05/17 22:48, Julian Hall wrote:
>
> Cerce Books # cd Mine/Just\ Ordinary\ Men/Main\ Story/
> Cerce Main Story # ls -alh DOC
> total 2.7M
> drwxr-xr-x 2 julian julian 4.0K May  2 14:48 .
> drwxr-xr-x 5 julian julian 4.0K Jan 19 17:56 ..
> -rwxrwxrwx 1   1026 users   51K Sep 21  2012 Ordinary Men_ch10.doc
> -rwxrwxrwx 1   1026 users   48K Sep 22  2012 Ordinary Men_ch11.doc
> -rwxrwxrwx 1   1026 users   51K Sep 21  2012 Ordinary Men_ch12.doc
> -rwxrwxrwx 1   1026 users   47K Sep 21  2012 Ordinary Men_ch13.doc
> -rwxrwxrwx 1   1026 users   50K Sep 21  2012 Ordinary Men_ch14.doc
> -rwxrwxrwx 1   1026 users   49K Sep 22  2012 Ordinary Men_ch15.doc
> -rwxrwxrwx 1   1026 users   50K Sep 22  2012 Ordinary Men_ch16.doc
> -rwxrwxrwx 1   1026 users   52K Sep 21  2012 Ordinary Men_ch17.doc
> -rwxrwxrwx 1   1026 users   55K Sep 22  2012 Ordinary Men_ch18.doc
> -rwxrwxrwx 1   1026 users   46K Sep 22  2012 Ordinary Men_ch19.doc
> -rwxrwxrwx 1   1026 users   44K Sep 21  2012 Ordinary Men_ch1.doc
> -rwxrwxrwx 1   1026 users   42K Sep 22  2012 Ordinary Men_ch20.doc
> -rwxrwxrwx 1   1026 users   53K Oct 22  2012 Ordinary Men_ch21.doc
> -rwxrwxrwx 1   1026 users   48K Oct 30  2012 Ordinary Men_ch22.doc
> -rwxrwxrwx 1   1026 users   51K Nov  7  2012 Ordinary Men_ch23.doc
> -rwxrwxrwx 1   1026 users   46K Nov 17  2012 Ordinary Men_ch24.doc
> -rwxrwxrwx 1   1026 users   50K Nov 19  2012 Ordinary Men_ch25.doc
> -rwxrwxrwx 1   1026 users   50K Dec  1  2012 Ordinary Men_ch26.doc
> -rwxrwxrwx 1   1026 users   39K Sep 21  2012 Ordinary Men_ch2.doc
> -rwxrwxrwx 1   1026 users   45K Sep 21  2012 Ordinary Men_ch3.doc
> -rwxrwxrwx 1   1026 users   43K Sep 21  2012 Ordinary Men_ch4.doc
> -rwxrwxrwx 1   1026 users   47K Sep 21  2012 Ordinary Men_ch5.doc
> -rwxrwxrwx 1   1026 users   46K Sep 21  2012 Ordinary Men_ch6.doc
> -rwxrwxrwx 1   1026 users   44K Sep 21  2012 Ordinary Men_ch7.doc
> -rwxrwxrwx 1   1026 users   41K Sep 21  2012 Ordinary Men_ch8.doc
> -rwxrwxrwx 1   1026 users   40K Sep 21  2012 Ordinary Men_ch9.doc
> -rwxrwxrwx 1   1026 users  430K Sep  7  2012 Ordinary Men.doc
> -rwxrwxrwx 1   1026 users   24K Dec 30  2015 Ordinary Men_Epilogue.doc
> -rwxrwxrwx 1   1024 users  923K Feb 17 17:43 Ordinary Men - Longer.doc
> -rw-r--r-- 1 julian julian  22K Dec 30  2015 Ordinary Men Prologue.doc
> Cerce Main Story # ^C
>
>
<snip snip>

Yeah .. those '1026' and '1024' ids should really be 'julian' I fear,
and I suspect there is some peculiarity going on with the NFS share.

Mr meowski was hoping you could change permissions with your user id,
and perhaps with sudo this /may/ have been possible, but as you've
proven, this is a whole lot more reliable as root, and therefore you
need to be more careful what you specify in the 'chown' command as your
user/group (NB. iirc, both are not always necessary). $USER in this
instance has shlurped 'root' instead of 'julian' as desired... !

I think you've got a lot of options in your NFS mount in /etc/fstab .. I
think I've managed with a very minimal config in the past to the effect
of "nfsvers=3 (to prevent nfs4 chaos) and rsize/wsize=zzz to optimise
transfer sizes. no-auto seems unnecessary if you want to -use- the share
without manually mounting, and 'nouser' is supposed to prevent normal
users from mounting the share themselves, hence requiring root
privileges. Somewhere I think you have a stack of potentially
conflicting options .. you might want to pare down (either by starting
with few/no options, or by reducing down one-by-one) to see which change
helps/breaks your scenario. You may be super-unlucky in that some other
(udisks?) service is not overriding your fstab information which you
-think- is being used, and you should definitely check what options are
*active* when the NFS share is up (simply type 'mount' and look at the
NFS entry's options) might give you a hint as to where to look for the
problem.

HTH, Regards,

Michael.

Attachment: signature.asc
Description: OpenPGP digital signature

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