From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: enabling ido requires sudo authentication Date: Tue, 23 Mar 2010 09:35:34 +0100 Organization: ThierryVolpiatto Message-ID: <87hbo78mg9.fsf@tux.homenetwork> References: <1269325209.18666.26.camel@zerihar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269333738 9330 80.91.229.12 (23 Mar 2010 08:42:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Mar 2010 08:42:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 23 09:42:13 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntzgj-0004rh-1a for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 09:42:13 +0100 Original-Received: from localhost ([127.0.0.1]:55625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntzgh-0001Tx-Ua for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 04:42:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtzeS-00018Z-SX for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 04:39:52 -0400 Original-Received: from [140.186.70.92] (port=38038 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtzeQ-00017k-KE for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 04:39:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtzeO-0001JW-IN for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 04:39:50 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:45311) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtzeO-0001JJ-7e for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 04:39:48 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NtzeL-0003kv-8l for help-gnu-emacs@gnu.org; Tue, 23 Mar 2010 09:39:45 +0100 Original-Received: from 105.77.197-77.rev.gaoland.net ([77.197.77.105]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2010 09:39:45 +0100 Original-Received: from thierry.volpiatto by 105.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2010 09:39:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 87 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 105.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:TvxCFj5r0IuwOTO8RZHyMZArZNk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72457 Archived-At: Hi, Eric Abrahamsen writes: > Hi, > > I'm having a very weird problem: I recently switched from a Mac to > Ubuntu, and at some point during the tweaking and adjusting and fixing, > ido-mode started requiring my administrative password, via tramp. I have > ido turned on via the customize interface, and commenting out: > > '(ido-mode (quote both) nil (ido)) > > in the customize variable list fixes the problem. It also turns off > ido-mode, obviously, and re-enabling it via M-x ido-mode once again > prompts for my sudo password (I see "Password for /sudo:root@mymachine:" > in the minibuffer). > > My password entered, ido-mode is enabled and all is well. This leaves me > with an open buffer called *tramp/sudo root@mymachine*, the contents of > which is this single line: > > (("`/etc/'") 155 0 0 1269322750.0 1269322641.0 1269322641.0 12288.0 > "drwxr-xr-x" t 16386.0 -1) > > This is deeply mysterious to me (I have no open file or dired buffers > under /etc/), but it sure looks meaningful and I hope someone here will > have a clue as to what's going on. > > I have recentf and desktop-mode enabled; there are no root-owned files Are you sure? If desktop-mode is enabled and you have a buffer like /etc opened as sudo in your saved buffer in desktop, at each time you restart emacs, desktop will open this buffer and you will be prompted for sudo password. So you have to kill these buffers before quitting emacs. You can try to set `desktop-files-not-to-save', but it never worked for me. :-( So i use this:(add to .emacs) ,---- | (defun tv-list-tramp-buffer-file-name () | (let ((desktop-info-list (mapcar #'desktop-buffer-info (buffer-list)))) | (loop for i in desktop-info-list | if (and (listp i) | (stringp (car (nth 8 i))) | (string-match "^/su:.*\\|^/sudo:.*\\|^/ssh:.*" (car (nth 8 i)))) | collect (nth 2 i)))) | | (add-hook 'desktop-save-hook #'(lambda () | (let ((del-buf-list (tv-list-tramp-buffer-file-name))) | (dolist (i del-buf-list) (kill-buffer i))))) `---- > in recentf or desktop, and while desktop's "file-name-history" variable > had some sudo files, setting that variable to the empty list and > restarting didn't change anything. > > Any and all help appreciated! > > Eric > > GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of > 2009-09-27 on crested, modified by Debian > > These are all my other ido-related customizations, I don't have any > non-customize ido variables set: > > '(ido-auto-merge-work-directories-length -1) > '(ido-create-new-buffer (quote always)) > '(ido-enable-flex-matching t) > '(ido-enable-tramp-completion nil) > '(ido-everywhere t) > '(ido-max-work-directory-list 10) > '(ido-mode (quote both) nil (ido)) ;this is requiring sudo > '(ido-record-ftp-work-directories nil) > '(ido-show-dot-for-dired t) > > > > > > -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/