Ubuntu, like other Linux distributions, restricts access to files and system settings by default. Each user account has read and write access to its own files and read access to some system files. Other user accounts can’t view another user account’s files. You can give file or folder permissions to all users using the “chmod” command. The first user account you create when you install Ubuntu has administrative access, which allows you to enter your password and use system programs. You can grant administrative permissions to other user accounts from the User Accounts window.
- Open a terminal window by clicking the Ubuntu-logo-shaped “Dash Home” icon at the top left corner of the screen, typing “Terminal” into the search box that appears and pressing “Enter.”
- Type “sudo chmod a+rwx /path/to/file” into the terminal, replacing “/path/to/file” with the file you want to give permissions to everyone for, and press “Enter.” You can also use the command “sudo chmod -R a+rwx /path/to/folder” to give permissions to a folder and every file and folder inside it. Omit the “x” from either command if you don’t want the files to be executable.
sudo chmod a+rwx /path/to/file
- Type your password at the password prompt and press “Enter.”