I'm running an Ubuntu 10 web server and have my websites in the /var/www/<user> folder. The owner and group of the files and folders was <user>. This was fine using FTP, however when WordPress tried to access the filesystem it couldn't (as in Apache couldn't). So I changed the permissions of the folder and files to have the Owner as <use...
I am developing a Sharepoint (2010) web part and I want to make it available only for specif users or groups pragmatically.
Because I am a total beginner in Sharepoint development, I found some pieces of code around the Internets, but they give no clue about how or where to use that code from withing the web part itself.
I need a simpl...
I'm having a hard time getting a hook to run either on initial clone (this does not seem possible since the hooks don't get cloned anyhow) or on a simple pull.
I'm using git to manage a number of config files, and I need to maintain proper file ownership and perms. In my main repo, I have commit hooks set to call the "setgitperms.pl" s...
Possible Duplicate:
How can I use Delphi to test if a Directory is writeable?
My program will download an update for the user if they request it. The user has to specify the location to save the installer. They might pick a directory which they don't have access to save something to. In this case the download starts (downlo...
I'm trying to set up test environment that includes a VM (running Win7-x86) hosted on Win7-x64.
I want to be able to use VS2010 in the VM, to work on a web application project on the host machine.
So I've set up a virtual directory on the VM, and set its physical path as an UNC path. I've set the physical path credential to be an ad...
I've downloaded and compile Android 2.1 version with signed-google_ion-ota-14721.zip image for my HTC phone. The compile completed successfully and so the system image flash.
How can I sign my own Android application with the system signature?
Can someone describe the whole process for signing a user application with system signature a...
PHP creates files with apache:apache ownership which seems to be causing issues with other php scripts accessing the file.
How can I allow php to create files with the same ownership as the files that created them?
I've read elsewhere that having safe_mode turned on can affect this but I've turned it off and reuploaded the files and i ...
Hi, I can create a folder on a pc that I connect to via ftp.
When I create a folder using mkdir
and then to move some files using "rename" I get access is denied.
Is there a way around this? I'm doing this programatically and creating a backup folder for each day.
I created a folder called archive via FTP and gave the FTP user full...
On my php host, I have a script that is run by a cron job that opens/overwrites a file from a remote ftp server. It works most of the time, but I am finding that when it initially creates the file, the owner/group are "736/736", but at some point the owner and group change to "99/99". Problem is I start running in to permissions issues...
trying to setup drupal's taxonomy module (http://drupal.org/project/taxonomy_access) to administer access to specific categories.
i have two categories of users (two kind of roles). all i'm trying to do is to setup that one have access to some category, and other not.
i did made proper(?) changes in admin/user/taxonomy_access and (ie.)...
Specifically, I was trying to use the sqlite3 command with the adb shell to run some queries on the database of the Android application I'm building. I kept getting "sqlite3: permission denied". I'm developing on a Nexus One that I purchased from Google. Does my phone need to be rooted or something? Thanks in advance.
$ sqlite3 /da...
I've just enabled Web Sharing on my Mac OS X Snow Leopard box.
HTML files load up fine, but I'm getting a 403 error on JavaScript files. I've already tried changing directory permissions in the httpd.conf file but that didn't solve anything.
...
OK help me understand this.
I have 2 users in my linux system that are BOTH part of "web-users" group.
one is www-data used by the webserver and php-cgi
one is my ftp-user
when I upload files via ftp they are set to 775 for dirs and 664 for files, when I run a script on the server (so same group like the ftp user) to delete that direc...
I created a setup.php to handle MySQL table generation, and as an obvious precaution I added a way to delete it after it was finished. As using unlink(__FILE__) is impossible to do, I added deletion code to main.php?action=deleteconfig to unlink the file.
setup.php has permissions 777, but it gives me a permission denied error when I un...
I've got a jar file I created that can generate a PDF file. I've called it from the command line like this -
java -jar project.jar 'Author, An---A Title'
This works fine but when I call the same jar file from a PHP file with the following code it creates a file with the correct name but its empty and has zero bytes.
<?php
echo ...
I am displaying a list of popular public bookmarks to the logged-in user. Some users dont have access to these bookmark-urls and I want to suppress the results so that only accessible urls are shown to the user.
I tried to use the DoesUserHavePermissions method, but the problem is that I am not sure what object does the url points to (...
i am creating a marks management system using php & mysqlwhere the concerned faculty will be able to login and enter the marks of the students. i can go with a simple table but the problem is there are 288 different subjects for which marks must be entered. So creating a mysql table with so many subjects does not look good for me. please...
Hi all,
What i did is:
http://localhost/phpmyadmin/
Select Privileges
In the user overview selecting the "EDIT Privileges"
In the Global Privileges selecting "UN CHECK ALL" and hitting the GO button.
That's the end. Right now i don't have any privileges.
Now my need is:
How shall i revoke my permissions back.
thanks in advance.....
Hi,
I have a web application which has a shared config.php file. In this file, I include a function which gathers error messages (using set_error_handler) and then, at the end of the script execution, saves the errors to a centralised log file (using register_shutdown_function).
Log files are created daily, in the format Y-m-d.log. Cro...
This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following example:
public class StudyFileIo extends Activity {
private static final String TAG = "StudyFileIo";
@Override
public void onCreat...