Fedora 10 /usr/bin/sudo is not readable so config is ignored
Bug #492986 reported by
Alan Fitch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyneighborhood |
Fix Released
|
Low
|
pyNeighborhood |
Bug Description
I'm using 0.5.0
In __init__.py various programs are checked for R_OK + X_OK which I guess means they must be readable and executable (I don't know python).
On Fedora 10, /usr/bin/sudo is not readable (but still works fine). I guess this is a "feature" of Fedora?
So the sudo setting in pyNeighborhood keeps reverting back to /usr/bin/gksu (which don't have installed). It seems to me that sudo doesn't have to be readable, so should only be checked for X_OK.
Possibly this is a potential security hazard in that I am tempted to make sudo readable as a solution, and I assume Fedora makes it not readable for some security reason?
Alan
Changed in pyneighborhood: | |
assignee: | pyNeighborhood-failed (pyneigborhood) → pyNeighborhood (pyneighborhood) |
milestone: | none → 0.5.1 |
status: | Fix Committed → Fix Released |
importance: | Undecided → Low |
To post a comment you must log in.
Also it looks to me like accessibility of sudo is checked even if sudo is not enabled.
I fixed it like this nmblookup" ,
" smbclient" : "/usr/bin/ smbclient" ,
" smbtree" : "/usr/bin/smbtree",
" filemanager" : "/usr/bin/ nautilus" }
1. change defaults to
defaults = {"nmblookup": "/usr/bin/
2. Add a clause like this:
for file in ["sudo"]:
config. set("Main" , file, fallback)
if config.get("Main", "enable_sudo") == "True":
if not access( config.get("Main", file), X_OK):
fallback = "/usr/bin/gksu"
print_debug( "%s isn't accessible, falling back to default: %s"
% ( config.get("Main", file), fallback ) )
Alan