支付小程序的开发全攻略
694
2022-09-24
solaris user management
###User management -shell-based tools###useradd -add user to /etc/passwd /etc/shadowexample /etc/passwd entry: root:x:0:0:super-user:/:/usr/bin/bash
username:password/shawon(x):uid:gid:description:home_directory:default_shell
Note:root's uid/gid values are always 0Note: value 0-99 of uid/gid are reserved for system IDs.Note: Max uid/gid = 2billion, however,try not to exceed 60,000Note: Unix Expoch was Jan. 1, 1970/etc/passwd:root:x:0:0:super-user:/:/usr/bin/bash/etc/shadow:root:9NFYy4IvncBUM:6445::::::username:encrypted_password:num_of_days_since_epoch_password_changed:min_hole_period:max_hold_period:num_of_days_prior_to_expiration_to_issue_warning:inactivity_limit:expiration_date_using_unix_epoch;failed_login_count
###create user named 'unixcbt'/etc/passwd:unixcbt:x:100:1::/export/home/unixcbt:/usr/bin/bash
/etc/shadow:unixcbt:pmfDJzZ5sE02Y:13273::::::abc12345678abc12345password algorithms are defined in '/etc/security/policy.conf'change CRYPT_DEFAULT=md5
### To change user's password use 'passwd' command###usermod -d /export/home/unixcbt unixcbtusermod -s /usr/bin/bash unixcbt
###controlling the default password length policy###/etc/default/passwdPASSLENGTH=8
###Group management###groupadd /groupmod/newgrp/groups/etc/group -houses groups on the solaris boxadm::4:root,daemongroup_name:optional_password:GID:list_of_members(comma-delimited)
create groups using 'groupadd'groupadd traininggroppadd -g GID group_name
rules regarding groups:A user can belong to 1 primary group and up to 15 secondary groupsprimary groups: permit the operating system to assign a default group to objects(files/directories)secondary groups: permit subjects (users) the flexibility to access various grouop-protected resources
How to tell primary and secondary groups of users?id - tells primary groupgroups
How to assign existing users to a newly-created group?usermod -G group1,group2,group3...usermod -G trainging unixcbt
How to create new user and assign the user to the 'training' secondary group?useradd -G training -s /usr/bin/bash unixcbt2
How to change default/primary group temporarily?groupsnewgrp group_name
### solaris management console(SMC)###smc consist of primarily 3 components:1.client2.server - binds to TCP:898 - /etc/init.d/init.wbem3. toolboxes
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。