- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:00 AM - edited 03-01-2019 04:15 AM
Hi all,
the below works fine on a local install i have running, but when issuing the same on a system install we get this error
[root@localhost:/opt/ncs/ncs-4.7.2.1/src]# python
Python 2.7.5 (default, Feb 20 2018, 09:19:12)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ncs
>>> import ncs.maapi as maapi
>>> import ncs.maagic as maagic
>>>
>>> m = maapi.Maapi()
>>> m.start_user_session('admin','test_context')
>>> t = m.start_write_trans()
>>> root = maagic.get_root(t)
>>> root.devices.device['r01']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py", line 1070, in __getitem__
self._backend._exists(self._path + keystr))):
File "/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py", line 127, in _exists
return self.exists(path)
File "/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py", line 945, in proxy
return real(self2.maapi, self2.th, *args, **kwargs)
File "/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py", line 386, in exists
return True if _tm.maapi.exists(self.msock, th, path) else False
_ncs.error.Error: access denied (3): access denied
>>> quit ()
any suggestions on how i can resolve this
Thanks
Regards
Yale
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:34 AM
You can do show configuration nacm | details to see which rights have been assigned. In local install you have a lot of permissions by default for all users, but system install is meant to be used in production and is much stricter.
Make sure that whatever user you are using is mapped into a group and that the group has the appropriate permissions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:26 AM
hmmmm ok our system install uses PAM for auth, and the linux host uses LDAP there is an AD account called admin yet this still does not work,
do i need to create the user via the ncs_cli ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:34 AM
You can do show configuration nacm | details to see which rights have been assigned. In local install you have a lot of permissions by default for all users, but system install is meant to be used in production and is much stricter.
Make sure that whatever user you are using is mapped into a group and that the group has the appropriate permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:42 AM
where should i be running this show command from ??
admin@ncs# show configuration nacm | details
------------------------------^
syntax error: expecting
commit - Display configuration changes
rollback - Display configuration changes
admin@ncs#

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 05:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 10:51 AM
-
Installation Directory is created in /opt/ncs/<nso-version>
-
Symbolic link /opt/ncs/current is created, pointing to the newly installed version, in this example /opt/ ncs/<nso-version>
-
Configuration Directory is created in /etc/ncs/
-
-
ncs.conf
-
-
Running Directory is created in /var/opt/ncs
-
Log Directory is created in /var/log/ncs.
