1. Trang chủ
  2. » Công Nghệ Thông Tin

HP-UX/Tru64 UNIX System Administration Interoperability phần 10 pot

36 239 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề User And Group Account Administration
Trường học University of Information Technology
Chuyên ngành System Administration
Thể loại bài luận
Thành phố ho chi minh
Định dạng
Số trang 36
Dung lượng 2,43 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Commands and Utilities The User and Group Accounts portion of the HP-UX SAM utility and the Tru64 UNIX SysMan Account Management utility both offer a graphical user interface for adding

Trang 1

Group Accounts

Group accounts offer a means of sharing system resources among certain users and restricting them from others It is possible, even necessary, for some users to be assigned to more than one group This section describes the commands and utilities, and the tasks involved for adding, modifying, and removing group accounts on each operating system

The group account nobody differs between both operating systems Under HP-UX, this account cannot own any files; under Tru64 UNIX, the nobody user account can own files

Group Identifiers

It is important to note that there are discrepancies between the operating systems in the assignment of group identifiers (GIDs) to group accounts

Commands and Utilities

The User and Group Accounts portion of the HP-UX SAM utility and the Tru64 UNIX SysMan Account Management utility both offer a graphical user interface for adding, modifying, and deleting group accounts Also, both operating systems offer the groupadd, groupmod, and groupdel commands

Table 15-3 Default Group Identifiers

Tru64 UNIX

8 not assigned news 102 cd write not assigned

9 not assigned opr

10 tty not assigned

12 not assigned lp, lpr 65534 not assigned nobody

13 not assigned backup

14 not assigned cron -2 nogroup not assigned

21 not assigned ris

Trang 3

SysMan Account Manager

The Tru64 UNIX SysMan interface also provides a utility that enables you to add, modify, and delete group accounts This is the preferred method under Tru64 UNIX The following illustrates the Manage Local Users window of the SysMan Account Manager utility This chapter provides step-by-step information on how to manage local group accounts using this utility

The groupadd command

This command creates a group on the system by adding the appropriate entry to the /etc/group file Both operating systems have the same options, but Tru64 UNIX also features the following options:

Tru64 UNIX -P creates a PC group only

-x extended_option allows you to enter any number of extended options

See the appropriate groupadd reference page for more information

Trang 4

Chapter 15

328

The groupmod command

This command modifies an existing group account on the system by changing the appropriate entry in the /etc/group file Both operating systems have the same options, but Tru64 UNIX also features the following options:

Tru64 UNIX -D displays and sets the default values used by the account management utilities

-P modifies a PC group, which was created with the groupadd command

-x extended_option allows you to enter any number of extended options

See the appropriate groupmod reference page for more information

The groupdel command

This command deletes a group account from the system There are no options in the HP-UX version of this command, but Tru64 UNIX also features the following options:

Tru64 UNIX -P removes a PC group only

-x extended_option allows you to enter any number of extended options

See the appropriate groudel reference page for more information

Creating a Group Account

The following sections describe how to add a group account using the HP-UX System Administration

Manager and the Tru64 UNIX Account Management under SysMan

Creating a Group Account using HP-UX SAM

Follow this procedure to create, or add, a group account:

1 Log in as root or use the su command to switch user to superuser

2 Invoke SAM

3 Select the Accounts for Users and Groups icon The Accounts for Users and Groups window opens

4 Select the Groups icon The Groups dialog box opens

Trang 5

5 Select Actions->Add The Add a New Group dialog box opens.

6 Enter the Group Name

7 The Group ID field displays the next available GID To change it, first verify that the GID you want to assign does not belong to any other group on the system, then enter the new GID

8 Optionally select users from the Users to Include in Group list

9 Select OK

The dialog box closes and a confirmation dialog box announces that the group is being added to the system The Groups dialog box is updated to list the new group account

Trang 6

Chapter 15

330

Creating a Group Account using Tru64 UNIX SysMan Account Management

Follow this procedure to create, or add, a local group account:

1 Log in as root or use the su command to switch user to superuser

2 Invoke the SysMan Account Management utility in any of the following ways:

• Enter the command sysman to open the SysMan Main Window, select Accounts, select Manage Local Groups

• Enter the command sysman accounts, select Manage Local Groups

• Enter command sysman groups

The Manage Local Groups dialog box opens

3 Select Add to display the Add a Group dialog box

4 Enter the group name in the Group name: field

5 Either enter the group identifier (GID) in the Group ID field or leave it blank, which causes Account Management to use the next available GID Ensure that the GID you enter does not already exist

6 Select a user from the list shown and select Apply to assign that user to the group Repeat this step for each group member

Trang 7

Group members are highlighted in the list Select the user again and select Apply to remove a user from the group.

7 Select OK

Modifying a Group Account

The following sections describe how to modify a group account using the HP-UX System Administration Manager and the Tru64 UNIX Account Management under SysMan Such modifications are assigning new group members and removing others

Modifying a Group Account using HP-UX SAM

Follow this procedure to modify a group account:

1 Log in as root or use the su command to switch user to superuser

2 Invoke SAM

3 Select the Accounts for Users and Groups icon The Accounts for Users and Groups window opens

Trang 8

Chapter 15

332

4 Select the Groups icon The Groups dialog box opens

5 Select the group from the list shown

Trang 9

6 Select Actions->Modify The Modify an Existing Group dialog box opens.

7 Optionally change the Group Name by entering the new name in the corresponding field

8 Optionally change the Group ID by entering its value in the corresponding field

CAUTION Exercise care when changing the Group ID Ensure that the new Group ID is not already

used by another group

Trang 10

Modifying a Group Account using Tru64 UNIX SysMan Account Management

Follow this procedure to modify the parameters of a local group account:

1 Log in as root or use the su command to change user to super-user

2 Invoke the SysMan Account Management utility in any of the following ways:

• Enter the command sysman to open the SysMan Main Window, select Accounts, select Manage Local Groups

• Enter the command sysman accounts, select Manage Local Groups

• Enter command sysman groups

Trang 11

The Manage Local Groups dialog box opens.

3 Select the group account from the list in this dialog box

4 Select Modify to display the Modify a Group dialog box This dialog box is nearly identical to the Add a Group dialog box

Current group members are highlighted

5 Optionally change the group name in the Group name: field

6 Optionally change the group identifier (GID) in the Group ID field or leave it blank, which causes Account Management to use the current GID Ensure that the GID you enter does not already exist if you decide

Trang 12

Chapter 15

336

9 Select Exit to close the Manage Local Groups dialog box

Deleting a Group Account

The following sections describe how to delete a group account from the system using the HP-UX System Administration Manager and the Tru64 UNIX Account Management under SysMan

Deleting a Group Account using HP-UX SAM

Follow this procedure to delete a group account:

1 Log in as root or use the su command to switch user to superuser

2 Invoke SAM

3 Select the Accounts for Users and Groups icon The Accounts for Users and Groups window opens

4 Select the Groups icon The Groups dialog box opens

5 Select the account from the list of Groups

Trang 13

6 Select Actions->Remove The Remove Selected Group dialog box opens.

7 Select the appropriate option for handling the group’s files

8 Select OK

9 Select Exit to close the Manage Local Groups dialog box

The dialog box closes and a confirmation dialog box announces that the group is being removed The Groups dialog box is updated accordingly

Trang 14

Chapter 15

338

Deleting a Group Account using Tru64 UNIX SysMan Account Management

Follow this procedure to delete a local group account:

1 Log in as root or use the su command to change user to super-user

2 Copy or archive any directories or files for that group that may be needed by another group or user

3 Invoke the SysMan Account Management utility in any of the following ways:

• Enter the command sysman to open the SysMan Main Window, select Accounts, select Manage Local Groups

• Enter the command sysman accounts, select Manage Local Groups

• Enter command sysman groups

The Manage Local Groups dialog box opens

4 Select the group to be deleted from the list of group accounts in the Manage Local Groups dialog box

5 Select Delete A confirmation dialog box opens

6 Select OK to delete the group account

7 Select Exit to close the Manage Local Groups dialog box

Trang 15

This appendix illustrates the different file system hierachies used by both the HP-UX and Tru64 UNIX operating systems.

Trang 20

Appendix A

344

Tru64 UNIX Files

The following illustrates the hierarchy of files in a Tru64 UNIX operating system

Trang 25

This appendix provides additional references for the system administrator on HP-UX, Tru64 UNIX, and the UNIX operating system and utilities in general.

Trang 27

HP-UX Documentation

Marty Poniatowski, HP-UX 11i System Administration Upper Saddle River, NJ: Prentice-Hall PTR

(Hewlett-Packard Professional Books), 2001

Managing Systems and Workgroups: A Guide for HP-UX System Administrators, Edition 5 Hewlett-Packard

Company Available online at docs.hp.com

HP-UX 11i Version 1.6 Installation and Configuration Guide, Edition 1 Hewlett-Packard Company

Available online at docs.hp.com

Trang 28

Appendix B

352

Tru64 UNIX Documentation

Matthew Cheek, Scott Fafrak, Steven Hancock, Martin Moore, Gregory Yates, Tru64 UNIX System

Administrator’s Guide Boston, Massachussets: Digital Press, 2002.

System Administration Hewlett-Packard Company Available online at

Trang 29

Bootable Tape Creation utility 55

buffer overflow protection 246

cron jobs 237, 238CSPs 256

Custom Patch Manager 255

D

dcopy command 269, 286

dd command 57defragment command 286depot 251, 258, 259, 260, 261device file naming conventions 85device special files 80

creating 90

df command 269, 273, 279, 286DHCP 107

set up 131DHCP server 108set up 118Disk Configuration utility 286disk partitioning 274

diskinfo command 92, 279disklabel command 274, 279, 287disks, monitoring 179

diskusg command 279Division of Privileges 49dmesg command 92DNS 107

configuration 135resolution 138DNS serverconfiguration 141doconfig command 102documentation 35Domain Name System 107dsfmgr command 92

du command 279dump command 57, 268dump space

calculating 67dumpfs command 268dupatch command 256, 258duplex mode 110

dxarchiver utility 272dxsysinfo utility 181, 290Dynamic Host Configuration Protocol 107dynamic routing 107, 125

E

edquota command 287emacs 25

Trang 30

HFS 264host equivalency fileset up 115host namealias 111resolution 106setup 122hostname command 171hosts equivalency file 108set up 128

hosts file 106, 108, 126, 155set up 112

hpux secondary system loader 296hwmgr command 48, 92

I

identification and authentication 241ifconfig command 171

Ignite-UX 27, 55, 252, 258init 298, 302

initial system loader 296insf command 92Insight Manager 32, 51Interactive backup using SAM 56Internet Protocol Address 107resolution 107

Internet Protocol Security 247Interprocess Communication Facility 179ioscan command 47, 93

iostat command 182, 233

IP address 111, 113, 122static 107

IPC statusmonitoring 179ipcs command 182

Trang 31

modifying to add a device 91

kernel file location 98

Kernel Tuner utility 76, 103

License Unit Requirement Table 257

Lightweight Directory Access Protocol 107

lvreduce command 288lvremove command 288lvrmboot command 288lvsplit command 288lvsync command 289

M

mail configuration 163, 164mail services 107

major device number 82make_recovery command 55MAKEDEV command 93MC/Service Guard 29Memory page classes 65mfs command 267minor device number 82mk_kernel command 102mkdir command 267, 272, 288mkfdmn command 289mkfs command 289mkfset command 289mknod command 93mksf command 94model command 94monitoring disks 279mount command 267, 272, 278, 289mount_hfs command 289

mount_vxfs command 289mounting CD-ROMs 278multi-user state 302

N

Name Service Switch 244named command 174ncheck command 269, 272ndd command 174netfmt command 174netstat command 174, 183

Trang 32

Network File System 106

Network Information Service 106

Network Information Service Plus 106

Network Interface Card 108, 119

Network Lock Manager 106

network mask 122

network security 247

Network Setup Wizard 119

Network Status Monitor 106

networked printer, adding 208

adding 199, 201controlling 213disabling 216enabling 216removing from printer spooler 220printer classes 222

printer priorities 214printer spoolerinitializing 198removing printer 220restarting 218starting 218stopping 218priorities, assigning to processes 226process management 225

job control 231killing a process 230Process Resource Manager 27Process Tuner utility 234processor dependent code 296processors, monitoring 179product 260

Product Authorization Key 257

ps command 234psrinfo command 184pvchange command 290pvck command 290pvcreate command 290pvdisplay command 279, 290pvmove command 290pvremove command 290

Q

quota command 279quotacheck command 290

R

rdump command 57, 268real-time priorities 226reject command 194Release Patch Kit 255Remote Execution Facility 106remote printer, adding 203Remote Procedure Call 106remote who daemon 130remote who services, set up 130renice command 234

Trang 33

Secure Socket Layer 247

Secure Web Console 28

signals 229single user state 302sizer command 24software

bundle 250, 251depot 251fileset 251installing 250product 251subproduct 251subsets 251, 259Software Distributor-UX 27software licensing 257software management 249software patches 255SRM console 297default settings 300SRM environment variable 297, 302stanza command 102

static routing 107, 123storage 263

subnet mask 111subproduct 260sudo command 50superuser access 241swacl command 259swagent command 260swagentd daemon 260swap space 283swapinfo command 290swapon command 290swconfig command 260swcopy command 260swinstall command 260swlist command 253, 260swreg command 261swremove 261swverify command 261sys_check utility 103, 186sysconfig command 78, 102sysconfigdb command 102sysdef command 102SysMan Menu 32, 38, 42, 187defined 42

SysMan Station 32, 42, 43, 187defined 43

system activity, monitoring 180System Administration Manager 38

Trang 34

system management products 51

system reference manual console 297

vdump and rvdump commands 60

version of the Operating System 24

vgcfgdump and vgcfgrestore commands 61

vgchange command 291

vgchgid command 291

vgextend command 291vgimport command 291vgreduce command 291vgremove command 291vgscan command 291vgsync command 291vgvcfgbackup command 291vgvcfgrestore command 291virtual memory activity, monitoring 180Virtual Paritions (vPars) 29

vmstat command 189, 235volassist command 291voldctl command 291voldg command 279, 291voldisk command 279, 291voldiskadd command 291voldiskadm command 291voldiskedit command 291voldiskencap command 291voldisksetup command 291volevac command 291volinfo command 292volinstall command 292voliod command 292vollogcnvt command 292volmake command 292volmend command 292volmigrate command 292volmirror command 292volnotify command 292volplex command 292volprint command 279, 292volreattach command 292volreconfig command 291volrecover command 292volrestore command 292volrootmir command 292volsave command 292volsd command 292volsetup command 292volstat command 292voltrace command 292volume command 292volunmigrate command 292volunroot command 292volwatch command 292vrestore and rvrestore commands 60vxdg command 279

vxdisk command 279vxdiskadm command 292vxdiskusg command 293

Ngày đăng: 14/08/2014, 02:22

TỪ KHÓA LIÊN QUAN