You are not logged in.
Subject says it all. Thanks.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
/usr/bin/mount has the suid bit set.
http://unix.stackexchange.com/questions … y-bit-work
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Hmmm... I'm trying to allow my AUR package for turbostat to `modprobe msr` if it is not already loaded, so I ran `chmod u+s "$pkgdir/usr/bin/$pkgname"` in the PKGBUILD but it does not behave as /usr/bin/mount does in this regard with the suid bit set.
% ls -l /usr/bin/mount
-rwsr-xr-x 1 root root 40208 Mar 13 10:36 /usr/bin/mount
% ls -l /usr/bin/turbostat
-rwsr-xr-x 1 root root 48984 May 2 02:49 /usr/bin/turbostat
% sudo turbostat
turbostat: no /dev/cpu/0/msr, Try "# modprobe msr" : No such file or directory
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
setuid bit and sudo?
Is turbostat even programmed to call modprobe?
I don't think the subject says it all. ewaller answered how mount can be used as a regular user (depending on configuration of course; e.g. 'user'/'users' option), but that might not be exactly what you were after.
Offline
Is turbosat a binary or is it a script? For security reasons, Linux ignores the SUID bit on scripts
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Binary
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline