It doesn't matter who installed the binary, it matters what the permissions are.
To run the file, UNIX would:
check to see if you are the file owner:
if so, do you have execute perms?
If not the file owner, are you in the same group:
if so, do you have execute perms?
If neither owner or in the group:
Does 'other' have execute perms?
Most software installed by 'make install' would give execute perms to all of user, group, and other, and you must by definition be in one of those groups.
What does ls -l
say?
(*) Small caveat, to execute the file, you need execute perms, but to even see it you need perms on the directories that contain the file as well. This is rare, and I'm sure the executable permissions are more important at this point.
2For example, which program are we talking about? – slhck – 2011-11-29T10:32:21.557
this works probably,
su <username> <programname>
.. – Vineet Menon – 2011-11-29T10:48:10.947Use the absolute path to the program. It's possible other users don't have that particular directory (e.g.
– Daniel Beck – 2011-11-29T19:36:05.670/usr/local/sbin
) on their path.