Does mount always require root privileges?

I was under the impression that any sort of call to mount requires root privileges. But recently I was told “You should instead create appropriate entries in /etc/fstab so that the filesystems can be mounted by unprivileged users”… which is counter to my experience using mount. Anytime I have used mount I have needed to … Read more

Why is PATH reset in a sudo command?

After much frustrating head-brick-wall contact, I’ve discovered this: $ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/steve/bin $ sudo bash # echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin but $ sudo bash -c 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin $ sudo bash -Ec 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin I gather from another post that the sudo path is read from /etc/sudoers — but why? Does setting $PATH in /root/.profile … Read more