Solved Simple question about copying and permissions

My jellyfin/Videos directory has permission set to 775

# ls -l
drwxrwxr-x 2 jellyfin jellyfin 3 Jan 7 16:42 Videos

I am in the jellyfin group

# id walter
uid=1001(walter) gid=1001(walter) groups=1001(walter),0(wheel),868(jellyfin)

If I am logged in as walter, shouldn't I be able to copy files to that directory?
 
Yes .. but you (ALSO) have to have access permission to the complete PATH that you are trying to copy (TO):

I am assuming the target directory is: /home/jellyfin/Videos

So you need access to:

/home
/home/jellyfin
/home/jellyfin/Videos

Unix permissions on: /home/jellyfin would need to be: drwxr-xr-x 72 jellyfin jellyfin 82 Jan 6 00:00 jellyfin

Easiest way to test if you have WRITE permission is to "cd" into the target directory you are trying to copy (TO).
If you can "get there" then type:

Code:
$ cd /home/jellyfin/Videos
$ cat > test.file
I am test data
^D
$

If you create the file ... then you are all good !

(BUT) -- your "walter" id is showing a ROOT shell prompt (#). I would make sure you actually are logged in as "walter" and not running setuid root or similar. Try running whoami(1) or "id -un" -- it will tell you who you really are.
 
I must have missed the /home directory.
I changed that to 775, and it seems to work.

I am a bit concerned about the security, but this is a home desktop. I am the only one who uses it.
 
You can set to: 750 on the $HOME directory -- (aka: group r-x). The write permission isn't needed if you have opened up Video or a similar directory under the $HOME directory.
 
Back
Top