permissions

git clone produces different permissions on different servers

一个人想着一个人 提交于 2019-12-10 23:32:34
问题 When doing a git clone git://github.com/blasto333/PHP-Point-Of-Sale.git on one server the files permissions are (I am showing one file but it is like this for all of them): -rw-r--r-- 1 chrism chrism 3297 Apr 1 19:12 index.php On the second server it is: -rw-rw-r-- 1 rrdiaper rrdiaper 3297 Apr 1 19:14 index.php On a third server it is: -rw-r--r--@ 1 cmuench cmuench 3297 Sep 17 2010 index.php The 2nd server is complaining because the file is group writable (php suExec). I know I can fix it

Access DB - Operation must use updateable query

时间秒杀一切 提交于 2019-12-10 23:31:21
问题 I have a website I've built in VS2005, C#, .NET 2.0. This website does transactions against an Access database. It works fine in development. The mdb file resides in App_Data I have setup IIS on this machine to test the website as it would be deployed. I published the site to my IIS virtual directory. All went well. Whenever I try to update, insert, or delete I get the above error "Operation must use an updateable query." I have applied the following permissions to the App_data folder:

Application restart is required when user accepts READ_EXTERNAL_STORAGE permission

余生颓废 提交于 2019-12-10 23:23:27
问题 When user accepts READ_EXTERNAL_STORAGE permission, the permission is granted successfully (it can be seen in debug). But the directory can't be read ( dir.canRead() is false in debug) until the app is restarted. minSdkVersion 24 targetSdkVersion 28 What is wrong with Android Pie? P.S. I'm absolutely sure that my code is written right (this part of asking for permission etc.) 回答1: I had the same problem, but with the official release on Pixels it has been solved, so the bug was happening only

should apache upload dir have 777 permissions or belong to www-data user?

£可爱£侵袭症+ 提交于 2019-12-10 23:20:22
问题 I'm running apache and my php site uploads images to the server. should apache upload dir have 777 permissions or belong to www-data user? How would this affect backing things up? 回答1: I think read + write permission is enough. read for backup, write for upload. It seems that no one ever need to execute anything. And you should only grant permissions to who really need them. For example, grant write permission to www-data. And if you use another-user to do back up, only grant read permission

Permission Denial: reading com.android.providers.contacts.CallLogProvider

六眼飞鱼酱① 提交于 2019-12-10 23:14:45
问题 I'm getting this exception on a specific phone and carrier: Samsung Galaxy S3 on Verizon. I've tested in an Evo with Sprint and a Galaxy Nexus with AT&T and none give me this error. I'm wondering if the phone carrier has done any modifications to the OS that now requires additional special permissions. I recorded the following stack trace remotely from a customer who has a Galaxy S3: Stack Trace: Permission Denial: reading com.android.providers.contacts.CallLogProvider uri content://call_log

pip install - PermissionError: [Errno 13] Permission denied

不羁的心 提交于 2019-12-10 23:01:06
问题 Environment Windows 8.1 Python 3.5 Anaconda Issue When I do pip install sklearn --upgrade , I got the following error: Exception: Traceback (most recent call last): File "d:\anaconda3\lib\site-packages\pip\basecommand.py", line 209, in main status = self.run(options, args) File "d:\anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run prefix=options.prefix_path, File "d:\anaconda3\lib\site-packages\pip\req\req_set.py", line 732, in install **kwargs File "d:\anaconda3\lib\site

what permissions should jenkins have to execute shell-commands without being insecure?

一世执手 提交于 2019-12-10 22:57:18
问题 I have a script (test.sh) on a local server, which works fine when executed in a terminal. The script removes a directory, and recreates a directory local. It then connects to a remote server using "ssh -i $private_key .." and copies a file there. When I execute this script in jenkins with sh test.sh it doesnt work. I get the following errors: rm: .. Permission denied mkdir: .. Permission denied Warning: Identity file /.ssh/private_key not accessible: Permission denied. Jenkins is on the same

Laravel installed on a local volume (Mac) from docker nginx/php-fpm can't write session files

别来无恙 提交于 2019-12-10 21:49:15
问题 I have a docker-compose.yml file that runs the following (create image called mmm/nginx): web: image: mmm/nginx ports: - "80:80" volumes: - ./var:/var/www - ./etc/nginx/sites-enabled:/etc/nginx/sites-enabled/ links: - php - db php: image: rossriley/php56-fpm volumes: - ./var:/var/www - ./etc/php5/php-fpm.conf:/etc/php5/fpm/php-fpm.conf links: - db db: image: sameersbn/mysql ports: - "3306:3306" volumes: - /var/lib/mysql environment: - DB_NAME=tables - DB_USER=table - DB_PASS=pass it serves up

Designing a permissions based security model

烈酒焚心 提交于 2019-12-10 21:37:49
问题 I work on a vb.net winforms app where we currently are using simple roles for security. We enable/disable specific controls based on if the current user has the required role. We are to the point where this is no longer granular enough. Our application is based on different physical locations we call sites. A user might have permission to do something (for example, edit a site's configuration) at one site but not another. Therefore, we now need to lookup permissions based on current user AND

Symfony2 Capifony deploy setfacl Operation not permitted on cache directory

ε祈祈猫儿з 提交于 2019-12-10 21:31:05
问题 I am deploying my Symfony2 web app onto an Apache web server, on an Ubuntu machine, hosted on AWS, using Capifony multistage deploy. I have user set set :user, "ubuntu" And writable directory for cache set like so set :writable_dirs, ["app/cache"] set :webserver_user, "www-data" set :use_set_permissions, true set :permission_method, :acl Everything is deploying fine apart from when this is run executing "setfacl -R -m u:ubuntu:rwx -m u:www-data:rwx /var/www/releases/20140310012814/app/cache"