Shell access

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
oldsocks
Forum Newbie
Posts: 1
Joined: Sat Mar 15, 2003 4:34 am

Shell access

Post by oldsocks »

I recently changed hosting company and have been told that to chmod files i need shell access.

they gave me some logging in details and told me to chmod through my shell.......


right, lovely, i have shell access...

umm whats a shell? whast do i do with it? how do i access it and more importantly how do i chmod with it?

A search on the net led me to a program called putty.... looks very much like dos. though the support files with it are very basic - i just about managed to log in - is this a good program to use? is there anything easier? like point and click program?

any help here would be good -

many thanks

Jay
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I like secureCRT but putty is for free and does a pretty good job.
You might compare a shell to dos. It takes your commandlines and process' them. A chmod (usually) can be done with your ftp-client, too. Check the manual or online-help for that feature.
But if you have to do it from the commandline, take a look at man chmod, it should display the manual of chmod.
e.g. chmod 755 thescript.php
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post by lazy_yogi »

If all ur doing is chmod-ing, then WS_FTP can chmod through a GUI (its of course an FTP client also). Saves having to FTP upload files with one program and then chmod with another.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

By the way.. if I want to prevent someone abusing a mysql query in order to run shell commands, do I just block the "exec" string from user input or do I need to do more?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://www.php.net/manual/en/function.m ... string.php and any malicious data should be history (for mysql)
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

http://www.oreillynet.com/linux/cmd/

Very useful site for linux reference. Has a listing of all commands and good documentation. Behold, the wonder that is O'Reilly.

I use Putty for shell access. It permits you to use an SSH connection, is free, and runs quite well.
Post Reply