LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 03-11-2008, 04:56 AM   #1
Exavor
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Question Disabling SSH functions


Hi there,

I need to disable some SSH functions on our server in order to prevent users from compromising the server's data with the use of shell scripts etc.

Any idea how to disable:

show_source
system
shell_exec
passthru
exec
popen
proc_open

For all users except for root?

Thanks.
 
Old 03-11-2008, 05:04 AM   #2
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
These are PHP functions which you want to disable. Locate the php.ini configuration file and have the functions


Quote:
root@zeus [~]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
vi /usr/local/lib/php.ini

Quote:
disable_functions = show_source,system,shell_exec,passthru,exec,popen,proc_open
Save the file and restart the web server.
 
Old 03-11-2008, 07:31 AM   #3
Exavor
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by digen View Post
These are PHP functions which you want to disable. Locate the php.ini configuration file and have the functions




vi /usr/local/lib/php.ini



Save the file and restart the web server.
Thanks for the prompt response. Will disabling those functions make those dodgy php shell scripts virtually useless? Or is there anything else you advise I do?

Thanks again.
 
  


Reply

Tags
exec, phpini, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling GUI (SSH) logan_harbour Linux - General 5 12-20-2006 10:18 PM
disabling firewall with ssh only pureblood Suse/Novell 2 01-28-2005 12:12 AM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 03:55 PM
Disabling SSH and everything else Nexer Linux - Newbie 6 05-18-2003 01:23 AM
disabling SSH in Slackware 8.1 (the rc.M script maybe?) akshunj Slackware 2 10-30-2002 11:01 AM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration