Posts

Showing posts with the label File Permissions

Android - Adb Push ... Permission Denied

Answer : Edit: I found a work-around: AirDroid allows me to upload the file, but the permissions on the file are set to this: -rw------- Performing the following commands solves this problem (from Windows 7 command prompt). >adb shell # su # chmod 777 /data/data/com.me.app/databases/data.db The usual approach, which doesn't require any additional apps: Push to /data/tmp/ ; Copy on the device using adb shell , using cp if it's available on your device or cat if it isn't. > adb push data.db /data/tmp/data.db > adb shell # su # or run-as com.me.app # cp /data/tmp/data.db /data/data/com.me.app/databases/data.db Remembering to change com.me.app to the correct package name for your app.

Can't Delete Font Files

Answer : This Registry key manages fonts that the system knows about: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts I discovered in an older answer that removing a value of that key or changing a value's data to point to a nonexistent file will make Windows not see the font as usable. Therefore, if you remove the Registry entries that correspond to the fonts you want to torch (and then restart to make the system reload everything), you should be able to delete the fonts' files. If the above does not work on Windows 10, you can also STOP and DISABLE the following two services: Windows Font Cache Service Windows Presentation Foundation Font Cache 3.0.0.0 Reboot your computer, delete the font files, and re-enable the services by setting the Startup Type back to 'Manual'.

Cannot Read Configuration File Due To Insufficient Permissions

Image
Answer : There is no problem with your web.config . Your web site runs under a process. In iis you can define the identity of that process. The identity that your web site's application pool runs as ( Network Services, Local System , etc.), should have permission to access and read web.config file. Update: This updated answer is same as above, but a little longer and simpler and improved. First of all : you don't have to change anything in your config file. It's OK . The problem is with windows file permissions . This problems occurs because your application can not access and read web.config file. Make the file accessible to IIS_IUSRS group. Just right click web.config and click properties , under security tab, add IIS_IUSRS . So what is this IIS_IUSRS thing? Your web site is like an exe file. Just like any exe file, it should be started by a user and it runs according to permissions assigned to that user. When your site is started in IIS , A...

Chmod 777 To A Folder And All Contents

Answer : If you are going for a console command it would be: chmod -R 777 /www/store . The -R (or --recursive ) options make it recursive. Or if you want to make all the files in the current directory have all permissions type: chmod -R 777 ./ If you need more info about chmod command see: File permission If by all permissions you mean 777 Navigate to folder and chmod -R 777 . You can give permission to folder and all its contents using option -R i.e Recursive permissions. But I would suggest not to give 777 permission to all folder and it's all contents. You should give specific permission to each sub-folder in www directory folders. Ideally, give 755 permission for security reasons to the web folder. sudo chmod -R 755 /www/store Each number has meaning in permission. Do not give full permission. N Description ls binary 0 No permissions at all --- 000 1 Only execute --x 001 2 Only write ...

Ansible: How To Recursively Set Directory And File Permissions

Answer : file: dest=/foo/bar/somedir owner=root group=apache mode=u=rwX,g=rX,o=rX recurse=yes will set directories to 755, and files to 644. The Ansible file/copy modules don't give you the granularity of specifying permissions based on file type so you'd most likely need to do this manually by doing something along these lines: - name: Ensure directories are 0755 command: find {{ path }} -type d -exec chmod 0755 {} \; - name: Ensure files are 0644 command: find {{ path }} -type f -exec chmod 0644 {} \; These would have the effect of recursing through {{ path }} and changing the permissions of every file or directory to the specified permissions. Source: https://stackoverflow.com/a/28782805/1306186 If you want to use the module file in ansible, you can: file: dest=/foo/bar/somedir owner=root group=apache mode=0644 recurse=yes file: dest=/foo/bar/somedir owner=root group=apache mode=0775 With this method you first set all the file...