tinu <[EMAIL PROTECTED]> writes: > Tramp changes the permissions of a file accessed with the su protocol. > I access the file as /su:root@localhost:/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! _______________________________________________ Tramp-devel mailing list [EMAIL PROTECTED] http://mail.nongnu.org/mailman/listinfo/tramp-devel
