* file permissions
@ 2006-04-30 0:28 evaristegalois
0 siblings, 0 replies; 3+ messages in thread
From: evaristegalois @ 2006-04-30 0:28 UTC (permalink / raw)
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?
Thanks
--evaristegalois
--
View this message in context: http://www.nabble.com/file-permissions-t1531279.html#a4160026
Sent from the Emacs - Help forum at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org>]
* Re: file permissions
[not found] <mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org>
@ 2006-04-30 3:58 ` Pascal Bourguignon
2006-05-01 12:50 ` Tim X
1 sibling, 0 replies; 3+ messages in thread
From: Pascal Bourguignon @ 2006-04-30 3:58 UTC (permalink / raw)
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?
Either you can set your global umask (in ~/.profile or ~/.bashrc),
or you can set only emacs' umask with:
(let ((r 4)(w 2)(x 1)(u 64)(g 8)(o 1))
(set-default-file-modes (+ (* u (+ r w x)) (* (+ g o) (+ r x)))))
in your ~/.emacs
--
__Pascal Bourguignon__ http://www.informatimago.com/
Wanna go outside.
Oh, no! Help! I got outside!
Let me back inside!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file permissions
[not found] <mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org>
2006-04-30 3:58 ` Pascal Bourguignon
@ 2006-05-01 12:50 ` Tim X
1 sibling, 0 replies; 3+ messages in thread
From: Tim X @ 2006-05-01 12:50 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-01 12:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-30 0:28 file permissions evaristegalois
[not found] <mailman.1140.1146358243.9609.help-gnu-emacs@gnu.org>
2006-04-30 3:58 ` Pascal Bourguignon
2006-05-01 12:50 ` Tim X
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).