Sudo command "not found"

Meya

Dabbler
Joined
Dec 5, 2018
Messages
39
Hello!

I recently tried to update Nextcloud via the GUI but ran into a problem. As a result, I decided to do the update manually and downloaded the zip file and unzip the files into the proper directory. Now, what I have to do is run the command
Code:
sudo -m www-data php occ upgrade
within the Nextcloud directory but I get the "sudo: command not found". If I try su, I get the same result.

I use PuTTY to log into FreeNas. The first prompt is
Code:
root@freenas#
in which I do
Code:
iocage console nextcloud
just so I can change or edit what I need in Nextcoud. Now, sudo is installed but only when I login:
1634351234650.png

but if I try to run sudo inside the jail, I get this:
1634351275516.png

This of course means that I can't update nextcloud because sudo is not recognized even thought it is installed. I searched the forum for answers but none really helped. I also understand that sudo is a Debian/Ubuntu thing. Is there any way to point to the path where sudo is installed or should I install it again?
This is a picture when I try to install nextcloud:
1634351420958.png


Thank you! Any help will be received with a big smile!

Specs are:
FreeNas Version: 11.2-U5
MoBo: Intel
CPU Intel i5-2300
RAM: 8GB
Disks: 4 x 1TB Seagate RAID 1
 
Joined
Jan 4, 2014
Messages
1,644
Your syntax for using occ isn't correct. It is platform dependent. Refer to Using the occ command in the NC Administrator's Guide for an explanation. An example of the correct syntax for FreeNAS is:

Code:
su -m www -c 'php /usr/local/www/nextcloud/occ'
 
Last edited:
Top