[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tab doesn't autocomplete filename if only root can access it, even i
Re: Tab doesn't autocomplete filename if only root can access it, even if I'm using sudo.
Fri, 13 Mar 2020 09:14:10 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
On 3/13/20 3:49 AM, Tomas Zubiri wrote:
> Hello, consider the case where I'm trying to read the contents of
> /var/log/lighttpd/error.log, in order to do so I must use sudo.
> I can use tab to auto complete most of the path except for the filename,
> because it's protected. At this point, I might believe that the file
> doesn't exist, because I use tab to query directory contents, and I'm using
> sudo so I disregard file permission issues.
Yeah, you might want to disregard them, but until you authenticate and
sudo executes setuid(), you can't read the directories in the path. There's
no way to get around that without skipping the authentication step in
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://tiswww.cwru.edu/~chet/