Welcome, Guest. Please login or register.

Recent Posts

Pages: [1] 2 3 ... 10
1
Installation / Re: crontab not in correct location
« Last post by Westy_87 on April 02, 2024, 07:13:42 am »
Thanks.

When I make a change in the crontab section in the gui, it says

Write /var/nedi/inc/crontab (21 bytes) OK

then it says

Crontab Update Errors


I can see the file is being updated, but then the system command to update the actual cron isn't working I guess. Any idea how to troubleshoot that?

Edit:
I can see in /var/spool/cron/crontabs/ is a file www-data that contains the crontab entries from before the link was somehow broken.

permissions issue or anything?

nedi:~$ sudo ls -l /var/nedi/inc/crontab
-rw-r--r-- 1 www-data www-data 21 Apr  2 05:11 /var/nedi/inc/crontab
nedi:~$ sudo ls -l /var/spool/cron/crontabs/www-data
-rw------- 1 www-data crontab 1569 Jan 18 03:27 /var/spool/cron/crontabs/www-data
2
Discovery / Re: Permissions for discovery only
« Last post by Westy_87 on April 02, 2024, 05:43:59 am »
With my test user, I gave it the same privs as the site-techs: network and support.

When I try and go to Devices, Add with my test user I get the following:

Access Errors: You're not authorized for this!
3
GUI / Re: How to turn off devwrite safety?
« Last post by rickli on March 15, 2024, 10:02:29 am »
Yepp, you got it!

I know the security restrictions can be annoying, but it's still better than being hacked ;)
4
Discovery / Re: Permissions for discovery only
« Last post by rickli on March 15, 2024, 10:00:50 am »
You can add a single device with Devices -> Add, which calls a limited System-NeDi (usable by non-admins)...
5
Installation / Re: crontab not in correct location
« Last post by rickli on March 15, 2024, 09:59:01 am »
Look around line 143 in System-Files.php. This (temporary) crontab is installed via system command and the result printed out...
6
GUI / Re: How to turn off devwrite safety?
« Last post by Westy_87 on March 13, 2024, 12:34:01 am »
Ok, I found it.

var/nedi/inc/ is the file devwrite.pl

Towards the bottom is the line with the Safety on! statement. Hash that and unhash the next line.

I would post code examples but the forum blocks me when I try that, so keeping it semi vague.
7
Installation / crontab not in correct location
« Last post by Westy_87 on March 13, 2024, 12:18:02 am »
Good Morning,

I tried to update the crontab directly through GUI but it didn't seem to be making any differences.

After doing some digging, I realise the GUI is changing a file called crontab in var/nedi/inc/

But when I check the crontab file for user www-data it shows the original file without the changes made.

Any idea how to fix the link between GUI and actual crontab file?
8
GUI / Re: disable line-wrap in devices names?
« Last post by miraculiks on March 12, 2024, 01:52:43 pm »
That works fine. Thanks!

9
GUI / How to turn off devwrite safety?
« Last post by Westy_87 on March 12, 2024, 07:07:17 am »
I am trying to send a command to multiple switches ('dir flash:apps') but I get the following output

(Lines Receive) ERR:Safety on! Remove only (devwrite), if you know what you are doing and take full responsibility!!!

I never had this on my old nedi install and I can't work out how to enable devwrite.
10
Discovery / Permissions for discovery only
« Last post by Westy_87 on March 08, 2024, 01:03:37 am »
Good day all!

Any idea how I can grant users access to do switch discovery without the ability to send commands or delete any info?

I have 45 sites or so with site techs that use NeDi to locate devices, etc in a production facility, and sometimes need the switch discovery updated quicker (we have it set to run every 4 hours).

I don't want them to be able to do any of the other 'admin' tasks though
Pages: [1] 2 3 ... 10