Ok, this is my first time using shell to hopefully fix my helpdesk (it won't let me overwrite files via FTP). The helpdesk support told me to do the following: Ok. So I grant shell access to the user I want to get in there (we'll say pat1121 for the example here). I login to cpanel, and click on the shell link and a command prompt is brought up. I open up an FTP program and copy the file 'auracleprep' to the /home/pat1121 fold. I then try to issue the comman 'cp /home/pat1121/auracleprep /pat1121/local/bin' It tells me that the file /pat1121/local/bin doesn't exist? So I try to run it from where it is, because that appears to be the folder I am sitting in when I start up the shell program. So I issue: auracleprep pat1121 public_html and it returns this: jailshell: auracleprep: command not found Any idea's how to get this to work properly? I'm a complete newb when it comes to linux anything..
Most likely the issue is you not specifying the full path Try this cp /home/pat1121/auracleprep /home/pat1121/local/bin/auracleprep Code (markup):
In unix the current directory isn't in the path for security reasons (someone could hijack common commands this way). Just execute the script prepending ./ (the name of the current directory): ./auracleprep pat1121 public_html Hey presto.
Usually you need to use the root user name password to perform such action. Aditionally, you need to make sure the scripts are already installed. Some OS, like Debian, are installed without many stuff that can be updated running the command #apt-get update before any other. Though update procedure depends on your servers operating system if other than Debian.
This is probobly a good list of reasons why I shouldn't be playing around in these things. I haven't a clue what is going on. Where do you guys 'start' when learning about this stuff? I really need to do some reading before I break something.