Linux file permissions outside home

Started by sherloc987, October 21, 2018, 12:46:41 PM

Previous topic - Next topic

sherloc987

I want to create files and directories in a directory outside my home directory (on a different physical drive as I'm running out of space on my main drive). However I'm getting files with different permissions when I create them in a directory outside home which causes permission denied errors when I later execute some commands on these files I created.

I would like to use the directory outside my home (which is on different drive) in the same way as my home directory. How to do it?

To be specific, I'm following this manual http://project-magpie.github.io/yocto/2014/09/26/building-a-yocto-image-for-the-a20-olinuxino-lime/ but when executing "source oe-init-build-env ../build/a20-lime" command I'm getting permission denied error when I work in a directory outside my home on different drive.

When I work in my home I get no permission denied errors.


Gerrit

which file system do you use on the new drive ? systems like VFAT have no permission settings and depend on how or by who they are mounted.

if you use a linux file system like ext4 then it should work but you need root/sudo to change the permissions to the user, after that it should work the same as in your home directory.

https://www.computerhope.com/unix/uchown.htm