SHELL ERROR

rackdie

Member
Jan 1, 2023
35
0
6
I am trying to access shell but it is giving me the error mentioned in screenshot attached below. I cant access server through WinSCP too
is there any fix?
 

Attachments

  • Screenshot_20230219_051912.png
    Screenshot_20230219_051912.png
    17.8 KB · Views: 12
I recently changed my main /root permissions to chmod -777 to upload files for whmcs and facing the issue after that. I can't basically open shell or login into winscp where i can fix the issue but all my vms are running properly
 
by using keyboard and monitor connected to your PC that is running proxmox


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
I have contacted my provider and he is asking for the command he needs to put so it is fixed. Since im new to all this stuff ill really appreciate if you can send me the command i have to put
is the command "-q chmod -770 /"
 
Linux commands dont start with "-" dash
There is no - "dash" in front of Octal-Mode permissions specifications.
Besides manual page on chmod: https://linux.die.net/man/1/chmod , there are many resources online that explain what options chmod takes and provide examples, i.e. https://mason.gmu.edu/~montecin/UNIXpermiss.htm

By specifying "/" forward-slash you will only change permissions of the root of your directory tree, incorrectly.
I cant give you a command to fix your system because I dont know how broken it is. Normally I would login via console/IPMI/etc and look around before running anything.
I am guessing that you need "chmod -R 770 /root" or even better "chmod -R 750 /root". Again, without seeing what is there now - no guarantees that this will not make things worse.

good luck

P.S. you may want to start from scratch, rather than keep fixing things that you may have broken.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!