Topic: sudo and compiling binaries
Hi all,
This is more of a general linux question but I got a little turned around recently when trying to compile and install clamav.
By default, clamav creates a new user and group called clamav and gives the new user privileges for all the executables that get installed with the program (I think). First off all, I'm confused as to why you would want to do this. Why not just force all users to use sudo to run the program? Second, I never had to set up a password for the new user and once everything was installed I didn't see the new group or user in the "users/groups" application in the main menu of #!. Is it possible clamav somehow created a group I can't see even when I elevate my privileges in the users/groups program?
I'm also unsure as to what the proper procedure is when compiling a program. I've just learned how to do this and my general understanding is that a group of binaries comes with a configure script that generates makefiles for your system. To install the program you do configure; make; make install. Now, should I run that sequence as sudo? My assumption is that if I do, I'll have to sudo to edit any of the program files after I do the install. If I don't do that, will I be able to edit those files as myself? During one of my attempts to install clamav, it generated all the program files with the usual directory structure (files in /bin, /etc, etc.) but placed everything inside my default path (/home/user). Was that just some weird thing the program did or is that because I ran the install sequence as myself and not sudo?
Every time I've (successfully) installed a linux program in the past I've done it with a package manager or a precompiled .deb file that I downloaded. I haven't gotten a feel for the rest of this yet, and I'm having trouble finding any info online. Can anyone make this a little clearer?
Thanks!
Devin
Oh, and the reason I was installing clamav in the first place is that I wanted to scan a windows system for viruses from linux. If this is a dumb way to do that I'd appreciate some pointers there too.