Guillaume Rousse wrote:
> [guillaume@silbermann guillaume]$ umask
> 077
> [guillaume@silbermann guillaume]$ touch foo
> [guillaume@silbermann guillaume]$ ll foo
> -rw---1 guillaum guillaum0 aoû 29 12:38 foo
> [guillaume@silbermann guillaume]$ umask 022
> [guillaume@silbermann guillaume]$ cp foo foo.new
> [guillaume@silbermann guillaume]$ ll foo.new
> -rw---1 guillaum guillaum0 aoû 29 12:38 foo.new
>
> Is this normal behavior ?
I think "cp" preserves permissions. Like when you copy files from a Fat
partition, they get the x perm and you have to chmod them by hand.
Grégoire