SOLVED Need help with screwed jails permissions

dimitrow

Dabbler
Joined
Mar 15, 2020
Messages
17
The long story short - I executed the command by mistake chown some_user:some_group /mnt/tank/iocage but I stopped it almost at the very beginning. At first glance, everything seemed ok until today, when during the night the server run a cronjob that stops each jail separately, makes an archive and start it again. After that, half of my jails don't work - they start, but they don't work (plex, transmission, etc.). When I looked at the file system of the jail itself, I noticed that the directory /bin is owned by some_user(only this directory). I tried to change it - it doesn't allow me because it's read-only. If I stop the jail, the files in the folder /bin disappear and reappear when it starts. Can anyone give me an idea of what may have gone wrong?
 

dimitrow

Dabbler
Joined
Mar 15, 2020
Messages
17
I resolved by myself. Some folders in /iocage/releases/ had taken the permissions from the command, which I partially executed (including the folder /bin). I changed the permissions there, restarted the jails and everything was fine.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
i did this once, but I didnt catch it till WAY late.
I restored from snapshots, cuz it was too much effort to unFUBAR it
 
Top