Sudo – admin rights must be used since we are dealing with a folder that belongs to another userĬhown – the command for changing ownership Ugo+rw – this gives User, Group, and Other read and write access.Ĭhanging the ownership of a file or folder is equally as simple:Ĭhown -R 'Username' /DATA/SHARE (Replace Username with real username to whom you want to give ownership) R – this modifies the permission of the parent folder and the child objects within Sudo – this is used to gain admin rights for the command on any system that makes use of sudo (otherwise you'd have to 'su' to root and run the above command without 'sudo')Ĭhmod – the command to modify permissions The breakdown of the above command looks like:
The commands for modifying file permissions and ownership are:Ī new folder was created on a data partition called /DATA/SHARE