Sure, nothing wrong with that. However, most installers on Windows do not elevate their priviledges themselves either, they usually also require that the user has permissions to install to a certain directory.
As ChrisW67 said, if you can't write into the user's home directory then there is something seriously screwed with the user's system setup.
Of course, I would even consider that path "off-limits" to any 3rd party software installer. /usr is the path managed by the system itself. Like C:\Windows (or whatever it is on current versions).
For that reason I actually prefer 3rd party software to come with an installer (instead of trying to have a package), because it not only allows users to install non-system wide, it allows users who are trusted by the sysadmin to install system wide in a way (e.g. /opt, /usr/local) that does not interfere with the system itself.
Are you sure? Usually executables installed by root are owned by user root, group root (unless the mount settings override that) but are executable for all.
Which is the same as on Windows, no? You have to right-click and "run as administrator" to be able to install into a global locations.
Cheers,
_






Reply With Quote
Bookmarks