How To A Shell With A Restriction As Not Run Gcc
Dec 17, 2008how to a shell with a restriction as not run gcc, screen, limit process to use or not use, run programs like bg process etc etc.
View 1 Replieshow to a shell with a restriction as not run gcc, screen, limit process to use or not use, run programs like bg process etc etc.
View 1 RepliesDo any1 know how to change jail shell to normal shell?
View 14 Replies View RelatedI'm trying to restrict what file types can be upload within a certain folder can this be done using htaccess.
View 4 Replies View RelatedAbout the 29th of last month my crons quit working properly, they are still ran but they did nothing.. I finally found out that its giving me an open_basedir error...
I am trying to run the crons from /home/<user>/crons/...
The first few lines of the PHP Code includes some required files that are used by the rest of the site...
PHP Code:
$root_path = "/home/<user>/public_html/";
include($root_path . "includes/common.php");
However, when the cron is ran I get the following email...
Quote:
X-Powered-By: PHP/5.2.1
Content-type: text/html
Warning: include() [function.include]: open_basedir restriction in effect. File(/home/<user>/public_html/includes/common.php) is not within the allowed path(s): (0) in /home/<user>/public_html/live.php on line 7
Warning: include(/home/<user>/public_html/includes/common.php) [function.include]: failed to open stream: Operation not permitted in /home/<user>/public_html/live.php on line 7
Warning: include() [function.include]: Failed opening '/home/<user>/public_html/includes/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/<user>/public_html/live.php on line 7
test
Notice: Undefined variable: db in /home/<user>/public_html/live.php on line 11
Fatal error: Call to a member function query() on a non-object in /home/<user>/public_html/live.php on line 11
WHM 11.11.0 cPanel 11.15.0-R17665
CENTOS Enterprise 4.5 i686 on standard - WHM X v3.1.0
Apache version1.3.39 (Unix)
PHP version5.2.1
MySQL version4.1.22-standard
(Paths have the correct username, I replaced the usernames with <user>...)
I am running asp.net on my 1and1 "shared" hosting account. I just was told I could not add a simple .mp3 player control because it requires "higher" security. I only have "medium" security. They could only suggest a dedicated server.
Is this going to be normal amongst all asp.net hosting companies? Are most asp controls at the higher security level?
Is there a hosting company that gives this to you as a shared customer?
In VPS WINDOWS machine does any of the providers offer outgoing socket connection for my apps.?
or is it restricted?
I am trying to use chdir() in one of my scripts. However, I am getting an open_basedir restriction error. I have checked the php.ini and the value is not set (which as I understand should disable open_basedir).
View 4 Replies View RelatedI have a custom made server side bulk email application. My current hosting service does allow unlimited emails (most restrict to around 3-500 per hour) but im having other problems with them.
As such I need a new host for this tool. I send around 45,000 emails as newsletters to my site members about 10 times a year.
I know that a dedicated server is a obvious solution but I dont want the management headaches and higher costs that go with it.
Has anyone got a shared hosting solution that doesn't restrict email numbers or atleast has much higher limits?
I had a problem that ip restrictions inside location didn't work. Config :
Code:
<Location /jkstatus>
JkMount status
Require ip 127.0.0.1
Require ip my_remote_netowrk_1/29
Require ip my_remote_netowrk_2/29
[Code] .....
In that case all IPs were allowed - just propted for login and password.
When i removed login/password part from location, IP restriction has start to work.
Code:
<Location /jkstatus>
JkMount status
Require ip 127.0.0.1
Require ip my_remote_netowrk_1/29
Require ip my_remote_netowrk_2/29
[Code] ....
What is wrong ? I would like to restrict access to this location for some IPs only and secure this area by password as well - even for allowed IPs.
(Plesk version 11.09)
Trying to restrict access to plesk control panel to one IP address (fake 66.67.68.69).
When I add the network 66.67.68.69/255.255.255.254 I recieve the following notification:
Error: The access restriction policy and the list of networks are currently configured the way you will not be able to log in with administrator's rights from your IP address '66.67.68.69'.
Now I would like this to be the ONLY ip address from wich i can log in.
One of my users...let's call him "fictional" is getting the following error message:
---------
Warning: Unknown(): open_basedir restriction in effect.
File(/home/fictional/public_html/blablaja/index.php) is not within the
allowed
path(s): (/home/hurz/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown
on line 0
---------
The strange thing is that the error message refers to another user on my system...named "hurz". Why does it refer to this other username? I looked at the virtual host in httpd.conf for user "fictional" and everything seems alright there:
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/li$
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
I'm trying to use server side includes in a PHP website but am getting the error open_basedir restriction in effect.
I've tried going in to the PHP Settings for the website and have selected the predefined option
{DOCROOT}{/}{:}{TMP}{/}
Which as I understand it should allow access to all files within my httpdocs folder but I still get the error:
PHP Warning: include(): open_basedir restriction in effect. File(/sparklyphp/cms/inc/checkAdminLogin.php) is not within the allowed path(s): (F:PLESKWWWviwebsitedesign.comhttpdocs;C:WindowsTemp) in F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsindex.php on line 1
The thing is I know 100% that the file it's having a problem with is in a subfolder of the
F:PLESKWWWwebsitedesign.comhttpdocs folder (the full F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsinccheckAdminLogin.php).
I've installed CRE Loaded 6.2 on one of my client accounts and am receiving the following error when trying to edit the language files:
Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/hsphere/local/home/hrtire:/tmp:/var/tmp:/usr/local/lib/php) in /hsphere/local/home/hrtire/hrtire.net/store/admin/edit_textdata.php on line 151
I've asked for support from my host and they told me that it can be fixed using .htaccess. They said to use:
php_value open_basedir /hsphere/local/home/hrtire/hrtire.net/store/admin/
That doesn't fix the problem and I'm not getting any more responses from them. I've tried variations (e.g. .../store/, .../store/tmp/) and nothing works.
my server in under attack of shell
how can i find shell code in my server? (c99 ...)
is any anti virus or open source tools to find it
how can i disable shell function?
I have spare dedicated machine.
I want to allow user to run few processes on machine (debian etch).
I configurated limits at /etc/security/limits.conf for group "shell".
When I attached user to group shell, limits work well, but he still can look
everywhere on system. (he can do cat /home/somefile.txt, even owned by root).
Is there any method, software to limit user to acces only their home directories?
For security reason I have these php functiosn disabled:
show_source, system, shell_exec, exec, popen, proc_open, procopen, passthru
Can anyone please tell me whether if it will prevent shell scripts from working?
They can still upload the shells but cant read/write/execute commands in 777 directories?
I'm having a problem connecting to SSH/Shell on my server. I get the Login Prompt, but when i enter the User/Pass i just get "SSH-2.0-OpenSSH_3.6.1p2", everything under that is blank.
I've restarted the SSH Server and made sure the account i was using was set to use Normal Shell (not jailed). What could be the problem?
I was wondering if it were possible to chmod a directory that is set to a low number to 777 using a shell or command and if so can anyone point me in the right direction as to how to go about doing so ??? I am trying to learn a little and i pefer using my browser to edit files rather then a ftp client.
View 9 Replies View RelatedI was just wondering if anyone is aware of Linux VPS or shell account providers with servers that are physically located in Pennsylvania. The only two I've come across so far are Nocster and VPS Village.
View 2 Replies View RelatedI keep seeing web hosts where it says that there is/isn't shell access, etc. What's shell access and what do you do with it in/with a web host?
View 14 Replies View RelatedIs there a such thing? I use shell mainly for whois info, tracing, telnet for email issues, etc etc. Is there a 'toolkit' for such things?
View 6 Replies View RelatedI have a script that needs to be run from shell access, but I've never done this before. How do you access a script through shell? Is there software I need to download? Not even sure where to begin.
View 5 Replies View RelatedOne of our customers uploaded C99Shell script on my server, and he can access to another accounts,
I upgraded php to 5 but he can access with this script to another accounts yet, what should I do to disable this script or other one?
I'm trying to program a very simple shell script that does 2-3 things.
1) checks for the number of a script running say, "ps aux | grep php | wc -l" returns that number.
2) deletes temp files folders "cd /to/that/directory/; rm -fr *&" every 90 seconds IF that number in check #1 is below say 50....
and then have this shell script launched in shell every so often, not sure on the frequency but first is how to program in shell is a TIME DELAY....
We have customer who has account on our *nix box server and who wanna move to our h-sphere reseller platform because now he want to use asp and mssql.
If it`s .com domain, for example, I would be able to easy change NS1 and NS2, but since this is ccTLD (and we will wait 10-15 days) I need quick solution for DNS forwarding.
ns1.oldnameserver -> ns1.newnamerserver
ns2.oldnamesrever -> ns2.newnamerserver
se when I run ping for example, I have to have reply from new server.
I have shell access but I don`t know how to modify zone or named, since obviously I can not do this using whm.
I have never used SSH/Shell Access, but think I may want to. Can someone explain what it is, and maybe explain how to use it? My web hosting provider provides SSH, but I have no clue what to do.
View 10 Replies View RelatedI've enabled ssh one of my account in WHM, so I went to cpanel of this account and tried the SSH/Shell Access, but what I got is:
For security reasons, shell access is not enabled by default. In order to activate shell access on your account, you will need to fax or mail a copy of your driver's license, passport or other photo id to customer service.
is this something about SSH Key? do I have to generate a key so I can use the SSH/Shell Access?
On a VPS I am using, I was astonished to see that when I login through SSH to a WHM account, I can go right up to the VPS system directories, do an ls, read the files etc. the user is able to get into the all the VPS directories, except root.
It's fine in FTP. Although I can see the link to the directory above home, clicking on it does not take the user to those directories.
When I ask my service provider, they say, "Yes, this is normal behavior. The users will still be able to move into the other users' home directories but they will not be able to write to the files or open them".
It seems to me this isn't a good situation. How can I prevent shell users from going beyond their home directories? Is implementing a jailed shell a good option? Can I use this feature that is readily available in WHM?
I'm trying to install the following portwatch script on my server to count the # of connections coming from various IPs:
[url]
I've saved it as a text file called "portwatch", and uploaded to my server. But no matter how I chmod it in FTP and call it in shell, I get a permission denied error. Can someone shed some light on how I'm supposed to run this script in shell?
I would like to hear some suggestions about what should i install to a shell box (for irc hosting).
Some people told me about kernel updates, change the ulimits, install a firewall etc..