kainthereaper
Dabbler
- Joined
- Mar 15, 2018
- Messages
- 11
Hey All,
I just massively screwed up my FreeNAS setup. Everything was working perfectly, my windows machine was able to access my drives on FreeNAS and plex was running beautifully.
Then I tried to get sabnzb working and I made a MASSIVE mistake.
So here's what happened. sabnzb uses media as its default user. I couldn't figure out how to change the user it uses or how to add media to the group I was using for windows.
So my solution was to change the ownership of the folder to media, download the file, then switch it back to my normal user so I could move the files in windows after the fact.
This was working fine, albeit a terrible setup.
Here comes the screw up. Today I go in and decide to download something via sabnzb, so I go into shell and navigate to the main directory which contains my complete and incomplete directory and I type:
As soon as I hit enter I realize my mistake. I forgot to specify a directory. So I run over to the machine and flip the switch. But it is too late and the majority of files have already been switched.
So I panic and then try to reverse what I just did by typing:
But now I can't get into any of my files in windows and plex is no longer running correctly (though in the plugins menu it claims to be running)
Looking into the FreeNAS settings I appear to have my windows share set to root:user1, but when I chown to that it doesn't seem to make a difference.
I screwed up real bad I know, is there any way to fix this? Are there logs stored somewhere which keep track of chown changes?
Link to images: https://imgur.com/a/N6hHs
I just massively screwed up my FreeNAS setup. Everything was working perfectly, my windows machine was able to access my drives on FreeNAS and plex was running beautifully.
Then I tried to get sabnzb working and I made a MASSIVE mistake.
So here's what happened. sabnzb uses media as its default user. I couldn't figure out how to change the user it uses or how to add media to the group I was using for windows.
So my solution was to change the ownership of the folder to media, download the file, then switch it back to my normal user so I could move the files in windows after the fact.
This was working fine, albeit a terrible setup.
Here comes the screw up. Today I go in and decide to download something via sabnzb, so I go into shell and navigate to the main directory which contains my complete and incomplete directory and I type:
chown -R media:media /
As soon as I hit enter I realize my mistake. I forgot to specify a directory. So I run over to the machine and flip the switch. But it is too late and the majority of files have already been switched.
So I panic and then try to reverse what I just did by typing:
chown -R root:wheel /
But now I can't get into any of my files in windows and plex is no longer running correctly (though in the plugins menu it claims to be running)
Looking into the FreeNAS settings I appear to have my windows share set to root:user1, but when I chown to that it doesn't seem to make a difference.
I screwed up real bad I know, is there any way to fix this? Are there logs stored somewhere which keep track of chown changes?
Link to images: https://imgur.com/a/N6hHs
Last edited by a moderator: