Re: EFS 1.15 bug: efs changes permissions & ownership of files ?

Sandy Rutherford (sandy@math.ubc.ca)
Thu, 15 Oct 1998 12:43:09 -0700 (PDT)


Ronald,

On Thu, 15 Oct 1998 you wrote:

 > I switched from ange-ftp to efs when I moved from emacs-19.34 to
 > xemacs.  Under ange-ftp, if I edited files on the local or remote
 > machines as root, the file permissions and ownership would be
 > preserved through the editing.  With efs, sometimes the file
 > permissions and ownership are preserved, and sometimes they are
 > changed to 0400 and root/staff.  I much prefer the ange-ftp behavior,
 > and would like to know how I can configure efs to respect and preserve 
 > permissions and ownership.  Thanks for your attention.


 > Ronald Florence                 Maple Lawn Farm, Stonington, CT
 > ron@mlfarm.com                  http://www.connix.com/~mlfarm


The relevant variables for file modes are:

(defvar efs-root-umask nil
  "*umask to use for root logins.")

(defvar efs-anonymous-umask nil
  "*umask to use for anonymous logins.")

(defvar efs-umask nil
  "*umask to use for efs sessions.
If this is nil, then the setting of umask on the local host is used.")

efs shouldn't muck about with file ownership.

Beware that not all FTP servers support chmod commands, so it may not
be possible to preserve file modes.

When you hit upon a case where the file ownerships or modes have
changed to something that you didn't expect, check the *ftp ....*
buffer.  If there are any chmod commands in there, then efs is to
blame and you should send in a bug report with the settings of the
above variables and the relevant section of the *ftp ...* buffer.  If
there are no chmod commands, then the fault is likely with your FTP
server and there is not much that efs can do.


-- 

Sandy Rutherford
Department of Mathematics
University of British Columbia
Vancouver, British Columbia
V6T 1Z2
Canada
sandy@math.ubc.ca