file-permissions

OnAfterInstall not working after installation winform c#

帅比萌擦擦* 提交于 2019-12-11 11:37:44
问题 I'm new to winform programming and trying to generating exe setup file, for that I'm using MicrosoftVisualStudio2015InstallerProjects. I've created .exe file and it's working fine, but after installation every time I need to go the installation directory and give permission to the user. To get rid out from this issue, I've tried to use AfterInstall event and give all permission to user. public partial class ClientInstaller: Installer { public ClientInstaller() : base() { AfterInstall += new

Can't save any files in Xcode due to permission error

南笙酒味 提交于 2019-12-11 11:15:49
问题 I suddenly can't save any files in any of my Xcode projects in my home directory. Not sure what caused this. Here's the error I'm receiving: I don't think Xcode is correct, since I am the owner of -- and have read+write permissions on -- the affected files. A few other fun facts: I can edit these files in other applications as the same user, so the problem seems to be specific to Xcode. Other users can create and edit projects in their home directory without issue. Running Xcode as root (via

file_get_contents for file owned by root

这一生的挚爱 提交于 2019-12-11 09:29:32
问题 I am in the process of setting up a remote backup for my MariaDB server (running on 64 bit Ubuntu 12.04). The first step in this process was easy - I am using automysqlbackup as explained here. The next step is mostly pretty easy - I am uploading the latest backup in the folder /var/lib/automysqlbackup/daily/dbname to a remote backup service (EVBackup in the present case) via SFTP. The only issue I have run into is this The files created in that folder by automysqlbackup bear names in the

Save file with C fopen

删除回忆录丶 提交于 2019-12-11 08:25:10
问题 I did a program in C but it does not allow to save on c:\SomeDirectory\afile.txt I'm using this: FILE* m_hFile = fopen("c:\\SomeDirectory\\afile.txt", "a+t"); fprintf(m_hFile, "testing"); fclose(m_hFile); Why that? Is there a defined folder I can save in? SomeDirectory is previously created. I'm using Windows 7 OS. 回答1: If fopen encounters an error, it sets the errno variable indicating what error occurred. You can test this, or even simpler, use perror to print out an error message that will

PHP Cannot write to file even though it has 777 permissions

前提是你 提交于 2019-12-11 08:13:36
问题 Im trying to make a php file write to a file that resides in the same folder. Both the php file and the file its trying to write to have their permissions set to 777 (its a linux server) as well as the folder they reside in. Whenever I called fopen() with the 'w' or 'w+' mode, the function just returns false. Its on my school's webserver, so there is no way I can get root access to change the owner of the file to the same user as apache. Does anyone know whats wrong? Update: As a test, I was

Adding Files/Folders to Program Files x86 Folder with C#

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:09:08
问题 I am trying to create a file directory (folder) in the 32 bit Program Files folder to store data that a user will be creating in the program. However, it keeps saying that access is denied when I try to do so. Is there anyway to give the program permission to access the 32 bit program files folder and add subsequent folder and files to it? Here is my code below which is producing a run-time error due to not having permission. string mainDirectory=Environment.GetFolderPath(Environment

Jenkins Permission Denied

你。 提交于 2019-12-11 07:29:23
问题 I'm sorry to come here and ask for that but I have read all the internet trying to find a solution but I still have this problem... I have installed successfully (let's start when I still had hope) jenkins to use it in our continous integration flow. I tried to start with a simple example like this one : pipeline { agent any stages { stage('Build') { steps { sh 'mvn -B -DskipTests clean package' } } } } But each time I start it, I have this error : sh: /var/lib/jenkins/workspace/Test@tmp

Ec2 Market place Linux Instance Permission denied (publickey)

帅比萌擦擦* 提交于 2019-12-11 05:49:07
问题 I have a Wowza instance purchased from Marketplace, about 4 hrs ago I was able to connect it and was doing some operations on it. But now when I am trying to connect it gives Permission denied (publickey) error. I used chmod command to give 777 permissions on ./ And here is the real cause I think. From this solution when I am trying to attach the root volume of this instance to other instance of same type it is giving the same error, but when voulme is detached it is being connected

SET-ACL folder permissions not applying correctly with my PowerShell script

家住魔仙堡 提交于 2019-12-11 05:42:57
问题 I have two scripts: the first one creates a new root folder, and the second one creates a new child folder. It is MOSTLY working correctly, but when the inherited permissions are pulled down to the child folder the permissions don't show on the Security tab. However, if I check Advanced the permissions are showing correctly... This seems to be causing issues since the inherited permissions don't seem to be applying to the folder correctly. What am I doing wrong? To clarify with an image: Here

Phoenix file copying on Heroku

≡放荡痞女 提交于 2019-12-11 05:40:31
问题 I'm trying to upload images to my Phoenix app on Heroku. I have a simple app that follows the instructions for file uploading from Phoenix's docs. I have a simple form and the controller uses File.cp_r() to copy the file from the temp directory. def create(conn, %{"user" => user_params}) do if upload = user_params["photo"] do File.cp_r(upload.path, "priv/static/images/foo.jpg") #non-dynamic name, doens't matter end ... end Works just file on my local. However when I upload this to Heroku,