Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

Diktator

Senior Schreiberling

  • "Diktator" is male
  • "Diktator" started this thread

Posts: 605

Date of registration: Feb 12th 2002

Location: Region Hannover

Occupation: Gartenbau

1

Sunday, February 24th 2002, 8:29pm

ESB-Aufgabe

hallo ihr.
hat jemand schon die aufgabe 1.2 der klausur vom letzten herbst gemacht. eine lösung wär nicht schlecht, da ich mir nicht ganz sicher bin, wie sich unmask gegenüber dateien und verzeichnissen verhält.
thx, so far... ?(
Diktator
Holzhacken ist deshalb so beliebt, weil man bei dieser Tätigkeit den Erfolg sofort sieht. - Albert Einstein

  • "chefstatist" is male

Posts: 57

Date of registration: Jan 9th 2002

Location: Hannover-Nordstadt

2

Sunday, February 24th 2002, 8:43pm

am einfachsten ist natürlich immer ausprobieren :-)

aber mit Überlegen gehts auch:

normalerweise werden die Datein folgendermaßen erstellt:

u g o
rwx rwx rwx
110 110 110

mit umask 026 siehts so aus

rwx rwx rwx
110 110 110

maskiert durch

000 010 110
------------------
110 100 000

beim Verzeichnis ist es ähnlich:

rwx rwx rwx
111 111 111
maske:
000 010 110
-----------------
111 101 001

jetzt umask auf 067:

cp dl d2

Schutzbits von dl:
rwx rwx rwx
110 100 000
maske:
000 110 111
d2:
110 000 000

Falls noch Fragen bestehen, einfach nochmal posten.

Grüße,

Fabian

Diktator

Senior Schreiberling

  • "Diktator" is male
  • "Diktator" started this thread

Posts: 605

Date of registration: Feb 12th 2002

Location: Region Hannover

Occupation: Gartenbau

3

Sunday, February 24th 2002, 9:45pm

also

seh ich das richtig, dass normale dateien das x-recht immer auf null haben, egal welches unmask?
Diktator
Holzhacken ist deshalb so beliebt, weil man bei dieser Tätigkeit den Erfolg sofort sieht. - Albert Einstein

  • "chefstatist" is male

Posts: 57

Date of registration: Jan 9th 2002

Location: Hannover-Nordstadt

4

Sunday, February 24th 2002, 9:49pm

jau.

Ausnahme: Executables, zum Beispiel erzeugt vom Compiler. Oder auch Shell-Scripts (aber da musst Du das x-Bit per Hand setzen).

MAX

Senior Schreiberling

  • "MAX" is male

Posts: 822

Date of registration: Dec 11th 2001

Location: Hannover

5

Sunday, February 24th 2002, 9:53pm

Das ist richtig!!!

Als Antwort auf deine Frage verweise ich auf Seite 40 von E2!!!

Aus dem Skript

Quoted

Das x-Bit wird (automatisch) nur für Verzeichnisse erzeugt oder für Ergebnisse von Compile-Läufen (executables).

Also anguken!!!
mfg
MAX

PS: und wieder war ich zu spät