On 2017-03-03, Gary Johnson wrote:
> On 2017-03-03, Christian Brabandt wrote:
> > Hi Gary!
> >
> > On Do, 02 Mär 2017, Gary Johnson wrote:
> >
> > > On 2017-03-02, Gary Johnson wrote:
> > >
> > > > cd ../runtime/doc; if test -z "" -a -f tags; then \
> > > > mv -f tags tags.dist; fi
> > > > mv: cannot move ?tags? to ?tags.dist?: Permission denied
> > >
> > > I tried the mv command by itself.
> > >
> > > $ cd runtime/doc
> > > $ ll tags
> > > -rw-r--r-- 1 gary swgroup 317378 Mar 2 15:29 tags
> > > $ sudo mv -f tags tags.dist
> > > mv: cannot move ?tags? to ?tags.dist?: Permission denied
> > > $ mv -f tags tags.dist
> > >
> > > So I can execute the mv as myself, but not as the sudo user. As
> > > this used to work, I wonder if the Vim make has changed or if the
> > > characteristics of the sudo user on this system have changed.
> >
> > As what user is sudo running? What is the permission of the runtime/doc
> > directory and finally, since you already seem to have write access to
> > the required directory, why run with sudo?
>
> I don't know what user sudo runs as, or what the permissions of
> runtime/doc are. I will find out tomorrow at work.
Sudo is running as user root, according to whoami.
My home directory is NFS mounted. According to the Linux system
administrator here, root does not have superuser permissions on an
NFS mount. Consequently, root does not have permission to rename
a file in runtime/doc when runtime/doc was created by me under my
home directory with permissions 755:
drwxr-xr-x 2 gary swgroup 4096 Mar 8 16:41 runtime/doc
The system administrator says that this is normal, expected
behavior. However, it worked fine from March 8, 2016, through
January 30, 2017, and first failed on March 2, 2017. So something
changed between January 30 and March 2.
I tried to build and install Vim 8.0.271, the last version that
I installed without this problem, and it also failed with the same
error. So it does appear that it was this system and not Vim that
changed to cause the problem.
The problem can be fixed by changing the permissions on runtime/doc
to 755.
I'm working with the system administrator to find out what changed,
but I don't know that I'll ever find out.
Regards,
Gary
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.