[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU emacs locks files modified with CVS

From: Kevin Rodgers
Subject: Re: GNU emacs locks files modified with CVS
Date: Mon, 15 Dec 2003 11:04:42 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Pepijn Kenter wrote:

When loged in as user1 type:
su user2
emacs # edit, exit and save the changes
emacs # is now read only.

I can not edit the second time because it is apperently locked by user2 (as shown in the status line? of emacs). File permissions are correct and the onwner of (still) is user2.

After some googling I think the possible cause is that emacs is inconsistent in the way it handles the USER and LOGNAME variables. Indeed USER is set to user2 whereas LOGNAME is still user1. When I change LOGNAME to user2 the problem disappears.

So, what to do?

If you want a login shell as user2, use `su - user2`.

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]