OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

problem with DCM

miodziarz1

23-10-2011 12:10:11

Hello,

I want to use DCM but i get error

dcm.pl -r subnet_add name=SHOWROUTE-10.7.7.0 ip=10.7.7.0 netmask=/24 type=LAN
cat: /etc/onabase: No such file or directory
Permission denied!


what is the problem

Matt

23-10-2011 20:56:40

first off you will need to set up /etc/onabase. This file should contain the full path to your ONA install, typically /opt/ona. This can be done with:

echo /opt/ona > /etc/onabase

It also looks like you are having a permissions issue. This can be fixed by specifying your username/password in the dcm.conf file or by providing it with -l <username> -p <password>

miodziarz1

24-10-2011 02:09:01

which username/password should i enter in dcm.conf ? root? or which one

Matt

24-10-2011 21:33:28

Since you are logging into the ONA system you will use a username/password from ONA. By default the only account other than guest (who doesn't have a password) is the admin user. The default password is admin for that user. You can create other users as needed once you are logged into ONA as the admin user. In the GUI go to Menu -> Admin -> Manage Users.