all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* copying in dired with sudo permissions
@ 2003-10-31 13:47 Leo
  2003-10-31 20:21 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2003-10-31 13:47 UTC (permalink / raw)


hi there

in dired i want to copy file to a directory which only root can write.

in a shell i could do the copying via sudo cp <from> <to>. any idea how 
i can tell dired to use "sudo cp" instead of "cp" and how do i provide 
then the sudo password?

cheers, leo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: copying in dired with sudo permissions
  2003-10-31 13:47 copying in dired with sudo permissions Leo
@ 2003-10-31 20:21 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-10-31 20:21 UTC (permalink / raw)


Leo wrote:

> in dired i want to copy file to a directory which only root can write.
> 
> in a shell i could do the copying via sudo cp <from> <to>. any idea how 
> i can tell dired to use "sudo cp" instead of "cp" and how do i provide 
> then the sudo password?

You don't.  Instead, you specify the file using ange-ftp or tramp syntax, e.g

/root@localhost:/only-root-could-write-this-file.txt


-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-31 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-31 13:47 copying in dired with sudo permissions Leo
2003-10-31 20:21 ` Kevin Rodgers

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.