Управление правами на NSS из командной строки

Обсуждение технических вопросов по продуктам Novell под Linux, а также *nix систем

Управление правами на NSS из командной строки

Сообщение Антон Фридрих » 03 дек 2007, 09:22

Ищется утилита командной строки для управлением правами на тома NSS. Сервера OES Linux. Может кто подскажет.
Аватара пользователя
Антон Фридрих
 
Сообщения: 606
Зарегистрирован: 09 фев 2006, 07:55
Откуда: Красноярск

Сообщение Андрей Фисенко » 03 дек 2007, 11:18

Антон! Ты что? С дуба рухнул?

rights --help

THIS UTILITY WILL ONLY WORK WITH FILES IN THE NSS FILE SYSTEM

Usage: rights [OPTIONS]
rights [ROPTIONS] trustee USERNAME
rights [FOPTIONS] delete USERNAME
rights [ROPTIONS] irf
rights [FOPTIONS] effective [USERNAME]
rights [FOPTIONS] inherited USERNAME
rights [FOPTIONS] show

The action to be taken is indicated by the first argument
trustee : Add or modify a trustee on a file/directory
delete : Remove a trustee from a file/directory
irf : Set the inherited rights filter on a directory
effective : Display a user's effective rights
inherited : Display the inheritance for a user to a file
show : Display the trustees and inherited rights filter

OPTIONS
-v, --version Display the program version information version
-h, --help Display the help screen

FOPTIONS (options for all commands except --help and --version)
-f, --file=filename The name of file/directory to be used in the operation.
If not specified the current directory is used.
ROPTIONS
-r, --rights=MASK The rights for the operation.
For trustees, if no rights are assigned then the trustee is removed. If not specified the default is read and file scan.
For inherited rights filters the default is all rights are inherited
-f, --file=filename The name of file/directory to be used in the operation.
If not specified the current directory is used.

USERNAME The username is the name of an eDirectory object
including the tree name
MASK The mask is a string of characters with each character
representing a type of rights:
s Supervisor
r Read
w Write
c Create
e Erase
m Modify
f File scan
a Access control
none No rights
all All rights

Example: rights -f /designs/topsecret -r rwfc trustee joe.engineer.acme_tree

This command adds read, write, file scan, and create rights to the /designs/topsecret directory for user joe in the engineer context of the acme directory tree.
Андрей Фисенко
 
Сообщения: 1311
Зарегистрирован: 05 июн 2002, 08:13
Откуда: Красноярск

Сообщение Антон Фридрих » 03 дек 2007, 11:23

вот спасибо большущее, даже и не знал про такую )
Аватара пользователя
Антон Фридрих
 
Сообщения: 606
Зарегистрирован: 09 фев 2006, 07:55
Откуда: Красноярск


Вернуться в *nix

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 15

cron