Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

FIXPERM(8)

��������
fixperm - ������������ � �������������� ����� ������� � ����� ������������� �� �����.

���������

 fixperm [-cfgilnsvwDS [-d package]] specfile

��������
fixperm ��������� ������������ ������������� ���� � ������ ������ ����� ������������ specfile c ��������������� �������������. fixperm ������ ������������ ��� ���������������� ������� UNIX ����� �����������. ������������������� ������������ ����� ������������ fixperm ������ � ������� -n, -f, -D ��� -l. ��� ������������� ������ ����� ��������� ������ ������������������ ������������.

���� ������������ ����� ��������� ������: ������ �������� ������ �������� ���� �����������, ���� ������������ ��������. ������������ ��������� ����� ����� �� ����� # �� ����� ������. �� ���� ������ ���������� ���� ������������. ���������������� � ��������� �������������� ������ ���������� � ������ ����� ����� ��� ������� ������������ � ��� ������ ������, ����������� � ���� �����. ��������� ����� ����������� �����: ������ ���� ��������� �� ��� �������������� (���� uid - ����������������, ���� gid - ���������), ������ ���� �������� ������� ������ �� ������������� � ������ ���� �������� ��������������� �������������. ��������:

   uid    root    0

������������ �������� ������� �� ��������� ������, ������������ ����������, ������������ ���������� ��������� � ������, ���������� ������ � ���� ������, ����� ����� � ��������������� ������ ����.

��������� ������ - ��� ������������ ������ ������ ��������� �����������. ����� - ��� ����� ������.

�� ���������� ������ ������� ������������ ����������. ������������ ���������� ������� �� ���� �����, ��������� ������������ ����������. ������������ �������� ����� ���� ����� �� ��������� ��������:

���� ������������ �������� ������� �������� ������, �� ��������� � ��� ���� - ������������, � fixperm �� ��������� ��������� �� ������, ���� �� �����������.

��������� ������������ ���������� ������������� �����, ��������� � chmod(1). ������������ ���������� ��������� � ������ ��������� � ������� ������� � ��������� ����� ������, ��������: "bin/bin". � ��������� ������� ���������� ���������� ������. ���� ������� ����� � ������, �� � ��������� ������ ���������� ��� ���������� ����� � ������ ������. ����� ������� �������� �������� ����. ���� ������ ���� �������������, �� ���� �� ������ ��������� ����� ����� "/". ������ ������� ������������ ������ ��� ����������� ������ � �������� �������(�������) � ����� ����� ��������� ��� ������ �����.

�����
-c������� ������ ����� � ��������. ����� ������� ��� ������������ ����� ���������.
-g������ ��� fixperm ������������ ���������, ��������� � ������ permlist (���������� ��������� -f, ��������� ������ ������ �� ����������� �����). �� �������� ������� ���������.
-d package������������ ������ �����, ������� �� ������ ��������� ��������� ������ (�������� ����). ��������, -dBASE ������������ ������ �� ��������, ������� ����������� ��������� ������ ������ BASE. �� ��������� �������������� ��� ������.
-u package��� � � ����� -d, � ��� ��������, ��� �������������� �������, �� ���������� ������ ��������� ������.
-f������ ����� ������ �� ����������� �����. ����� ���������� �� ��������������.
-i��������� �������� ��������� �������� �������. ������������ ��������:
  • 0 ����� ���������� ���������
  • 4 ����� �� ����������
  • 5 ����� ���������� ��������
-l������ ����� � �������� �� ����������� �����. ����� ���������� �� ��������������.
-n������� ������ ��������� �� �������. ����� ���������� �� ��������������.
-D������ �������� ������ �� ����������� �����. ����� ���������� �� ��������������.
-v������������ �����; ��������, ���� ����������� ����� �� �����������, �� ����� �������������� �����, �� �������� ���������� I � D ��� �� �������������.
-s� ���������� � ��������� ������ ������ permlist ������������ ����������� ����� ���������.
-w������ ���������� � ���, ��� (�� ����� ����) ������������� �������� ����� � ��������.

��������� ��� ������ ��������� ����������� � �������� tar(1) ��� ������������� ������ ������ �� perms/inst � /dev/sample:

      /etc/fixperm -f /etc/perms/inst > list
      tar cfF /dev/sample list
� ��������� ������� �������� ������ ��������� �� ������� ��� ������ BASE:
      /etc/fixperm -nd BASE

����������
������ fixperm ����������� ������ ����������-��������� �� ����� �����������.

��. �����
custom(8)
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT