Can't edit file as root? Help?

I received an error after installing Eset NOD32 Antivirus Home Edition. It won’t update virus database definitions. Saying incorrect username and password… Straight after, I was experiencing an issue during ‘Anonymous Start’ in Backbox Linux with ‘network-manager service’ See below error -

’ * Stopping network-manager service
ERROR: ld.so: object ‘libesets_pac.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored. ’

I read the post https://forum.eset.com/topic/7097-log-in-show-ldso-object-libesets_pacso-from-etcldsopreload-cannot-be-preloaded-ignored/

Which said -

’ Edit /etc/ld.so.preload as super user and change:

libesets_pac.so

to:

/opt/eset/esets/lib/libesets_pac.so

Save the file and the library will be preloaded for new processes. You should restart the system to make it active for all processes. ’

However, even after I changed user to root I could not save the file. It said permission denied permission denied

I’m a beginner linux user so any help would be greatly appreciated! This issue is really slowing down/affecting my internet!

Thank you :slight_smile:

which distribution are you using? how did you edit the file?

edit: which version of backbox are you using?

2 Likes

Can you elaborate precisely what exactly you tried to do in which way and how it did not work? We need to understand your problem, first.

2 Likes

I have not used Backbox Linux but according to their homepage,

The software packaging process, the configuration and the tweaking of the system follows up the Ubuntu/Debian standard guide lines.

so, you should not try to edit files as user root but rather do it with the sudo command, providing your proper user password when asked. E.g.:

your_username@your_computer:~$ sudo nano /etc/ld.so.preload

However, if I were a Linux beginner, I’d personally go for a more mainstream distribution with a bigger community.

On the other hand: I don’t really see why you should use this antivirus software unless you’re planning to do something out of the ordinary.

3 Likes

NAME=“Ubuntu”
VERSION=“18.04.5 LTS (Bionic Beaver)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 18.04.5 LTS”
VERSION_ID=“18.04”

I used the command sudo -i and sudo - s. Navigated to /etc//etc/ld.so.preload and edited with mousepad.

navigated in the terminal with cd or navigated in the gui? it might be helpful if you could share the commands you used.

4 Likes

Did you try exactly as I suggested?

Thanks for your response.

I tried that. I was able to open the file using the commands you suggested but was presented with the same error -

'Failed to save terminal contents

Error opening file “/etc/ld.so.preload”. Permission denied

I went with Backbox for the pentesting tools and for privacy and security in mind. I want to learn how to pentest but also want a semi user friendly O/S.

Regarding anti virus. I was under the impression you didn’t require an anti virus with Linux but from what I read, it’s recommended. Which actually seemed to be correct as on my fist scan I found 290 of malware. (Although I don’t know whether all of these have been flagged as false positives?)

Do you have any other anti virus programs in mind? What are your thoughts on AV for Linux?

Thanks in advance!