4
votes
Accepted
`sudo which` command not finding executable that exists in regular user PATH
As root, there are more things that should be in your path. (like /sbin and /usr/sbin)
As root, there are things that should not be in your path. (like .)
Therefore, the path is normally reset.
The ...
2
votes
Accepted
How do I enable root account = set root password in Synology DSM 7.2?
So, I just went through most of the search results, most claiming it is no longer possible, however it is still possible in 7.2 and maybe in later versions of DSM.
Try this, just change the the ...
1
vote
`sudo which` command not finding executable that exists in regular user PATH
See the section Command Environment in man sudoers.
By default, env_reset is enabled and PATH is reset to a secure value - either secure_path value or a compiled-in value if the secure_path is not set....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
root × 1221sudo × 246
linux × 199
permissions × 183
debian × 106
security × 103
users × 93
password × 87
su × 76
ubuntu × 70
ssh × 66
bash × 61
centos × 60
shell × 57
non-root-user × 54
login × 49
privileges × 46
files × 35
shell-script × 34
mount × 26
filesystems × 23
cron × 23
fedora × 22
terminal × 22
partition × 22