NS3.3: managing deamons, services and preferences

NeXT Computer, Inc. -> NEXTSTEP / OPENSTEP Software

Title: NS3.3: managing deamons, services and preferences
Post by: lezardo on March 02, 2020, 10:33:27 AM
Hi,

After searching in the forum and the internet, I haven't found an easy way to manage deamons and running services. I would have expected an NeXTAdmin app to start/stop/enable/disable deamons .. but no.

Basically I scanned the port open on my nextstation and would like to stop finger, ftp, telnet, etc.

I haven't found a "service" command like linux.

Any help?

Also, another question: my preferences don't keep the language settings (for UI). the keyboard layout is kept but not the language. I have installed all languages available during installation. If I apply a change (language at first position in the list) .. I have to close/open a new session to see the new language. But If I reboot or shutdown .. this is not kept. (preferences app is set to start at login)

Is there another setting I'm missing?

Thank you

Title: Re: NS3.3: managing deamons, services and preferences
Post by: Rob Blessin Black Hole on March 04, 2020, 08:26:28 AM
Hello : Did you set a password for the me account and login as root through a login screen?
also set a password for the root account before networking .

Their is the Terminal app and under NeXT Tools you will see processes and console apps

This should help you quite a bit http://www.nextcomputers.org/NeXTfiles/Docs/NeXTStep/3.3/nsa/ the next network and administration guide :) , you should also have all the documentation installed under nextlibrary/bookshelves

Lots of good stuff here as well http://www.blackholeinc.com/docs/ 

Take a gander at our NeXT software archives as well http://www.nextcomputers.org/NeXTfiles/Software/  , the Peanuts.iso's are good as they have tons of NeXt 3rd party apps!

Hope that helps ! The language should stay in placeif the packages are installed, you can check your NeXTlibrary receipts directory to see....
Title: Re: NS3.3: managing deamons, services and preferences
Post by: lezardo on March 06, 2020, 09:58:00 AM
Hi Rob,

Thanks for the links.
I have the manual in paper (network and administration guide) and searched in it before posting ... but there is no real explanation about the default opened network services (ftp, telnet, smtp, etc). The book is more focused on User management, NetInfo, uucp, nfs. Even the section about rc scripts is bare minimal.

But I found what I was looking for. I was not familiar with BSD Unix flavor and I understand better now the init. The rc script has a section that starts inetd ... an old service manager (obsolete now) for classic network services.

So for the "new" NeXT guys around, you have to edit the /etc/inetd.conf as root and comment out the unsecured ftp, finger, telnet, etc. Then, restart the machine or kill the inetd process and start it again as root (/etc/inetd &)


Title: Re: NS3.3: managing deamons, services and preferences
Post by: crimsonRE on March 06, 2020, 09:58:21 PM
Interesting. I'll have to try to find some time to discover the interaction between the inetd daemon, and inetd.conf versus the 'services' directory of the netinfo db (which can be acted upon with nidump and niload, and presumably NetInfoManager.app)...which takes precedence? Is the netinfod daemon running on your machine?
Title: Re: NS3.3: managing deamons, services and preferences
Post by: lezardo on March 08, 2020, 11:46:32 AM
Hi,

The netinfo daemon is running on my machine but in local domain.
> ps -aux | grep netinfo ... shows /usr/etc/netinfod local
as NetInfoManager is set to local ("Open domain at startup: local").

To my own understanding, NetInfo daemon doesn't prevail over inetd, they are separated. I commented out the inetd section in the rc script and no basic internet services were on at startup (echo, ftp, telnet, finger, talk, etc.)

When you read the rc script on NS3.3 ... apart mach/system/boot stuff, the network sequence is like this:

/etc/rc.net      network interface setup
NIS domain
NetInfo (/usr/etc/nibindd)
Apple talk (/usr/etc/atalkd)
NFS (/usr/etc/exportfs)
Apple share (/usr/etc/ashared)
"Network daemons services" section (/usr/etc/inetd)
Netware
Rc.local (personal stuff if required)

Now, I think the NetInfo database just stores and spreads over its network the services key/values parameters (like port, protocol of telnet, ftp, finger) ... but it doesn't say if the services are enabled or have to start .. it looks like it's still the responsibility of inetd.
Title: Re: NS3.3: managing deamons, services and preferences
Post by: crimsonRE on March 08, 2020, 04:16:55 PM
Thank you very much for digging through this, lezardo!

Go to top  Forum index