by dabempire | Feb 25, 2011 | Knowledgebase, SSH (shell)
Using the CHMOD command: use the letters u (for user), g (for group), and o (for other), along with the letters r (for read permission, w (for write permission, and x (for execute permission) are used with + (plus),- (minus), and = (equals) to alter permissions from a file. Some examples: chmod u=rwx file.htm chmod g-rwx config.inc.php chmod o+rwx weblog.txt chmod u=rwx,g-rwx,o=r other.htm In the first example, the “user” group (u) is given read (r), write (w), and execute (x) permissions to the file “file.html”. In the second, the “group” group (g) has read, write, and execute permissions subtracted for file secret.txt, effectively making it inaccessible to that group. In the third example, the “other” group is given all permissions to the file, allowing that group (which includes the web server) to access and modify it fully. To use chmod with numerical permissions, a three digit number is formed. The first indicates the permissions that “user” should receive, the second indicates what “group” should receive, and the last indicates what “other” would receive. Some examples: chmod 700 private.txt chmod 755 normal.txt chmod 707 forwebserver.txt The first example gives all permissions to user (7), and no permissions to group or other (the zeroes). The second again gives all permissions to user, and gives read and execute permissions (5) to group and other. The last gives all permissions to user and other, but gives no permissions to...
by dabempire | Feb 25, 2011 | Knowledgebase, SSH (shell)
The following is a list of commands that you might find helpful when modifying your files on the server. For more complete information on using commands, you can refer to the manual by typing man [command] at the shell prompt, where “[command]” represents the command you would like more information about. You can also type [command] -? and [command] –help. Note: When something is specified in brackets, such as [command] or [filename], it is used to indicate that you must input your desired information here. Do NOT include brackets in your command. pwd Shows the full path of the current directory ls Lists all the files in the current directory ls -al Lists all files and information ls –alR Lists all files and information in all subdirectories ls -alR | more Same as ls –alR, pausing when screen becomes full ls -alR > filename.txt Same as ls –alR, outputs the results to a file ls *.html Lists all files ending with .html cd [directory name] Changes to a new directory cd .. Changes to directory above current one clear Clears the screen vdir Gives a more detailed listing than the “ls” command exit Log off your shell mv [old filename] [new filename] Move/rename a file cp [filename] [new filename] Copies a file rm [filename] Deletes a file rm * Deletes all files in current directory rm *.html Deletes all files ending in .html mkdir [directory name] Creates a new directory ls -d */ Lists all directories within current directory cp -r [directory] [new directory] Copies a directory and all files/directories in it find . -name [filename] -print Searches for...
by dabempire | Feb 25, 2011 | Knowledgebase, SSH (shell)
If ssh access is not enabled, please open a support ticket and we will activate it for you.
by dabempire | Feb 24, 2011 | FTP, Knowledgebase
Yes, sftp is avialable, and we strongly recommend it over normal ftp for security reasons. For this to work, you need ssh (secure shell) access. If ssh is not active, you can open a support ticket to get it activated.
by dabempire | Feb 24, 2011 | FTP, Knowledgebase
Your ftp username/password is same as your control panel (cpanel) username/password. You need to login to your cpanel typically located at http://yourdomain.com/cpanel or http://yourdomain.com:2082/ Once you login, you can find the link to Change Password. That changes the password for ftp/cpanel/ssh. If somehow you have lost the username/password of your cpanel, you can open a support ticket and ask for username of your particular account and get the password reset for...