file-permissions

Creating & writing to a file (with permission 755) from PHP fails as PHP runs as 'nobody' and target file owner is another user

て烟熏妆下的殇ゞ 提交于 2019-12-12 02:03:43
问题 I am writing a PHP code that creates another PHP file with fopen and writes to it. It runs on most shared environments without any problem but in some old servers and customized servers the code fails to create file and write to it even though the folder permission is 755 as the PHP runs under the account 'nobody' and the folder owner is another user. In shared servers the folder owner and the PHP both runs under same user and so there are no permission issues. Can anyone help me out here

Why are my OS X files executable; should I change that?

那年仲夏 提交于 2019-12-11 20:15:49
问题 Rummaging around some directories using Terminal on my OS X machine, I've discovered that many files (mostly old .doc , .xls , .jpg and even some .url files) have permissions -rwx------+ rather than the more common (and expected) -rw-r--r--+ or -rw-r--r--@ I'm unclear why this should be the case. Most of the offending files are older (some quite old, perhaps from the dark days when they resided on a Windows machine) and there have been many migrations and updates since their creation. So, is

Default file permissions for FAT32 USB stick on Raspberry Pi

余生长醉 提交于 2019-12-11 19:32:44
问题 When I plug a USB stick/thumbdrive that has been formatted as FAT32 into a Raspberry Pi (running Raspbian) the file permissions default to 644 and I cannot change them. I need to leave the stick as FAT32 so it can be used back and forward to a Windows system. I have written a rule using udev but I can't get it to work. My udev rule looks like this: # Set up any USB stick for full write access KERNEL=="sd?1", MODE="0777" I determined that the rule is getting triggered because I had it renaming

Is runFullTrust mode in UWP app ,capable of broadFileAccess by default?

元气小坏坏 提交于 2019-12-11 17:05:39
问题 I have a UWP app that requires the restricted capability "broadFileAccess" to access data from a file. I also have to use "runFullTrust" capability for registry access. My understanding was that an app in "runFullTrust" mode had both file and registry access permissions and that "runFullTrust" is a higher level capability. Problem: I tried giving "runFullTrust" capability,but for some reason the file access permissions are denied and also I dont even have an option to enable it under Settings

Can create and delete files on mounted file system yet not create links or change ownership

丶灬走出姿态 提交于 2019-12-11 17:00:23
问题 I have a Xubuntu install running in a VM (VirtualBox) on a Windows 10 host. There is a directory on the Windows file system which I have mounted in the guest as a vboxsf. I think it's a Linux problem but that's the background in case it's relevant. I have write access to this directory and all files within it (everything is -rwxrwxrwx). I can create, modify and delete files and directories in it. But trying to create a soft link (ln -s) or chown a file or directory to a different owner

Incorrect QFileInfo permissions for user desktop on vista 64

我的未来我决定 提交于 2019-12-11 16:05:30
问题 I am using the following code to determine if I can write to a specific directory using QFileInfo: QFileInfo dinfo(dirname); if (dinfo.exists()) valid = dinfo.isWritable() Unfortunately, when I pass in the path of the current user's desktop on Vista 64: C:\Users\USERNAME\Desktop QFileInfo::isWritable() returns false. However, if I pass it another directory (say C:\Temp) it returns true. I requested the directory permissions from the QFileInfo object which were 5555 (not writable by anyone).

RSA Key Store Permissions

青春壹個敷衍的年華 提交于 2019-12-11 15:53:33
问题 Since yesterday I haven't been able to generate strong name keys using sn.exe or through Visual Studio which also uses sn.exe. When attempting to generate a key file the following cimmand is executed sn - k "key file.snk" sn.exe then responds with Failed to generate a strong name key pair -- Access is denied. After repeating this process while running Process Monitor I now know that the locations to which sn.exe is denied access all reside within the following directory \ProgramData\Microsoft

How to get the list of possible operations that can be performed on DriveItem resource?

南楼画角 提交于 2019-12-11 15:47:32
问题 We are writing a OneDrive client application using a the REST APIs provided for OneDrive (personal) and need a way to identify the operations supported/allowed on the resource. There's something called activities which lists all the operations that have already been performed on a resource. And the Permission resource provides information about a sharing permission granted for a DriveItem resource. The same is returning a blank array when called:(. So, is there any way to identify what all

How to set folder permissions with .NET?

心已入冬 提交于 2019-12-11 14:03:23
问题 Is it possible to use a small .NET page to set folder permissions on some folders on the server where it resides? What is the code or objects that can be used for this? I am on Windows Server 2003. Basically I want to hit the page with a GET or POST and have it run and check and/or update the permissions on a folder. 回答1: There's a number of possible ways to approach this. One is to use the FileIOPermissions class, which allows you to specify permissions on files and folders. The other option

Permission exception for Sqoop

大兔子大兔子 提交于 2019-12-11 12:42:34
问题 Stack : Installed HDP-2.3.2.0-2950 using Ambari 2.1 The installation was auto. as the machines(total 9 nodes) had Internet connectivity and was done using root credentials. An ls command output for reference( sqoop user IS missing ) : [root@l1031lab ~]# hadoop fs -ls /user Found 7 items drwx------ - accumulo hdfs 0 2015-11-05 14:03 /user/accumulo drwxrwx--- - ambari-qa hdfs 0 2015-10-30 16:08 /user/ambari-qa drwxr-xr-x - hcat hdfs 0 2015-10-30 16:17 /user/hcat drwxr-xr-x - hdfs hdfs 0 2015-11