10-30-2017 01:25 PM - edited 03-12-2019 07:32 AM
I have a customer that got dings for several security issues on their CSPC collector during a security server audit. They are currently running version 2.7. I logged into the CLI to check for an update and one is available. I was able to download the file, but when trying to apply the update, I get an error about the file not a directory. Attached is the output of the apply command that I am getting.
Solved! Go to Solution.
10-31-2017 01:58 PM
10-30-2017 01:33 PM - edited 10-30-2017 01:34 PM
Can you please run the below commands as root and share their output:
####
ls -larth /opt/LCM/tmp unzip -l /opt/LCM/tmp/sp-30.\*.zip tail -50 /opt/LCM/logs/apply tail -50 /opt/LCM/logs/install
####
Cesar
10-30-2017
01:53 PM
- last edited on
10-30-2017
02:24 PM
by
Cheri Fairbrother
I don’t seem to be able to log in as root I guess. I tried from the regular linux login but getting an error. I reset the root password but still unable to log in. Below is the output.
[collectorlogin@localhost ~]$ ls -larth /opt/LCM/tmp unzip -l /opt/LCM/tmp/sp-30.\*.zip tail -50 /opt/LCM/logs/apply tail -50 /opt/LCM/logs/install
ls: invalid option -- '5'
Try `ls --help' for more information.
admin# pwdreset root 90
Password for 'root' reset to - *** successfully
Password expires in 90 days
Shell is enabled
passwd: all authentication tokens updated successfully
*** Please memorize the new password ***
Lost passwords cannot be recovered. The only alternative to recover is to reinstall the server.
Text has been masked to preserve data privacy. Please provide sensitive information via private message, and only at the request of our experts. Thank you!
10-30-2017 04:22 PM
Hey JR Harper,
Did you sudo up from collectorlogin by running command 'su'? You can't log directly into root account but can sudo up from collectorlogin access.
Thanks,
Justin
10-31-2017 06:16 AM
In addition, each command is a separate command. Enter one at a time.
10-31-2017 12:49 PM
10-31-2017 01:13 PM - edited 10-31-2017 02:17 PM
I think I see the issue.
It looks like the file might have been written to the wrong name.
We could try to solve this by performing the following:
Run the commands as root:
mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip mkdir /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip
Then go back into adminshell and try to rerun the apply command.
After about ten minutes you can go back and rerun all the same commands as in the previous post and share their output.
Cesar
10-31-2017 01:32 PM
Thanks for your reply. I am getting an error on finding the directory. Below is the output. Thanks
[root@localhost collectorlogin]#
[root@localhost collectorlogin]# mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
[root@localhost collectorlogin]# mkdir /opt/LCMtmp
[root@localhost collectorlogin]# chown casuser:casuser /opt/LCM/tmp
chown: invalid group: `casuser:casuser'
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
chown: cannot access `/opt/LCM/tmp': No such file or directory
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
chown: cannot access `/opt/LCM/tmp': No such file or directory
[root@localhost collectorlogin]# mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
chown: cannot access `/opt/LCM/sp-30.0.2-0-0-lnx64-package.zip': No such file or directory
[root@localhost collectorlogin]#
10-31-2017 01:39 PM - edited 10-31-2017 02:18 PM
Looks like you had a couple of typos:
Please try the below now: (if possible, copy and paste to avoid typos).
mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip mkdir /opt/LCM/tmp chown casuser:casusers /opt/LCM/tmp mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip
10-31-2017 01:54 PM
Good catch. I looked that over and didn't catch the first one. I tried again and am getting an error on the last line of "no such file or directory". Is it possible that I have move this from the original directory and that is why it isn't finding it now? Should I try to downloading it again to get it where I can move it correctly. Thanks
[root@localhost collectorlogin]#
[root@localhost collectorlogin]# mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
[root@localhost collectorlogin]# mkdir /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
[root@localhost collectorlogin]# mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
chown: cannot access `/opt/LCM/sp-30.0.2-0-0-lnx64-package.zip': No such file or directory
[root@localhost collectorlogin]#
10-31-2017 01:58 PM
11-01-2017 07:30 AM
That did it. Thanks for your help on this.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide