1 |
Note this is a cross post here and debian.user.. the server is gentoo |
2 |
the client is debian. |
3 |
|
4 |
It's kind of a phony cross post though since I didn't think to do this |
5 |
until I'd already posted on debian user... So its really a second post |
6 |
with the same content. Some consider that a phaux paux(?)... So |
7 |
please forgive with my explanation. |
8 |
|
9 |
Content: |
10 |
|
11 |
I'm using samba and cifs to mount a certain directory on a linux |
12 |
(gentoo) machine (Which will also be accessed by windows machines [but |
13 |
not yet]). |
14 |
|
15 |
On the server machine I've created the directory `projects'. With |
16 |
permissions 755 and ownership reader:wheel |
17 |
|
18 |
This is mounted from a machine runnning debian lenny like this in |
19 |
fstab: |
20 |
(wrapped for mail at the `\') |
21 |
(Note the host name is reader .. not to be confused with user reader) |
22 |
|
23 |
//reader/smProjects /projects cifs noauto,username=reader,\ |
24 |
credentials=/etc/samba/CifsCredentials,uid=reader,gid=wheel |
25 |
|
26 |
OK, with /projects share mounted on the deb machine, I attempt to copy |
27 |
a directory (oneA) of files into it with `cp -a oneA /projects' |
28 |
|
29 |
Note that the same user reader in group wheel exists on both server |
30 |
and client machines. |
31 |
|
32 |
The permissions on oneA (on client) are 755 and the files inside are 644. |
33 |
|
34 |
When I attempt to carry out the copy action I get a slew of warnings |
35 |
like this: |
36 |
cp: setting permissions for `./oneA/...': Permission denied |
37 |
|
38 |
The cp is still carried out but all the files now have 744 |
39 |
permissions. |
40 |
|
41 |
If I drop the -a[rchive] flag and do the cp with `cp -R' its done |
42 |
silently but the permissions still end up 744 on what are regular files |
43 |
(that were 644) |
44 |
|
45 |
Any regular files I create on the mounted share end up 744. |
46 |
|
47 |
Can I set a umask in the mount syntax or what do I need to do here to |
48 |
have the files keep the standard permissions? Why are they being changed? |