I seem to be having some permissions issues that I am not sure I completely understand.
I am simply trying to copy a directory containing files from one place to another.
The user is a part of the following groups:
The destimation directory /usr/local/www/apache22/data has the following permissions: (NOTE: I set it to everything trying to get it to work)
The source directory /usr/home/MYUSER/www has the following permissions: (NOTE: I set it to everything trying to get it to work)
The file has the following permissions: (NOTE: I set it to everything trying to get it to work)
The following command is failing due to permissions:
I think I might be having a fundemental misunderstanding of how the permissins work in freebsd.
Should the above command have worked because all permissins were set on the destination directory?
Do I need to change permissions on every directory between the two? That does not seem right.
I am simply trying to copy a directory containing files from one place to another.
The user is a part of the following groups:
Code:
$ pw usershow dom4in.ss4rv3r -P
Login Name: MYUSER #1002 Group: wheel #0
Full Name: MY USER
Home: /home/MYUSER Class:
Shell: /bin/sh Office: [None]
Work Phone: [None] Home Phone: [None]
Acc Expire: [None] Pwd Expire: [None]
Groups: www
The destimation directory /usr/local/www/apache22/data has the following permissions: (NOTE: I set it to everything trying to get it to work)
Code:
drwxrwxrwx 2 www www - 512 Feb 25 00:23 data/
Code:
drwxrwxrwx 2 MYUSER wheel 512 Feb 24 01:47 www
The file has the following permissions: (NOTE: I set it to everything trying to get it to work)
Code:
-rwxrwxrwx 1 MYUSER wheel - 450 Feb 25 00:53 template.html*
The following command is failing due to permissions:
Code:
$ cp /usr/home/MYUSER/www/* /usr/local/www/apache22/data
cp: /usr/local/www/apache22/data/template.html: Permission denied
I think I might be having a fundemental misunderstanding of how the permissins work in freebsd.
Should the above command have worked because all permissins were set on the destination directory?
Do I need to change permissions on every directory between the two? That does not seem right.