So how does an installer copy files there?
So how does an installer copy files there?
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Installing packages also needs a root privileges, but in this case system will ask user about a password. Linux and MacOS X are not a Windows where you can setup any <censored> in your system(with by default settings)So how does an installer copy files there?
Aaah, the magic of sudo...
@carinswm: Its not just installers that can't mess with system files in Linux, viruses, little children, accidental keystrokes, hackers, spammers and etc... In linux - if you ain't got the sudo code - you ain't got acces to me system files... Your files fine, but the system files or someone else's files higher in the permission heirachy - no sudo code, no can do.
Its a nice system when you use it every day though, and since you haven't got to worry about viruses being able to do anything, you don't have to spend any resources on an antivirus etc...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
you can sudo just about anything so why not just sudo your file to do the setup
And you do. Sudo runs the command after it with root privileges, after prompting you for you password. The downside, is that if you ran a command from a shell after a 'sudo su' and in many instances a 'sudo xyz' where xyz was your command, xyz would use /root as the home directory where to store preferences, documents etc... Instead of /home/yourhomedirectory and inputting your password every run is tedious too.
I hope that clears up your understanding of how sudo works on Linux.
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
Bookmarks