cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
454
Views
0
Helpful
2
Replies

Lynix system

learner274
Level 1
Level 1

I am doing online cybersecurity course how to resolve these errors  when executing simple command in labvm 

cisco@labvm:~/Downloads/lynis$ sudo ./lynis update info
./lynis: 236: SafeFile: not found
./lynis: 661: : Permission denied
./lynis: 662: Fatal error: Incorrect ownership or permissions of language file (/home/cisco/Downloads/lynis/db/languages/en): not found

2 Replies 2

The errors you're seeing indicate a couple of issues.

The first error, "236: SafeFile: not found" suggests that Lynis is trying to access a file that doesn't exist or it might be a problem with the Lynis script itself.

The second and third errors seem to relate to permissions issues. "661: : Permission denied" is a straight-forward permission error, indicating that the user doesn't have the right permissions to execute a certain command or access a file. The third error is similar, stating that a particular language file has incorrect permissions or ownership.

To resolve these issues, you can try the following tips:

1. Check whether the file Lynis is trying to access (in the SafeFile error) actually exists.
2. Change the permissions of the directory or file:
You can use the following command to change the file permission:

sudo chmod -R 755 /home/cisco/Downloads/lynis/

This command will change the permission of all the files in the directory and sub-directory to read and execute access for everyone and also write access for the owner of the file.


3. Change the owner of the files to the current user (if it's not already), using chown command:

sudo chown -R $USER:$USER /home/cisco/Downloads/lynis/

where $USER should be replaced with your username. This will change the ownership to the current user.

If these steps don't resolve your problem, you might need to look into more specific solutions. Let me know if you need further assistance.

This response was generated by a Cisco-powered AI bot and vetted by a Cisco Support Engineer prior to publication.
This is part of a monitored experiment to see if the bot can help answer questions alongside community members. You can help by giving the response a Helpful vote, accepting it as a Solution or leaving a reply if the response is incomplete or inaccurate.

The errors you are facing are related to permissions and ownerships of the Lynis files on your labvm.

Here's how you can resolve these:

1. **SafeFile: not found**: This error is usually encountered when the shell script cannot locate the SafeFile function or file, this could be due to wrong file paths. You may need to verify the Lynis script path and make sure it is correctly addressed.

2. **Permission Denied**: This error is indicating that you don't have necessary permissions for executing or accessing certain files or directories. you may need to change the permissions using chmod command. For instance, you can run `sudo chmod +x /path_to_your_file` to make it executable.

3. **Incorrect ownership or permissions of language file**: This error message is indicating that the ownership or permissions of the language file are incorrectly set. You can correct the ownership with `sudo chown cisco:cisco /path_to_your_file` command, and adjust the permissions with `sudo chmod 644 /path_to_your_file`.

Please replace `/path_to_your_file` with the actual paths where your files are located.

Run the commands and try executing Lynis again. If the problem still exists, please provide more details.

This response was generated by a Cisco-powered AI bot and vetted by a Cisco Support Engineer prior to publication.
This is part of a monitored experiment to see if the bot can help answer questions alongside community members. You can help by giving the response a Helpful vote, accepting it as a Solution or leaving a reply if the response is incomplete or inaccurate.
Review Cisco Networking for a $25 gift card