Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3D743591.4060405@attbi.com> Date: Mon, 02 Sep 2002 23:07:45 -0500 From: "Cyber.Zombie" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: cygwin AT cygwin DOT com Subject: Re: Can't write .profile from vi References: <20020903034031 DOT D4ED6588D AT ivory DOT research DOT canon DOT com DOT au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit "cat /etc/passwd" and look at your numeric user and group ids. Now do a "ls -aln .profile". I'm betting (given you're on a domain) that the id is not gonna match up with what NT thinks it should be -- and you should do a "mkpasswd -d ..." rather than -l (same using mkgroup). Either that or do a "w!" (or chmod 777) on .profile... luke DOT kendall AT cisra DOT canon DOT com DOT au wrote: >My ~/.profile file is the only one I've found with this problem. >As far a I can see, I have write permission, I am me, but I'm not >allowed to write the file from vi! I have to write it into another >file in my home directory and then cp that on top of .profile! > >$ vi ~/.profile > >-rwxr-xr-x 1 luke Domain U 4327 Aug 30 10:40 /home/luke/.profile >Hit ENTER or type command to continue >uid=11021(luke) gid=10513(Domain Users) groups=10513(Domain Users) >"~/.profile" >"~/.profile" E212: Can't open file for writing >Hit ENTER or type command to continue > >I'm using /usr/bin/vi from the Cygwin installation. > >luke > > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/