LPS:Uživatelé a skupiny v PTS

Z HelpDesk

v priprave

skupiny

najdeme si volne id skupiny (skupiny maji zaporna cisla):

webs:~# pts exa -239
pts: User or group doesn't exist ; unable to find entry for (id: -239)

vytvorime skupinu s nalezenym volnym cislem:

webs:~# pts creategroup -name hades-host.zcu -id -239
group hades-host.zcu has id -239

kontrola:

webs:~# pts exa hades-host.zcu 
Name: hades-host.zcu, id: -239, owner: indy.root, creator: indy.root,
  membership: 0, flags: S-M--, group quota: 0.

přidáme stroj do skupiny (nejprve zkontrolujeme jestli uživatel existuje):

webs:~# pts exa 147.228.51.53
Name: 147.228.51.53, id: 302, owner: system:administrators, creator: indy.root,
  membership: 1, flags: S----, group quota: 20.

webs:~# pts adduser -user 147.228.51.53 -group hades-host.zcu

webs:~# pts mem hades-host.zcu
Members of hades-host.zcu (id: -239) are:
  147.228.51.53