file-permissions

Grant IIS Express permission to access network drive in VMWare

淺唱寂寞╮ 提交于 2020-01-03 09:57:29
问题 I have a Windows 7 virtual machine in VMWare that I'm using to develop ASP.NET MVC 5 Web applications with the default IIS Express server. I like to keep my projects saved on an external hard drive which I can access in the virtual machine through a shared folder / network drive. However, when I run my applications, IIS Express cannot access my web.config files in the project directory. It's looking in the right folder so I'm pretty sure this is a permissions issue. How can I grant IIS

Setting file permissions returns FALSE always

家住魔仙堡 提交于 2020-01-03 09:11:40
问题 The code: File dir = new File(path); boolean rc1 = dir.setExecutable(true, false); boolean rc2 = dir.setReadable(true, false); boolean rc3 = dir.setWritable(true, false); if (!rc1 || !rc2 || !rc3){ logger.warn("One of the permissions set returned false: rc1="+rc1+" rc2="+rc2+" rc3="+rc3 + " [for dir '"+dir+"']"); } On Ubuntu all 3 calls return false. On my Windows only the 3rd call to setWritable returns false. The target is to create the file/dir so the user (tomcat) and the group will be

Linux file permissions(in-depth) - numeric to string notation, and vice versa; additional file-permissions

*爱你&永不变心* 提交于 2020-01-03 03:33:47
问题 I figured out how to read/convert the symbolic rwx parts to 421 octal parts, which was pretty straight forward. But I am extremely confused when there's the special characters involved. We know that -r-xr---wx converts to 0543, but what does -r-sr---wt or -r-xr---wt convert to? I believe for under user execute permission there's x, s, S. For group execute permission there's also x, s, S. Then all other user execute permission there's x, t, T. What do all these mean and how are they converted

php write file and set permission

空扰寡人 提交于 2020-01-02 17:49:11
问题 I'm trying to create a php file which I can edit straight away without manually set the permissions. I'm trying this... <?php $var = '<?php $mycontent = new Content(); echo $mycontent->block($p_name);?>'; $myFile = "testFile.php"; $fh = fopen($myFile, 'w+') or die("can't open file"); $stringData = $var; fwrite($fh, $stringData); fclose($fh); ?> ...it creates the file, but when I try to edit the file in my IDE it won't let me of course. I have to manually set the permission of the file created

How to give Sublime Text 3 write permission to files in web server's DocumentRoot?

丶灬走出姿态 提交于 2020-01-02 02:42:09
问题 I use Mac OS operating system for doing some local development and I don't want to change the default document root of Apache, which is /Library/WebServer/Documents/ I put my projects under that directory. But when I editing files, Sublime Text usually asks for the password when saving the changes. Without moving the projects to a less protected location, how can I let Sublime Text access those folders and files with full permission? What about changing the owner group to something and adding

Android file permissions on Android 6.0

℡╲_俬逩灬. 提交于 2020-01-01 16:51:56
问题 I want to list files and directories under "/proc" in Android. When running as my application process, many files are not readable. If I list the directory as the shell user I get the following output: shell@flounder:/ $ whoami shell shell@flounder:/ $ /system/bin/toolbox ls -l /proc dr-xr-xr-x root root 2015-09-12 03:30 1 dr-xr-xr-x root root 2015-09-12 03:31 10 dr-xr-xr-x root root 2015-09-12 03:31 101 dr-xr-xr-x shell shell 2015-09-15 03:24 10196 dr-xr-xr-x root root 2015-09-12 03:31 102

Android file permissions on Android 6.0

二次信任 提交于 2020-01-01 16:51:28
问题 I want to list files and directories under "/proc" in Android. When running as my application process, many files are not readable. If I list the directory as the shell user I get the following output: shell@flounder:/ $ whoami shell shell@flounder:/ $ /system/bin/toolbox ls -l /proc dr-xr-xr-x root root 2015-09-12 03:30 1 dr-xr-xr-x root root 2015-09-12 03:31 10 dr-xr-xr-x root root 2015-09-12 03:31 101 dr-xr-xr-x shell shell 2015-09-15 03:24 10196 dr-xr-xr-x root root 2015-09-12 03:31 102

Change permissions of folders

你。 提交于 2020-01-01 11:47:48
问题 I want to change some folder permissions (set to Read-Only) to ReadWriteExecute! I wrote this code, but the folder permission is still Read-Only: private void ChangePermissions(string folder) { string userName = Environment.UserName; FileSystemAccessRule accessRule = new FileSystemAccessRule(userName, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow); DirectoryInfo directoryInfo = new DirectoryInfo

How to configure access permissions for Cassandra on Linux Ubuntu

半城伤御伤魂 提交于 2020-01-01 05:10:07
问题 Thank-you for reading this. I am stuck at step three on this tutorial pertaining to installing Cassandra: http://wiki.apache.org/cassandra/GettingStarted#Step_3:_Start_Cassandra I can only run this software as root. ( shouting this over fictional helicopter noise ) This seem like a terrible way to run the software. When starting the Cassandra server as my normal user I receive the following errors: 1.) 15:46:00,147 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(

File system changes in Android Nougat

人盡茶涼 提交于 2019-12-31 08:46:05
问题 Ever since the first release of the Android N developer preview, I get "permission denied" errors when attempting to list the root directory or other system directories. The permissions on these directories didn't seem to change (as far as I can tell). Question: What change(s) in Android N caused these permission denied errors? How to replicate: In ADB shell, run the following commands: run-as com.debuggable.packagename ls / This gives permission denied errors on Android N. Why list system