After upgrade to 3.3.0 Command Line Apps Not Working - Update - Kicked out of Sudoers

Just upgraded to 3.3.0. After several restarts and changing my admin user a few times, I got my SSH to work properly, as noted in other threads. However, some of my apps are no longer working. I’ve upgraded them via the Dashboard and they say they are running. But I get nothing when running them.

Nano, Git, Unrar all say permission denied. I’ve uninstalled then reinstalled via Dashboard, still same

Any ideas or help appreciated. Thanks!

I think you need to use sudo to run them as ssh no longer logs you in as root (for security reasons)

Cheers!

Jason

Thanks Jason. I have tried using sudo to run those. It pops up with command not found. Even though I can clearly see the packages installed in the DrooboApps folder.

$ sudo nano Password: sudo: nano: command not found $

I figured it out. Since I created a new user all my commands weren’t in the PATH any longer. Followed the directions on the old app site. That worked; however it then kicks my user out of the sudoers file.

Any ideas how to get both to work?

[quote]
Automatically adding DroboApps to the PATH

Instead of these long command names, we want to have the binaries of all command-line DroboApps to be usable like normal commands. To do this, we edit the file ~/.profile by calling:

/mnt/DroboFS/Shares/DroboApps/nano/bin/nano ~/.profile
And add this to it (you should probably copy and paste):

for APP in /mnt/DroboFS/Shares/DroboApps/* do if [ -d "$APP/bin" ]; then if [ "$PATH" == "${PATH/$APP/}" ]; then export PATH=$APP/bin:$PATH fi fi if [ -d "$APP/lib" ]; then if [ "$LD_LIBRARY_PATH" == "${LD_LIBRARY_PATH/$APP/}" ]; then export LD_LIBRARY_PATH=$APP/lib:$LD_LIBRARY_PATH fi fi done
Then press CTRL+O, ENTER to save, and CTRL+X to exit.

To make sure that nothing has been broken, open a new SSH connection from your machine to the DroboFS to make sure that you can login correctly. If you are not able, then use the first connection (which you haven’t closed, I hope), delete ~/.profile and start over.

Note: if you are using bash, then you have to add the little script above to ~/.bash_profile instead of ~/.profile.

From this point on, every DroboApp from DroboPorts will automatically be added to the PATH variable the next time you login.[/quote]

[quote=“evilhidden, post:4, topic:142024”]
I figured it out. Since I created a new user all my commands weren’t in the PATH any longer. Followed the directions on the old app site. That worked; however it then kicks my user out of the sudoers file.

Any ideas how to get both to work?

Rather than modifying the path the user, you might simply add symlinks to /bin, as some of the DroboApps do, e.g.,

# ls -l /bin/bash
lrwxrwxrwx    1 root     root            43 May  2  2016 bash -> /mnt/DroboFS/Shares/DroboApps/bash/bin/bash

So, you can add the ones you want. The bash link could have been created with the following command:

ln -s /mnt/DroboFS/Shares/DroboApps/bash/bin/bash /bin