LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot Install Bitdefender Permission Denied (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-install-bitdefender-permission-denied-169951/)

Redfiveuk 04-14-2004 05:57 AM

Cannot Install Bitdefender Permission Denied
 
Hi All,
I have downloaded the free Linux version of Bitdefender AV and was following the instructions for installtion. I started a KDE Konsole Super User command line window cd to my downloaded file location and followed the install instruction but I keep getting a Permission Denied error. I have logged on as root and used my root password but I am getting the following errors:

[root@felix felix]# cd downloads
[root@felix downloads]# ./BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.run
bash: ./BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.run: Permission denied
[root@felix downloads]#

What am I doing wrong ? Anyhelp gratefully received.

Regards
Redfive

jeffreybluml 04-14-2004 06:04 AM

Sometimes when you DL files like this, they come with the permissions set up funny, like 600 for instance. As root, do:

chmod 777 BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.run

and then

./BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.run

and you'll be good to go.

Good luck!

Redfiveuk 04-14-2004 06:24 AM

Thx thyat worked but I am stuck again DOH
 
Many thx for your prompt response.
Using your instructions I have installed the package, it appears to be installed but I cannot see any icons for it, I was guessing I would have to update it to the latest AV patch. Here is a copy of my console output:

Please enter "accept" if you agree to the License Agreement.
Enter anything else if you don't agree to the terms in the License Agreement.
The installation process will stop.

accept

Please enter installation directory [ default = /opt ]:

Created directory /var/bdc/infected...
Created directory /var/bdc/suspected...

Created symlink for /opt/bdc/bdc
in /usr/bin

Thank you for installing BitDefender for Linux console Free Edition
in the following path: /opt/bdc
Your quarantine directory is /var/bdc
Please see README and FAQ files before reporting any problems to:

support@bitdefender.com

If you will ever plan to uninstall this product, please take a look
at bdc-uninstall file located in /opt/bdc directory
[root@felix downloads]#


I am a windows dude and am stumbling my way through Linux, I am a bit surprised you dont seem to get any instll instructions with this app although maybe I am just making a total newb mistake. What do I need to do next to check if this app is installed and how do I run it?

Regards
Redfiveuk

jeffreybluml 04-14-2004 09:41 AM

No prob, I had the same questions when I first installed bdc.

To scan something, you type:

bdc (path) (parameters)

To make this more clear, type:

bdc --help

at the command line. Essentially (and I agree this is anoying coming from windows) there are no program icons from which to run this, and it does not (as far as I can tell) give you "real-time" protection like Norton etc...

You just have to manually scan once and awhile. I used cron to schedule an automatic scan every morning at 3, but I dont really think this is neccessary. Linux simply doesn't have that many viruses out there, and there just isn't the risk of getting infected while surfing the web or opening email.

But, here is the command to scan EVERYTHING on your hard drive, which you can also load into your crontab to execute automatically:

bdc / --all

That will take awhile, FYI.

If you really want to stick this in cron to be automatic, let me know and I'll try to walk you thorugh it. Or, if you're feeling plucky, you can do a

man cron

and read the man file to learn more about cron.

Good luck!

Redfiveuk 04-14-2004 10:20 AM

Man cron eh
 
Thx once more Jef, your help has been of great value. I was kinda expecting the Norton Av realtime protection type of thing but I guess that is not needed as you pointed out. I will venture down the road of a once weekly scan, so any info you can give me on this would be great.
Man if you where in the UK I would meet you down the pub and get you a couple of beers in to show my gratitude.

I will read up about cron and delve into bdc --help, that is just what i was looking for but did not know where to start.

All the best
Redfiveuk :study:

jeffreybluml 04-14-2004 10:37 AM

Okay, here we go...

First, make a file in your home directory called, for instance, mycron. Here is what MY mycron looks like...make yours the same...

-------------------------------------------------------------------
#minutes hours(24) dayofmonth month dayofweek
00 03 * * * bdc --update
10 03 * * 3 bdc / --all
-------------------------------------------------------------------

Now, as you'll see by the second line, the first line will execute at 03:00am every day of every week of every month. The third line will execute at 03:10am on the THIRD day of every week of every month ( I forget if the 3rd day is tues or weds, but you could do a "man cron" to find out). So, for you to make yours weekly, you can keep it just like this.

Dont have the --------------------------- in there, that's just for ease of viewing in this thread.

Now, from the command prompt, su into root. Once you're root, type:

crontab -u (username) mycron

Make sure you're in YOUR home directory when you do this, or it wont find the mycron file. If all went well, it should just return to the command prompt almost immediately. You can confirm what;s in your crontab file with the following:

as root:
crontab -u (username) -l

This will list the contents of the users crontab. If all went well, you'll see the stuff you just put in mycron.

If I were in the UK, I would most certainly take you up on that drink!

Good luck!

Redfiveuk 04-15-2004 09:14 AM

All done - jobs a good un.
 
Using your excelent instructions I have set up and activated the mycron.txt file, I also added the the line mailto='myemail@mydomain' and hopefuly I will get email confirmation when this action is complete. Below was a useful url on the mailto option:

http://support.securesites.com/suppo.../unix/cron.cfm

My mycron file looks like this:

#minutes hours(24) dayofmonth month dayofweek
#update av engine for latest viruses @ 10pm on day 1 of weekly schedule
00 22 * * 1 bdc --update

#scan all files @ 11pm on day 1 of weekly schedule
00 23 * * 1 bdc / --all

#setting email address for notification of scan and update
MAILTO="me@mycompany.com"


A final thx to jef for all your invaluable help, your a top bloke.

Regards
Redfive


All times are GMT -5. The time now is 12:18 AM.