all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
Subject: Re: file permissions
Date: Mon, 01 May 2006 22:50:50 +1000	[thread overview]
Message-ID: <877j55zz6d.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org

evaristegalois <evaristegalois@hotmail.com> writes:

> This is probably a simple problem but I can't find anything on it in the
> manual. 
>
> I have emacs version 21 on my ubuntu (linux) computer. Everytime I save a
> file in emacs it is saved with file permissions that allow me to read, write
> and execute the file, but nobody else. Then I upload the file on the net to
> use it on a different computer and can't access it because I am forbidden
> access because I am no longer ``myself'' on a different computer. Right now
> I change the file permissions by hand using the chmod command. 
>
> But for convenience I would like Emacs to save my files right away as files
> that can be read, written to or executed by anybody. How can I accomplish
> this?
>

There are a couple of ways to address this issue. However, I'm a bit
confused regarding your description. 

When you upload a file to another account on a different computer, the
file should be owned by the remote account owner (i.e. your identity
on the remote system). As the file is owned by the remote account, it
should be possible as the remote user identity to modify its mode. In fact, I
would have thought the file would have recieved whatever the umask
setting is of the remote user account. 

What method are you using to transfer the file to the remote system?
What does a long directory listing show as the owner, group and
permissions of the file on the remote system once it has been
transferred?

The simple solution is to change your umask on your originating system
in your .profile (or whatever the init file for your shell is).
However, I think this is not a good solution as it will reduce your
privacy/security on the source system - to what extent that is an
issue only you can judge. However, I suspect there is a better
solution then this quick 'fix'. 

Tim
>
>

-- 
tcross (at) rapttech dot com dot au

  parent reply	other threads:[~2006-05-01 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org>
2006-04-30  3:58 ` file permissions Pascal Bourguignon
2006-05-01 12:50 ` Tim X [this message]
2006-04-30  0:28 evaristegalois

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877j55zz6d.fsf@tiger.rapttech.com.au \
    --to=timx@nospam.dev.null \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.