|
Bugzilla – Full Text Bug Listing |
| Summary: | -H ignored without -s | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | sudo |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | low | ||
| Priority: | normal | ||
| Version: | 1.6.3 | ||
| Hardware: | Other | ||
| OS: | Other | ||
|
Description
sudo
2001-11-08 14:54:15 MST
That didn't wrap correctly. Maybe this will: [puma:~] foo% sudo -H -u bar echo ~ Password: /Users/foo [puma:~] foo% sudo -s -H -u bar [puma:/Users/foo] bar% echo ~ /Users/bar Nope, the '~' is being expanded by your shell before sudo even runs. A better test is: % sudo -H printenv | grep HOME HOME=/root |