Jørgen Heesche wrote:
> Carsten wrote:
>>
>> Jeg vil gerne have at nye filer/mapper der dannes aver "permissions"
>> fra moder mappen.
>>
>> Er det muligt?
>>
> Nej, og permissions skal heller ikke arves fra "moder" mappen
> Alle filer skal f.eks. ikke være executable.
> Brug chmod bagefter.
>
Jeg skal lige tilføje at permissions-systemet er sikkerhedmæssigt
perfekt som det er: kun brugeren har skriverettighed og alle andre har
læserettighed. Eksekverbare filer har x-rettighed til alle. Hvis en
bruger ønsker, at uddele yderligere rettigheder. må han bruge chmod.
X-rettighed på et directory betyder ikke det samme som x-rettighed på en
fil.
Se her:
http://aplawrence.com/Basics/perms.html
Citat:
Directories:
Permissions on directories can be a little confusing. Read permission
("r") means that you can list the directory- for example, use "ls" on
it. But that's all it means: if you only have read permission, you can't
cd to that directory, you can't copy files into that directory, and you
can't even do an "ls -l" on it. Note that it doesn't help if files or
directories under that would be accessible by you: you won't be able to
get to them. Write permission ("w") allows you to create new files and
to remove files. Normally, write permission is all you need to remove a
file- you might not have any permissions on the file itself, but if you
have write permission on the directory and the text bit is not set (see
below) you will be able to remove the file whether or not you have any
permissions on the file itself, and no matter who owns it. However, you
will need at least "x" permission also, because "x" is what lets you
"search" a directory. You might also think of it as "use its contents".
You need "x" permissions on the directory to read a file in that
directory, to copy it elsewhere and (as noted above) to delete it.
--
Med venlig hilsen
Jørgen Heesche
mailto:heesche@webspeed.dk
Registered Linux User #401007