Solved Specify a pathname with spaces in rkhunter conf file

Solved issue

Rukbeen

New Member
Joined
Apr 16, 2024
Messages
2
Reaction score
0
Credits
21
Hello,

I'd like to add an exception for a dev file in the rkhunter configuration file but the file's name contains spaces. I've tried so far to use backslahes, percent character (%) and "<SP>" but none of them worked.
I read in documentation that pathnames shouldn't be surrounded by quotes so what would be the correct way to write:
ALLOWDEVFILE=/foo/bar/file name with spaces

Thank you in advance for any help you could provide.
 


Perhaps this:
Code:
[tom@min ~l]$ ALLOWDEVFILE=$(echo "/foo/bar/file with spaces")
[tom@min ~]$ echo $ALLOWDEVFILE
/foo/bar/file with spaces
 
Thank you for your reply but while I was wondering if the code you provided would work in the conf file, I tried to simply use the space character and... it worked
So it seems that if you simply specify spaces within the path name it will be well interpreted. So the correct syntax was indeed the one I wrote in my question‍
I go back to my cave...
 
How many rootkits have you found on a Linux system...let me guess 0.
1713314393814.gif
 

Members online


Top