file-permissions

PHP folder permissions problem

旧街凉风 提交于 2019-12-12 14:13:42
问题 I am trying to create a folder and then another folder within it using PHP. If this is the directory structure I have /home/site (owner : user1) Now, I create the folder using mkdir("/home/site/newdir",0777); (user : apache) The directory /home/site/newdir is created but the user of that directory is " apache " Now, doing mkdir("/home/site/newdir/anotherdir",0777); doesnt create another directory inside newdir. Please help. I think its a owner issue. I cannot change the owner using chmod()

Cakephp Permission denied Fileengine.php

六眼飞鱼酱① 提交于 2019-12-12 13:17:20
问题 I am running the following cake command: ./Console/cake schema create DbAcl Now the database tables are created but at the end im getting the following error: Warning: SplFileInfo::openFile(/var/www/bloglic-2013/cake/app/tmp/cache/persistent/myapp_cake_core_object_map): failed to open stream: Permission denied in /var/www/bloglic-2013/cake/lib/Cake/Cache/Engine/FileEngine.php on line 313 Warning Error: SplFileInfo::openFile(/var/www/bloglic-2013/cake/app/tmp/cache/persistent/myapp_cake_core

PHP/IIS copy()/move_uploaded_file() failed to open stream: Permission denied Warning

和自甴很熟 提交于 2019-12-12 09:44:02
问题 I am relatively new to web development and currently ran into an error I can't solve. I use IIS to test my php after typing in "http://localhost/index.html" and select the example file to upload, it generates the following warnings: Warning: move_uploaded_file(upload/Angela_Nie_resume_technical - EditedMW.doc): failed to open stream: Permission denied in C:\inetpub\wwwroot\test.php on line 26 Warning: move_uploaded_file(): Unable to move 'C:\Windows\Temp\php74F2.tmp' to 'upload/Angela_Nie

Symlink giving “Permission denied”… to root

此生再无相见时 提交于 2019-12-12 07:48:21
问题 I wrote a simple script to automate creating a symbolic link. #!/pseudo today = "/tmp/" + date("Y-m-d") exec("ln -sf " + today + " /tmp/today") Simple enough; get today's date and make a symlink. Ideally run after midnight with -f so it just updates it in-place. This works just fine! ...for my user. xkeeper /tmp$ ls -ltr drwxrwxrwx xkeeper xkeeper 2014-10-21 lrwxrwxrwx xkeeper xkeeper today -> /tmp/2014-10-21/ xkeeper /tmp$ cd today xkeeper /tmp/today$ cd .. Notice that it works fine, all the

Error Executing Batch file of BlazeDS

喜欢而已 提交于 2019-12-12 06:38:43
问题 I'm trying to see samples of BlazeDs in my web brower as shown in the tutorial on this webpage. After I have started tomcat i open the localhost link 8400/samples in my browser as shown below.After entering the url i get the following page in my browser.. After that i try to start the sample database according to the instructions given in a box at the starting of the webpage. After i run the specified command on my command prompt i get the following error message.. I can't seem to understand

Create File and unable users to delete it C#

旧街凉风 提交于 2019-12-12 03:43:30
问题 I am creating a file like this: System.IO.File.Create("file.dat").Close(); I want to set the file's permissions to disallow users from removing it. I tried the following, but it didn't work: System.Security.AccessControl.FileSecurity fSecurity = File.GetAccessControl(dirPath + "\\" + fileName); fSecurity.AddAccessRule(new System.Security.AccessControl.FileSystemAccessRule("Administrators", System.Security.AccessControl.FileSystemRights.Delete, System.Security.AccessControl.AccessControlType

Unable to run logstash config file (permission denied)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:38:40
问题 my config file is stored in /etc/logstash/ and I ran the command $ /etc/logstash -f /etc/logstash/logstash.conf as root. However, they told me that permission denied when I tried to do that. Is there any way to solve this? 回答1: As said, you need to run /opt/logstash/bin/logstash -f /etc/logstash/logstash.conf instead of /etc/logstash -f /etc/logstash/logstash.conf . This is caused by the default directory structure of your Linux system which logstash uses to put its files in. Wikipedia:

Folder permission on server while uploading?

社会主义新天地 提交于 2019-12-12 02:45:17
问题 I want to upload files in my Asp.net application on server but I have to grant it R/W access so that I or anyone can upload files in it. Is there any way that I write some code or configuration lines in Web.config which solve this permission problem? 回答1: You have to set the permissions on the folder for the account under which your application is running. This is an operating system level, and hence nothing can be done about it in Web.config. Be careful to only set the permissions on the one

Unable to open remote XML file using fopen(). What all permission i need to set in server or what parameters i need to set in fopen() function.?

混江龙づ霸主 提交于 2019-12-12 02:44:22
问题 I am trying to open an XML file in remote server through fopen() function. I have two remote servers and the file permission of the xml is set to 777 in both servers. i am able to open the xml from one server , but not from other. Both files can be opened in browser. What all permission i need to set or what parameters i need to set in fopen() function.? this is the function function getFileData($ProjectName) { $file = fopen($ProjectName, "r") or exit("Unable to open File! ".$ProjectName);

Why do I get an UnauthorizedAccessException when downloading data?

丶灬走出姿态 提交于 2019-12-12 02:04:55
问题 I wrote this code to download a file from an FTP server. When the program tries to download and save the file, I get an access denied error. I tried opening the program with admin rights, but it gives the same error. WebClient request = new WebClient(); request.Credentials = new NetworkCredential(txtFTPuser.Text, txtFTPpassword.Text); /*List all directory files*/ byte[] fileData = request.DownloadData(fullDownloaPath);//dnoces.dreamhost.com FileStream fi = File.Create(downloadTo); fi.Write