Sticky bit

Sticky bit

Sticky bit — дополнительный атрибут файлов или директорий в операционных системах семейства UNIX.

Содержание

История

Впервые sticky bit появился в пятой редакции UNIX в 1974 году для использования в исполняемых файлах. Он применялся для уменьшения времени загрузки наиболее часто используемых программ. После закрытия программы код и данные оставались в памяти, а следующий запуск происходил быстрее.

Использование

Сегодня sticky bit используется в основном для директорий, чтобы защитить в них файлы. Из такой директории пользователь может удалить только те файлы, владельцем которых он является. Примером может служить директория /tmp, в которой запись открыта для всех пользователей, но нежелательно удаление чужих файлов. Установка атрибута производится утилитой chmod.

В операционной системе Solaris для файлов, не являющихся программами, имеет строго противоположное действие - запрещает сохранение данных этого файла в системном кэше.

Примеры

chmod 1xxx {имяфайла}, где xxx права на файл.

См. также

Примечания

Литература

  • Робачевский А. Н., Немнюгин С. А., Стесик О. Л. Глава 1. Работа в операционной системе UNIX // Операционная система UNIX. — 2-е изд. — СПб.: БХВ-Петербург, 2008. — С. 40–43. — 656 с. — ISBN 978-5-94157-538-1

Ссылки

  • chmod(1) — страница справки man по пользовательским командам GNU/Linux  (англ.)

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Полезное


Смотреть что такое "Sticky bit" в других словарях:

  • Sticky Bit — Das Sticky Bit (auch t Bit oder Save Text Bit) ist ein erweitertes Dateirecht, d. h. ein Dateiattribut unter Unix. Es wirkt sich auf Verzeichnisse und Dateien unterschiedlich aus. Inhaltsverzeichnis 1 Notation 2 Wirkung 2.1 Bei au …   Deutsch Wikipedia

  • Sticky bit — Das Sticky Bit (auch t Bit oder Save Text Bit) ist ein erweitertes Dateirecht, d. h. ein Dateiattribut unter Unix. Es wirkt sich auf Verzeichnisse und Dateien unterschiedlich aus. Inhaltsverzeichnis 1 Notation 2 Wirkung 2.1 Bei ausführbaren… …   Deutsch Wikipedia

  • Sticky bit — Este artículo o sección necesita referencias que aparezcan en una publicación acreditada, como revistas especializadas, monografías, prensa diaria o páginas de Internet fidedignas. Puedes añadirlas así o avisar …   Wikipedia Español

  • Sticky bit — The sticky bit is an access right flag that can be assigned to files and directories on Unix systems.HistoryThe sticky bit was introduced in the Fifth Edition of Unix in 1974 for use with pure executable files. When set, it instructed the… …   Wikipedia

  • sticky bit — noun a) A fault in a digital circuit, where a signal does not change as expected, but remains always in one state. b) A bit in an inode indicating that an executable program should be kept in memory after it terminates …   Wiktionary

  • Sticky — Stickiness or the quality of being sticky can refer to several things: * the physical phenomena of adhesion and cohesion * the defining physico chemical property of glue * Sticky (economics) * Sticky (comics) * Sticky content on the Web attracts… …   Wikipedia

  • Sticky bomb — For other uses, see Sticky bomb (disambiguation). Sticky bomb Close up view of sticky bombs being manufactured Type Anti tank hand grenade Place …   Wikipedia

  • sticky — (1) A term used by economists to describe changes in dependent variables that tend to lag behind changes in the independent variables with which they are associated. For example, time lags are known to exist between changes in prevailing interest …   Financial and business terms

  • sticky wicket — noun : a difficult or delicate problem or situation * * * 1. Cricket. the area of ground around a wicket when it is tacky because of recent rain and therefore does not allow the ball to bounce well. 2. Chiefly Brit. a situation requiring delicate …   Useful english dictionary

  • X-Bit — Unter Unix Dateirechten versteht man bei Unix Derivaten wie Linux und Mac OS X eine der ersten Implementierung von Dateiberechtigungen, die es bereits in der ersten Version Anfang der 1970er Jahre des AT T Unix gab. Diese Dateirechte zeichnen… …   Deutsch Wikipedia


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»