The Be Sure Blog

Code Snippets | Problem Solving | Tips & Tricks

The Be Sure Blog banner

User permissons for folders and files in Ubuntu

posted on 26.1.2023 by Below Surface in "Ubuntu"

Firstly, by running the command:

$ ls -la

You will get a list of all files and folders in the current directory you are in. If you want to grant rights to a certain user, just run

$ sudo chown -R username:usergroup directoryname

To give rights to all files and folders of the current directory to the user marc123 of the user group "developer", run:

$ sudo chown -R marc123:developer .


user permissions


More posts of this category

How to delete an user in the Ubuntu terminal

Learn how to display all local users and how to delete them


How to increase the Swap Memory size in Ubuntu

When 512mb are not enough, why not change it to 2gb?