2

I typed in "sudo nautilus" because I didn't know that I should never do that O.O

But now it's to late. What can I do now?

I just typed that in to see if it throws an error. (Yes, I'm a Ubuntu newbie)

I've read that I should type find $HOME -not -user $USER -exec ls -lad {} \; and find -not \( -user ${USER} -group ${USER} \) in the console to see if files are corrupt, but it does not show me anything in the terminal.

Can someone help me?

Wombi Wombyte
  • 93
  • 1
  • 1
  • 8
  • 1
    That *particular* issue (of `sudo` preserving the invoking user's `$HOME` and hence writing files there) has gone away - see [How does sudo handle $HOME differently since 19.10?](https://askubuntu.com/questions/1186999/how-does-sudo-handle-home-differently-since-19-10) – steeldriver Jun 02 '21 at 19:50

1 Answers1

5

The command sudo nautilus will open the file browser with extra (superuser) permissions, for instance you could move or delete important system files. However, if you didn't do that, then there's no harm done. Once the window is closed, that's it. Next time you open nautilus it will be with your own normal permissions.

Coljac
  • 565
  • 1
  • 5
  • 22