Why Can't Umask Set Execution Privs On Files

Dec 6, 2007

Before this thread happens, don't tell me to chmod the file to have execution privs. I want umask to work properly, with no seperarate chmod required.

For some reason, on every single system i've tested this on, linux, freebsd, vps, standalone server, fresh install of operating system, any time I test this, it ends up with the same issue.

Running `umask 000` should result in files created from that point on having a chmod of rwxrwxrwx. However, they always end up having a chmod of rw-rw-rw.

If I create a directory after setting the same umask setting, the directory ends up with rwxrwxrwx.

Code:
root@bonkers[/usr/local/etc/php/umask] $ umask 000
root@bonkers[/usr/local/etc/php/umask] $ touch 000
root@bonkers[/usr/local/etc/php/umask] $ mkdir d0
root@bonkers[/usr/local/etc/php/umask] $ ls -la
total 10
drwxrwxrwx 5 root wheel 512 Dec 6 03:31 .
drwxr-xr-x 4 root wheel 512 Dec 6 03:21 ..
-rw-rw-rw- 1 root wheel 0 Dec 6 03:31 000
drwxrwxrwx 2 root wheel 512 Dec 6 03:21 d0

View 10 Replies


ADVERTISEMENT

Nfs Umask

Aug 30, 2007

how do we got about setting umask for nfs? it keep putting it to 600 instead of 644...

View 1 Replies View Related

FTP User Privs

Oct 8, 2009

I basically have a script that uses passthru when people login with FTP so it can connect users from multiple interfaces.

Thing is, it uses the default php.ini file so, to get this script to work I have to enable passthru in the default php.ini file, affecting all users with an account. I am currently running SuExec and can change the php.ini file each user uses from httpd.conf. But as far as I am aware the FTP user isn't in httpd.conf.

What user does FTP run under and how can I use a custom php.ini file just for the FTP daemon. Also, as a side note, what are the effects of passthru and can it be used for malicious intent if wanted?

View 0 Replies View Related

Apache Umask

Sep 1, 2007

I have 2 servers, both servers have apache... I have my apache on my 2nd server create a few images into a folder... and that folder is shared with server 1... however, those images are not viewable by server 1... not sure what the umask is, but I would like it to be 0022/644 when server 2 output images into that folder...

View 8 Replies View Related

Error When Restoring Reseller Privs

Jul 30, 2007

i try to restore a backup from another hosting to my server and always get stucked on "restoring reseller privs"

i'm using restorepkg username and got this error

Code:
not a reference at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 27
at whm i can transfer multiple account and select "skip restoring reseller privs" but in this case my old hosting doesnt provide ssh access.

i was wondering is there any paramater to skip that?
something like

Code:
/scripts/restorepkg -somethingblahblah accusername

View 0 Replies View Related

PHP Execution Lags / Installation

Jul 6, 2009

problem on some big DB driven sites in PHP.

Lets say I have a file, doesnt even need to have any PHP functions in the document, could be just pure CSS / images. Say I have a copy of this file named something.html and a copy named something.php, the php one takes about 5 times longer to load than the html page. You can see 90% of the page loads and then it sticks with the loading bar nearly fininshed, waits a while and then pings to finished and the remaining parts of the site load (usually footer links etc).

This has me stumped, even has my hosts stumped. Would any one have any idea why this may happen? Something to do with the installation directory of PHP or location of php.ini?

This is on a Windows 2003 machine running IIS6, I have tested the same files on a Linux installation and its perfectly fine.

View 4 Replies View Related

Extending Max Execution Time

May 27, 2009

I am trying to run a php script on our server to split a very large file. As a result of the file size the script is timing out with this error:

Fatal error: Maximum execution time of 30 seconds exceeded in [url]on line 155

How can I extend the server execution time to the script can complete? I have cpanel with WHM installed.

View 8 Replies View Related

Maximum Execution Time .. In My Vps

Aug 21, 2008

i always get :-

Fatal error: Maximum execution time of 30 seconds exceeded in /home/ante/public_html/me/classes/http.php on line 418

Warning: fclose(): supplied argument is not a valid stream resource in /home/ante/public_html/me/classes/other.php on line 145 

when i try upload big files (up 140mb to my vps using RapidLeech
and here my php.ini
[url]
i chnaged the php.ini to the new value and restart http only

my vps info
safe mod : on
Operating system: Linux
PHP version: 5.2.5
Apache version: 1.3.41 (Unix)

View 4 Replies View Related

Server Issues / Execution Time

Feb 21, 2008

During the last couple of weeks my main server has started acting weird.

Sometimes(often) when accessing my site, I get a page saying that server or location could not be found. Reload and "bam" page loads again. Average load on the server is 0.50

When executing scripts (I.E uploading files using web2ftp or cp file manager) server shuts the connection after a few seconds and say page cannot be found.

I set the execution time in php to 60sec, so this is not the issue.

When I ping the server, I do not get any packet losses.

View 4 Replies View Related

Cacti Command Execution And SQL Injection Vulnerabilities

Jan 14, 2007

Cacti version 0.8.6i has vulnerability: [url]

Solution: [url]

View 2 Replies View Related

Apache :: Disabling Re-Execution On Fail-Recovery

Jun 4, 2014

At times as I'm developing, due to some coding error in PHP on my part, particularly calling a COM object, the apache server crashes. I'm delighted that it recovers, but in so doing it always tries to rerun the query that crashed it, which just causes another crash, and so on. Is there some way of getting round this, so that it recovers but the problematic code is not rerun?

XP SP3 (still!)
Apache/2.4.3 (Win32) mod_fcgid/2.3.7 PHP/5.4.9
Firefox (Aurora)

View 1 Replies View Related

Prevent Of Execution Trojan Shell Scripts, Like R57shell And Other?

Oct 27, 2006

Which configuration for php and server that prevent execute shell scripts?

Which funstions you recommend to disable?

Like shell_exec, passthru, proc_open, proc_close, proc_get-status, proc_nice, proc_terminate, exec, system, suexec, popen, pclose, dl, ini_set, virtual, set_time_limit

View 14 Replies View Related

Plesk 12.x / Linux :: Php Execution In Domain Only Show Fastcgi

Oct 7, 2014

Have the same case for 4 servers (web and pro), the menu in plesk could not show another choice, only fastcgi.

Handlers look like ok:

root@serveur:~# /usr/local/psa/admin/sbin/php_handlers_control --list
id: display name: version: type: cgi-bin: cli-bin: php.ini:
module 5.4.4 5.4.4 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini
fastcgi 5.4.4 5.4.4 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini
cgi 5.4.4 5.4.4 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini

[code]....

How to force to display php module ?

View 3 Replies View Related

Plesk 12.x / Linux :: Execution Failed Command - Autoinstaller

Apr 13, 2015

while plesk was trying to update automatically (as per the normal preference settings) but suddenly gave this error

Execution failed.
Command: autoinstaller
Arguments: Array
(
[0] => --select-product-id
[1] => plesk
[2] => --select-release-current
[3] => --upgrade-installed-components
)

Details: Doing restart of Parallels Installer...
File downloading products.inf3: 100% was finished.
File downloading plesk.inf3: 10%..20%..30%..40%..50%..60%..70%..80%..90%..100% was finished.
File downloading ppsmbe.inf3: 17%..26%..37%..47%..57%..78%..88%..100% was finished.
File downloading sitebuilder.inf3: 22%..35%..48%..60%..73%..86%..100% was finished.

[code]....

ERROR: Currently installed version of product with ID 'plesk' is not available from download site anymore.Please upgrade to the next available product version to receive software updates.Seems like the RPM got damaged, but I already fixed that part, now when I put "install" I'm geting the following
Installation started in background..Getting bootstrapper packages to installation list:

Following bootstrapper packages will be installed: (empty)
----------------
Getting packages to installation list:
Following packages will be installed: (empty)
----------------
Loaded plugins: fastestmirror

Patch for plesk 12.0.18 will not be installed since it is already applied.Error: You already have the latest version of product(s) and all selected components installed. Installation will not continue.HOWEVER the "mail" and mail server configuration no longer shows in "tools & settings".

View 1 Replies View Related

Fatal Error: Maximum Execution Time Of 30 Seconds Exceeded

Feb 5, 2007

while i am restoring db (110MB) via SSH following error occur

Code:
ERROR 1064 (42000) at line 145689: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
Fatal error: Maximum execution time of 30 seconds exceeded in ' at line 1

View 12 Replies View Related

Plesk 12.x / Linux :: Unable To Configure Web Server - Execution Failed

Dec 5, 2014

I get the following error in plesk i don't know how to resolve this

Unable to configure the web server: Execution failed.
Command: httpdmng Arguments: Array ( [0] => --reconfigure-all )
Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart )

[Code] .....

View 2 Replies View Related

Plesk 11.x / Linux :: Importing To MySQL Database - Maximum Execution Time

Nov 5, 2014

I have this error when i put import to mysql database

Code:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<script></script><p>ERROR: Maximum execution time of 300 seconds exceeded (Util.' at line 244

I have in domain > doemainname >
max_execution_time
Standaard
Geef een aangepaste waarde op 0

and insert in
usr/local/psa/admin/htdocs/domains/databases/phpmyadmin in the file config.sample.inc.php following command
$cfg['ExecTimeLimit'] = 70000;

but it will not work...

View 2 Replies View Related

Turning Off Execution Of "Mail Delivery Failed: Returning Message To Sender" In Exim

Jun 24, 2009

My mail server receives tons of messages directed towards bogus, non-existant addresses at my domain. When those addresses don't exist, it creates a reply email with the subject "Mail delivery failed: returning message to sender". How do I stop exim from doing this?

View 3 Replies View Related

Transferring 200 Files : Total Files Size Is 25 GB!

Jan 2, 2008

I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily.

God knows what just happened... but in a positive way, customer is extremely happy!

So...

Both servers are on cPanel - with root access (duh)

200 odd files which total to 25 GB

1 database about 100 MB in size (no biggie)

I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.

View 8 Replies View Related

Gap In Log Files

Dec 21, 2008

i had a problem with one of my servers

due to changes in the firewall couldn't i login anymore.

Someone had to go over and undo that modification.

Now i am checking the log files like secure and
messages logs, but logs of the day he logged in are simply not
there (along with some days more).

View 3 Replies View Related

Can Not See The Files In FTP

Jul 20, 2008

When I upload a file in FTP I can not see the file, When I upload the file again asked me to file any replaced it exists, When using Cpanel can upload any file, And working well.

When watching the size of folders I find little in the FTP but sized Cpanel see him very different.

I have done this:

1-Restart FTP Server.

2-permit folders to 644.

3-permit files to 744.

View 2 Replies View Related

See Os Files

Jun 3, 2007

Is there a way to see your os files in ftp software like cute ftp n edit them?

View 3 Replies View Related

Log Files

Mar 26, 2007

i received this message for my host

"The proxy sites hosted on your server are being used to send spam comments on blogs"

How can i view the log files in order to find that info and block the domains or IP?

I am on Centos.

View 2 Replies View Related

Php Files Pop-up Sometimes

Jan 28, 2007

In the last couple of days my server/website has been acting a little strange and I can't recall doing anything to it in this time.

1) Now and again a normal PHP page will pop-up in the Firefox download manager. Usually the page is simply compiled and shown to the browser.

2) Images that really are present on the server sometimes randomly don't show in IE.

PHP 5.1.4
MYSQL 5.0.27
Apache 1.3.37
APC 3.0.12p2 (latest)

View 3 Replies View Related

Nobody Files Always Appear On My /tmp, How To Trace Where They From?

Jul 26, 2006

I found that recently a lot of nobody files appear in my /tmp.

I delete and delete.. by still same. I don't know how to trace where they from. I suspect is from my hosting users, but I don't know how to check and trace. Anybody can give me some guide?

View 5 Replies View Related

My Site Cannot Run Php Files

Jun 2, 2009

my site cannot run php files

move from server 1 to server 2

another site no ploblem move from server 1 to server 2 too

What ploblem i need fix this

here my site

[url]

View 5 Replies View Related

Video Files

Mar 20, 2009

Can anyone recommend the best cost-effective solution for serving up video files to websites on other servers?

Basically looking for a central storage location to hold video files (flv, swf) that will be hotlinked from websites on other servers.

I'm currently using about 200GB bandwidth monthly, and need to increase that to about 500GB without violating any TOS or getting cut-off/suspended.

Not sure if the best option will be a hosting account, file storage site, etc.

View 4 Replies View Related

Uploading Files

Jan 28, 2009

I've just uploaded my website files onto the server, the website is working fine, but I'm not sure my files are 'arranged' right. I uploaded my images in a folder, but all the rest of the files are 'loose' along with the index file. If I go to either of my domain names, the website appears, which is ok for now, but I only really intended it to under one domain name, so there may be problems if I want another site up there. I think my files should be in a folder. Is this right? Should the index file be in the same folder, or should it be outside the folder with the links changed accordingly. I've been emailing my hosting service, and they 've been trying to help, but I feel a bit thick because I don't really understand what they're saying. Could someone tell me in very plain english how the files should be arranged?

View 11 Replies View Related

Uploading Big Files

Jun 23, 2009

i just bought php file management script, its running smoothly, the only problem was i cant upload big file ( > 1 Gigs ) using that script, then i ask the developer and he said it shouldnt be a problem since he sold that software before people and he never got a problem like that.

OS : Slamd64
apache 2.2.10
php 5.2.8

i tried to changed
post_max_size = 1900M
upload_max_filesize = 1500M

View 10 Replies View Related

Copying Certain Files

May 20, 2009

There is a directory with many files and subdirectories. I want to copy ALL the filesnames beginning with post-1111 to another folder. What is the command to do this?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved