I am idiot

i typed chown -R ftpuser:ftpuser /
now my system is broken any idea how to fix it

reinstall?

PS linux is powerful

1 Like

Yes, reinstall…

1 Like

Unless you have a full backup to restore…yes…reinstall.

1 Like

Can’t he use root to give back the perms to his user?

1 Like

You could try yo set al permissions in / to root and then change them in your user folder to $USER that shouldn’t make it worse.

1 Like

Were you trying to restrict an ftp user?

yes

https://www.baeldung.com/linux/restrict-ftp-user-directory

2 Likes

Well, it’s not as bad as ‘rm -rf /’ and I’ve done that…but your system is basically screwed if the command completed. You’d pretty much never get it right again because it’s all about permissions.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.