tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.0.28); su protocol changes file permissions


From: Kai Großjohann
Subject: Re: tramp (2.0.28); su protocol changes file permissions
Date: Sat, 25 Jan 2003 10:35:49 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu)

tinu <address@hidden> writes:

> Tramp changes the permissions of a file accessed with the su protocol.
> I access the file as /su:address@hidden:/usr/local/bin/myfile, edit
> it and on saving permissions are changed from 755 to 600.

I think this is not a Tramp-specific problem: Emacs changes the
permissions of all files accessed.  This is because of the backup
strategy: before saving the file foo, Emacs will rename the existing
file to foo~ and then it will create a new file foo.  The new file is
of course created subject to the usual umask settings.

I think you can verify this if you create a file with unusual
permissions, then edit it with Emacs.  (You could give it g-rwx
permissions, for example.)

This Emacs behavior is controlled by the variable backup-by-copying
and its friends.  M-x apropos-variable RET backup RET will give you a
list of variables to tweak.

Does this help?  Or do you think that Tramp should still do something?
-- 
Ambibibentists unite!




reply via email to

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