BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanneKontakt

Dateiflags in einer FreeBSD Jail nutzen

Um Dateiflags, wie zum Beispiel schg oder sappnd, in einer Jail nutzen zu können, muss zuerst im Hostsystem die Variable security.jail.chflags_allowed auf 1 gesetzt werden.

Beispiel:

root@host# sysctl security.jail.chflags_allowed
security.jail.chflags_allowed: 0

root@jail# ls -aol
-rw------- 1 beat users - 618 Oct 5 15:20 testdatei
root@jail# chflags schg testdatei
chflags: testdatei: Operation not permitted

root@host# sysctl security.jail.chflags_allowed=1
security.jail.chflags_allowed: 0 -> 1

root@jail# chflags schg testdatei
root@jail# ls -aol
-rw------- 1 beat users schg 618 Oct 5 15:20 testdatei
root@jail# rm -f testdatei
rm: testdatei: Operation not permitted
Related Entries:
FreeBSD-Portbaum auf Fehler überprüfen
FreeBSD-Dokumentation auf bekannte Fehler prüfen
Abhängigkeiten eines Portes als Baum anzeigen
Tinderbox aufräumen
Wartezeit von tinderd ändern
Comments (2)  Permalink

Comments

Alain @ 07.10.2005 21:05 CEST
Waer kool, wenn du die Dateiflags noch ein bitzeli erklären könntest ;) OK, ich googles mal :)
Beat @ 08.10.2005 11:32 CEST
Ich hoffe Du hast was gefunden, sonst würde ich nächste Woche mal was kleines zu den Dateiflags schreiben...

add a comment

The Trackback URL to this post is:
http://www.chruetertee.ch/blog/plugin=trackback(44).xml
Trackbacks are moderated.

This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!

Name*
E-Mail
For Spammers Only
URL
Comment*
Notify me via E-Mail when new comments are made to this entry
Remember me (needs cookies)