/etc/passwd
/etc/passwd /etc/groups /etc/hosts /etc/passwd
/etc/passwd nobody:*:-2:-2:unprivileged User:/nohome:/noshell root:*:0:0:system Administrator:/var/root:/bin/tcsh daemon:*:1:1:system Services:/var/root:/noshell smmsp:*:25:25:sendmail User:/private/etc/mail:/noshell www:*:70:70:world Wide Web Server:/Library/WebServer:/noshell mysql:*:74:74:mysql Server:/nohome:/noshell sshd:*:75:75:sshd Privilege separation:/var/empty:/noshell unknown:*:99:99:unknown User:/nohome:/noshell
/etc/passwd
nibindd /etc/ hostconfig /etc/hostconfig NETINFOSERVER=-AUTOMATIC- emacsvi NETINFOSERVER=-YES- /etc/hostconfig sudo -s /etc/hostconfig % sudo -s Password: ***** # cp /etc/hostconfig /etc/hostconfig.dist # emacs /etc/hostconfig # exit sudo-s /etc/hostconfig
nidomain -l % nidomain -l tag=local udp=1033 tcp=1033 % nidomain -m test nidomain -l % nidomain -l tag=local udp=1033 tcp=1033 tag=test udp=1001 tcp=859 niutil % niutil -list -t localhost/test / 1 machines % niutil -list -t localhost/test /machines 2 myhost % niutil niutil -read -t localhost/test /machines/myhost name: myhost ip address: 172.16.30.221 serves:./test niutil -list -read nidomain 1033 sudo nidomain -m test
niload nidump % nidump passwd -t localhost/local grep ^naito: naito:xxxxxxxxxxxxx:501:20::0:0:hisashi NAITO:/Users/naito:/bin/tcsh nidump testuser:xxxxxxxxxxxxx:502:20::0:0:test user:/users/testuser:/bin/tcsh /tmp/passwd niload % niload -m passwd -t localhost/test < /tmp/passwd % nidump passwd -t localhost/test testuser:xxxxxxxxxxxxx:502:20::0:0:testuser:/users/testuser:/bin/tcsh niutil % niutil -list -t localhost/test / 1 machines 3 users % niutil -list -t localhost/test /users 4 testuser % niutil -read -t localhost/test /users/testuser home: /Users/testuser name: testuser passwd: XXXXXXXXXXX realname: testuser shell: /bin/tcsh uid: 502
niutil -rparent % niutil -rparent -t localhost/local root domain: no parent % niutil -rparent -t localhost/local localhost/test
* /Library/SystemConfiguration/preferences.plist
passwd niutil % niutil -list -t 172.16.xx.xxx/test / 1 machines 3 users 5 groups trusted_networks % niutil -t -createprop localhost/test / trusted_networks 172.16.254.0/24 % niutil -t -read localhost/test / master: myhost trusted_networks: 172.16.254.0/24 trusted_networks niload 172.16.254.1 172.16.254.1/32
top test local otherhost1 local myhost local otherhost2 top serves:./top, localhost/test test serves:./test,../top local local local otherhost1 myhost otherhost2 % niutil -t -appendprop localhost/top /machines/myhost serves./top % niutil -t -appendprop localhost/top /machines/myhost serves localhost/test % niutil -t -appendprop localhost/test /machines/myhost serves./test % niutil -t -appendprop localhost/test /machines/myhost serves../top
% niutil -t -rparent localhost/test /machines/myhost localhost/top root domain:no parent nibindd top test local otherhost1 local myhost local otherhost2
/LDAPv3/ldap.math.nagoya-u.ac.jp ldap.math.nagoya-u.ac.jp
math.nagoya-u.ac.jp dc=math,dc=nagoya-u,dc=ac,dc=jp o=graduate_school_of_mathematics_nagoya_university_japan math.nagoya-u.ac.jp dc=math,dc=nagoya-u,dc=ac,dc=jp ou=people,dc=math,dc=nagoya-u,dc=ac,dc=jp ou=hosts,dc=math,dc=nagoya-u,dc=ac,dc=jp uid=naito,ou=people,dc=math,dc=nagoya-u,dc=ac,dc=jp dn:dc=math,dc=nagoya-u,dc=ac,dc=jp dn:ou=people,dc=math,dc=nagoya-u,dc=ac,dc=jp dn:ou=hosts,dc=math,dc=nagoya-u,dc=ac,dc=jp dn:uid=naito,ou=people,dc=math,dc=nagoya-u,dc=ac,dc=jp cn:hisashi NAITO uid:naito homedir:/home/naito userpassword:xxxx
cn sn givenname mail mail
userpassword userpassword userpassword ou=people,dc=... ou=people naito
/BSD/local /BSD/xxx /BSD/local /BSD/xxx xxx
/home /home/foo software LocalApps /home /home/foo LocalApps System Disk System Disk Applications LocalApps HOME HOME Other Disk LocalApps Applications LocalApps nfsserver client1 and client2 /usr/local /etc/fstab /etc/vfstab /etc/fstab
FOO/Volumes/FOO /home /etc/exports /home client1 client2 FOO /etc/exports /Volumes/FOO client1 client2
mountd /etc/exports -ro -network 172.16. -mask 255.255.0.0 172.16.0.0/16 -maproot -mapall -maproot -mapall -maproot=bar -mapall=foo /etc/exports /home /home/foo -alldirs /etc/exports /home 172.16.xxx.yyy /home client1 /home -ro -network 172.16 mask 255.255.0.0 exportfs -a exportfs
/shared /shared -mapall=foo client /shared /etc/exports /home client1 client2 /Volumes/FOO -ro client1 client2 /home FOOFOO /etc/exports /BSD/local /etc/exports
/home nfserver /home /home nfs rw /Volumes/FOO nfserver /Volumes/FOO /Applications/LocalApps nfs ro fstab /tmp/fstab nfsserver:/home - /home nfs - yes rw nfsserver:/volumes/foo - /Applications/LocalSoftwares nfs - yes ro /tmp/fstab % niload -m fstab -t localhost/top < /tmp/fstab
niutil % niutil -list -t localhost/top /mounts 5 nfsserver:/home 6 nfsserver:/volumes/foo % niutil -read -t localhost/top 5 dir: /home dump_freq: 0 name: nfsserver:/home opts: rw passno: 0 vfstype: nfs % niutil -read -t localhost/top 6fg dir: /Applications/LocalApps dump_freq: 0 name: nfsserver:/volumes/foo opts: ro passno: 0 vfstype: nfs ou=mounts,dc=... dc=math,dc=nagoya-u,dc=ac,dc=jp
dn: ou=mounts,dc=math,dc=nagoya-u,dc=ac,dc=jp ou: mounts objectclass: top objectclass: organizationalunit dn: cn=nfsserver:/home,ou=mounts,dc=math,dc=nagoya-u,dc=ac,dc=jp mountoption: rw mounttype: nfs cn:rabbit:/home objectclass: mount objectclass: top mountdumpfrequency: 0 mountdirectory:/home mounthost: nfsserver dn: cn=nfsserver:/volumes/foo,ou=mounts,dc=math,dc=nagoya-u,dc=ac,dc=jp mountoption: rw mounttype: nfs cn:rabbit:/home objectclass: mount objectclass: top mountdumpfrequency: 0 mountdirectory: /Applications/LocalSoftwares mounthost: nfsserver /Volumes/FOO /Applications/LocalApps
fools._foo._foo foo._foo rm /Developer/Tools/SplitForks /System/Library/CoreServices/FixupResourceForks FixupResourceForks
MD5 TLS TTLS PEAP PreShared Key 802.1x EAP TKIP WPA PPP LAN Ethernet 802.1x
802.1X
pem p12 der
VPN VPN PC
VPN VPN PC
VPN VPN PC