NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
adding machines/users through the CLI

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> NEXTSTEP / OPENSTEP Software
View previous topic :: View next topic  
Author Message
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Wed Jun 07, 2017 6:31 am    Post subject: adding machines/users through the CLI Reply with quote

Some things (cvs) will fail to connect to strict ip addresses, it wants a name. So to add an IP into the netinfo db it would be something like this:
Code:

niutil -create . /machines/192.168.1.104
niutil -createprop . /machines/192.168.1.104 name 192.168.1.104
niutil -createprop . /machines/192.168.1.104 ip_address 192.168.1.104



to add a hostname:
Code:
niutil -create . /machines/radhost
niutil -createprop . /machines/radhost name radhost
niutil -createprop . /machines/radhost ip_address 192.168.1.104


and for adding a user:

Code:
niutil -create . /users/neozeed
niutil -createprop . /users/neozeed name neozeed
niutil -createprop . /users/neozeed uid 100
niutil -createprop . /users/neozeed passwd
niutil -createprop . /users/neozeed gid 100
niutil -createprop . /users/neozeed realname Nobody Special
niutil -createprop . /users/neozeed shell /bin/tcsh
niutil -createprop . /users/neozeed home /Local/Users/neozeed


I'm 99.999% sure you don't need the 'name' property as it seems awfully redundant. Rolling Eyes
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> NEXTSTEP / OPENSTEP Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group