FAQ Database Discussion Community


Android M requesting permissions with permission_groups

android,permissions,android-m
The Android M Preview docs shows us how to check and request permissions with the new permissions model. In the chart below that it shows us a group of Permission Groups and their associated Permissions. When I try to to checkSelfPermission with a permission_group (ie Manifest.permission_group.CAMERA) on first start, predictably...

Permissions for subfolders Owncloud

linux,file,permissions,file-permissions,owncloud
I want to give permissions for subfolders in Owncloud. Example: a user can edit and read all the files in a synchronized folder except some specific subfolders. Im working with desktop client and web interface. Version: OwnCloud 8.0.3 (stable)...

Android: connecting to USB device, wait for permission

java,android,permissions,usb
I'm trying to do this: connect to USB device and get the opened (or failed) connection. I did the logic according to examples and explanations that I have found, but I have problem with waiting for permission grant. First I tried a "good" way of using wait()+notifyAll(), than I tried...

Gitlab: Can I create a Branch visible to only certain developers?

permissions,authorization,branch,gitlab
Im using gitlab, and I am wondering, is there a simple way to restrict access to a branch to only certain developers? This has to do with time varying disclosure and the ability for certain developers to see some objects models, while other cannot? Ideally this would happen in one...

Is it possible to fallback to AuthorizedWhenInUse when a user doesn't allow AuthorizedAlways in iOS?

ios,permissions,gps,core-location
My app uses user location in the background, but sometimes, users don't allow the app to always collect GPS data. The app can handle foreground only locations, and I'd like to set that as a fallback. Is there a graceful way, once an iOS user has declined my AuthorizedAlways request,...

phpmyadmin on debian with nginx

nginx,permissions,debian
I'm trying to use Deabian's package of phpmyadmin with nginx. In tutorials they create symlink to the phpmyadmin source files from virtualhost, like this: $ln -s /usr/share/phpmyadmin/ /var/www/host.com/phpmyadmin I think my first problem is, that nginx is running under nobody user, but the owner of phpmyadmin files is root. I...

Laravel 5: mkdir/Filesystem::makeDirectory with permissions from config

php,laravel,permissions,mkdir
I'm running into an issue this morning with FileSystem::makeDirectory which directly calls mkdir. I'm trying to create a directory recursively pulling the desired mode out of my config like so: $filesystem->makeDirectory($path, config('permissions.directory'), true); config/permissions.php <?php return [ 'directory' => env('PERMISSIONS_DIRECTORY', 0755), 'file' => env('PERMISSIONS_FILE', 0644) ]; .env ... PERMISSIONS_DIRECTORY=0775 PERMISSIONS_FILE=0664...

ACCESS_COARSE_LOCATION permission gives a cell tower precision on Android

android,permissions,gps,android-location,fusedlocationproviderapi
I am making some tests with the requestLocationUpdates() function from the FusedLocationApi. I am using the PRIORITY_BALANCED_POWER_ACCURACY. A city block precision is fine for me. When I request the ACCESS_FINE_LOCATION permission, I get around a 100m precision which is great with GPS off. As I do not need a GPS...

Magento 1.9.1 - CSS not loading during installation

css,magento,permissions,magento-1.9
I am trying to install Magento 1.9.1. But there is some problem in first step. Page not loading CSS. Perhaps the reason could be permission. But I tried after giving permission also and still no success. Please refer the screenshot. Thanks in advance....

Android security app ask for permission when recording audio

android,audio,permissions,record
When recording audio on android phone. I already add permission in the manifest file I can recording audio on most of the device, but can not recording on some device. The device pop-up window and ask for permission, if I click yes, then I can recording. I guess this is...

Sitecore “personalize” button access for non Admin users

permissions,sitecore,personalization
Our CMS content editors are not configured as Sitecore Admin users. The content editors don't have access to the "Personalize" button in the Device editor. The users are added to a custom sitecore role which are inherited from these Sitecore roles : Sitecore\Designer Sitecore\Author Sitecore\Sitecore Client Authoring Is there any...

Disable permission in android

android,permissions
I want to create Application which disable other application permission. for example I Don’t want Facebook or Viber to access my location. there are 2 application (in my knowledge) which can do something like this 1.this is a open source application. https://github.com/slvn/android-appops-launcher but this is not for all android version....

Facebook not always asking user for extended permissions

facebook,facebook-graph-api,oauth,permissions
I'm trying to get access_token with extended permissions using Facebook SDK for .NET. I do a redirect from my website to oauth login dialog with url http://www.facebook.com/dialog/oauth?client_id={my client id}&redirect_uri={my redirect url}&scope=manage_pages,publish_pages,publish_actions&state={guid state} (I checked in the browser, the scope parameter exists in the URL). And for some users it asks...

FTP permission denied using php script

php,ftp,permissions
I have a problem with my ftp account. Here is the code I have written to connect to my FTP and create a folder: <?php $ftp_server = "xxxxxxxxxxxxxxx"; $ftp_username = 'xxxxxxxx'; $ftp_password = 'xxxxxxxxxxxxxxx'; $ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server"); $login = ftp_login($ftp_conn, $ftp_username, $ftp_password); // try...

php exec inside exec / nested exec

php,apache,permissions,exec
If I'm already running code in a background by exec and inside it I call for another exec. Is it possible ? If so, does it need special permissions ? The error I have (and I suspect nested exec in it): exec() has been disabled for security reasons Regular exec...

ios how is permission/Authorization working?

ios,permissions,authorization
I'am trying to find how the iOS permissions and authorizations works, but I can't find anything. What I want to know is, if in my app version 1.1. I ask user for location's permission and when I update my app to 1.2, I now ask for location and camera. Is...

How does Content Provider's application specify permissions that client apps need in order to access the provider's data?

android,permissions,android-manifest,android-contentprovider,android-contentresolver
BACKGROUND I am reading this tutorial on Android Content Providers. I understand from this tutorial that, In order for other applications to access a Content Provider's data, the provider application must specify the permissions which the client applications need to have to access the its provider's data. Client applications specify...

Managing django admin filters according to permissions

python,django,filter,permissions
I am creating a python django project and while in admin I want to make it function like this: the user opens thecustomer window which would show a list of all customers then if the user has a certain permission a location filter is visible but if there is no...

Update role user: not authorized on admin to execute command

mongodb,permissions,rbac,replicaset
When I try to get info about replica I get the following error: rep0:PRIMARY> rs.printReplicationInfo() 2015-05-19T13:30:29.231+0200 error: { "$err" : "not authorized for query on local.system.namespaces", "code" : 13 } at src/mongo/shell/query.js:131 I have tried to execute the command with the two following users: [ { "_id" : "admin.siteRootAdmin", "user"...

Yii2 per content visibility depending on role

permissions,visibility,yii2
We have used RBAC to implement simple role based permissions for CRUD, but now we need to also add a 'visibility' functionality which makes it possible to limit content visibility (R) to only registered users or only the content owners. So, how can we limit content visibility on different levels,...

FTP Automatic Permission Change

ubuntu,ftp,permissions,server
I need to be able to ftp a file directly to a folder in ubuntu server 14.10 that will automatically change the permissions to 775. Is there a command or setting in the vsftpd config that will allow me to do this?

iOS - programatically rejecting permission to contacts (after user has accepted)

ios,events,permissions,calendar,contacts
Is there a way to programatically reject/disable/disallow/reject permissions to access the calendar? I'm using the following code to ask for / determine permissions: //request access [[MyCalendarUtil sharedManager] requestAccess:^(BOOL granted, NSError *error) { /* This code will run when uses has made his/her choice */ if(error) { // display error message...

c# How to set FileSystemRights.CreateDirectories to Deny but FileSystemRights.AppendData to Allow

c#,permissions,ntfs
I am trying to write a tool, limiting the ability to mess up file server structures. Within this project I am trying to limit the user to save files in directories, but prevent the user from creating subdirectories in specific folder. The subdirectory will be created another way, wich already...

How to save Facebook private message to database? [on hold]

php,facebook,api,permissions
My question is that is possible save private message from facebook to my database. And if yes, how is it possible? Thank you.

Duplication of data in explicit authorization

permissions,authorization,relational-database,rdbms
Our current authorization strategy on our site is very tightly coupled to our RDB's schema - which in some ways is a good thing, since it means the permissions available to a user exactly match what he should have, assuming a correct interpretation of the data. So when we query...

Role assignments in SSRS

sql-server,reporting-services,permissions,ssrs-2008,user-permissions
I have created a SSRS report. In the report viewer I saw 2 security sections site settings folder settings. What is the difference between these two? I have to give access to 2 types of users Somebody having permission just only for viewing report. Somebody having permissions to view reports,...

SSH Key: “Permissions 0644 for 'id_rsa.pub' are too open.” on mac

ssh,permissions,key
I generate a ssh key pair on my mac and add the public key to my ubuntu server(in fact, it is a virtual machine on my mac),but when I try to login the ubuntu server,it says: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/Users/tudouya/.ssh/vm/vm_id_rsa.pub' are...

Android -how do I access device information like Android version of the device in my app? [duplicate]

android,permissions,device
This question already has an answer here: Getting device os version in Android programmatically 3 answers In my app, I have an email button that uses an intent to open gmail app. How do I access the Android device version and the device model to include it in the...

file writing permission error as user www-data

php,python,permissions
I am trying to write to a file by running a python script as user www-data. When I run the script using the following: sudo python my_script.py it writes fine. When I run the PHP script as www-data it doesn't write. Permissions: folder(PiControl....contains status_log file): drwxrwxrwx file(status_log....the file I am...

`fs.mkdir` is creating the directory with different permissions than those specified

node.js,unix,permissions,fs
Due to the modules my node program uses, it requires root to run. This is because it has to run a HTTP server on port 80 (and as you know, lower ports like that require root in order to be used). But, this program also uses a fs method to...

How to share home directory for different users of GUI desktop application?

python,user-interface,ubuntu,permissions
I am developing notebook GUI application for field support people (i.e. there is only one user logged into system at any one time). There is only one user application program running started in User Defined Session (i.e. there is only one desktop format file in /usr/share/xsession/ starting GUI application on...

post-receive only works with the user ROOT

php,linux,git,permissions,vps
production exported only when it executed GIT as ROOT user my repository is: /opt/git/xxxxx.git (my repo is created with the root user ) In my file post-receive: git --work-tree=/var/www/ --git-dir=/opt/git/xxxxx.git checkout -f I need that other users can go into production Thanks!!...

Checking the equality of two NTAccount objects

c#,.net,windows,service,permissions
I am trying to check that a service has access rights to a particular local directory: public static bool HasDirectoryPermissions(String path, FileSystemRights rights, String serviceName) { try { var directoryAccessControl = Directory.GetAccessControl(path); ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * FROM Win32_Service where Name='" + serviceName + "'"); var queryResults = (from...

Linux - Difference between transferring files and creating them - Permissions

html,linux,apache,permissions,webserver
I am running an Apache web server on a machine running Centos. THE PROBLEM: When I run the server, everything works fine and I can see the welcome page. The problem occurs when I try to put in an index.html file I previously created into the /var/www/html directory. When I...

Combined network- / webshare: file ownership and permissions

apache,permissions,afp
I'm using a combination of pyd.io and netatalk to have my remote storage available at home and from anywhere. So far (reading) everything works fine, but now — while trying to upload something for the first time — I have a problem that causes me a headache. The directory /mnt/data...

PHP - On Form Submit duplicate folder with new name

php,apache,permissions,folders
Is it possible that php can create a new directory with certain files inside. For example when the php code is activated it duplicates a folder in my server directory with it's own name? I would very much appreciate if anyone could provide the start of the code I would...

Trouble setting up a Loopback production host on AWS EC2

amazon-web-services,amazon-ec2,permissions,loopbackjs,strongloop
I'm having trouble setting up a StrongLoop LoopBack production host on AWS EC2. I'm following these directions. This is what I tried. I created an EC2 server that's a Ubuntu Server 14.04 LTS. Then I: $ ssh -i ~/mykey.pem [email protected][ec2-ip-address] $ sudo apt-get update $ sudo apt-get install build-essential $...

Request additional permission Facebook SDK 4 iOS

facebook,login,sdk,permissions
I have an app that log in through facebook. When it log in, I only asked for "public_profile", "user_friends" and "email" permission. I know that I can ask for more permission later on, as FB stated: "Your app can ask for additional permissions at any time, even after a person...

Permission Denial when trying to access contacts in Android

java,android,permissions,contacts
I am trying to access the contacts on the device and later display them in a list, however when I try to access them with a cursor, I get an error that I'm missing permissions for READ_CONTACTS but I have already gave permissions in my AndroidManifest.xml Code where I access...

Proper owner of var/www/html

apache,permissions
I am running apache2 in Ubuntu 14.04. I have been having trouble with permissions with FTP clients and CMS that use backend FTP. I never seem to be able to get the permissions right. Should www-data be the owner of /var/www/html and root as a user assigned to that group?

Grant write permission to a Perl script when it is called from a shell script regardless of user

bash,perl,shell,permissions
I have a function in a Bash shell script that is called upon start-up of the the script. The function performs a sort on a data file, then calls a Perl script which checks to see if a backup of the script and data files needs to be performed, if...

Permission Error When Trying To Install Rails (OSX)

ruby-on-rails,ruby,ruby-on-rails-3,osx,permissions
I am new to programming and am trying to get rails installed on my terminal. I have been following instructions from a friend, installing the xcode command line tools, homebrew, git, rbenv, ruby-build, ruby gems, ruby, and postgres. But whenever, I try $gem install rails, I get the following: Russell-Silvers-MacBook-Pro:~...

Broadcast before BOOT_COMPLETED?

android,permissions,broadcastreceiver,bootcompleted
Is there a way to detect that the device is turned on but the BOOT_COMPLETED broadcast? I know I can catch the Broadcast with a BOOT_COMPLETED RECEIVER, but is there anything that is fired directly after device is turned on, for example if the user turns on the device and...

Automate Entrust permission with accessing the Route name parameters and check for user's permission

php,permissions,routes,laravel-5,acl
I have implemented Entrust Roles for ACL layer. Now I'm planning to automate the permission check for each request so that, each time I don't have to write the permission for the user roles. eg. I have company resource, and user role as 'admin', he can only view company and...

PHP unlink() issues

php,permissions,mkdir,unlink
Platform = Mac OS 10.8.5 Hi guys, I'm working on a php/mysql site. When I create a new user, my site creates a series of file folders to house information. My issue is when my user tries to delete his account, it will return a permissions error. I can temporarily...

How to freeze a folder in linux?

linux,permissions,file-permissions,freeze
I wanna to freeze a folder in red hat so nobody (even root) can not add file into the folder or change files that exist in the folder already, i tried to make folder read only but this does not work and root user can add files normally as before,...

Android Permission Denied when Writting files

android,file,permissions,internal-storage
I am trying to create a file in the internal storage when i say internal storage it is not to keep safe data, it will be to save some images or public files I was trying everything but it is giving me error and i dont know why D: CODE:...

Liferay roles and permissions for publishing

permissions,liferay-6,roles
I am new to Liferay, since there are many roles in Liferay, i'm in confusion. I need to implement a particular scenario like, Admin --> can publish Users(under admin) --> can edit content and make request to admin for publishing can any one explain how to implement this...

Using Facebook php sdk v4.0 to delete individual permissions

facebook,facebook-graph-api,permissions,facebook-php-sdk
I've built a Facebook application on my site and I'm trying to create a form to remove individual permissions. However when I try to remove a permission I get this error. Uncaught exception 'Facebook\FacebookAuthorizationException' with message '(#100) The parameter seen_permissions is required' I know I can use a try/catch to...

Unity Accessing variable from other script js

javascript,variables,unity3d,permissions
How do I call a variable from other script components?: mirror.transform.position = cop.GetComponent("AI_Car").mirrorPos; It seems that the public variable carPos declared in the script AI-Car-script cannot be accessed: 'mirrorPos' is not a member of 'UnityEngine.Component'. ...

DokuWiki Installation on Windows server 2003 using IIS problems

php,iis,permissions,windows-server-2003,dokuwiki
I am trying to install DokuWiki on a windows 2003 server and using IIS 7.2 and PHP 5. I have gone on to IIS and created a virtual directory that points to where I extracted DokuWiki, I have set up all the permissions for that folder ensuring that it has...

Facebook Permission not being granted with request

javascript,facebook,facebook-graph-api,permissions,facebook-fql
Registering users in to the application via Facebook with all the permission. But Permissions not being requested during enrollment. Here will be steps followed Added java script call to Facebook login window with permissions. (function($) { window.fbAsyncInit = function() { FB.init({ appId: '#{settings.facebookAppId}', status: true, cookie: true, xfbml: true, oauth:...

Running rsync as root: Operations Not Permitted

osx,bash,scripting,permissions,backup
World! I have a backup script that would run rsync for every user and will archive their /User/user folder onto our shared drive. Running into an interesting problem with rsync: when executing the script as "sudo" from the shell as the current user I'm unable to preserve the permissions of...

Running command as root from other application

linux,command-line,permissions
I using c++ in my application to running some terminal command,If i run application as root user is terminal run command like root ?

Change permissions to allow PHP script in browser to execute matplotlib operations in a python script

php,python-2.7,browser,permissions
I am running Ubuntu 14.04 with a locally hosted webpage running on Apache2. I can access index.php fine through my browser, but I want that page to display a graph that is prepared in a python script called graph.py. graph.py will execute fully when the I execute index.php from the...

Where to apply domain level permissioning

design-patterns,permissions,authorization,onion-architecture,hexagonal-architecture
Permissioning/Authorization (not Authentication) is a cross-cutting concern, I think. In an Onion Architecture or Hexagonal Architecture, where should permissioning be performed? Examples of permissioning required would be: Filtering data returned to the front end (UI, API, or otherwise) Validating that a business operation can be performed at all Ideally, via...

Effect of umask on text files

linux,file,unix,permissions,umask
I understand how umask works, at least a basic level, when dealing with the permissions of an executable file or directory. However, I struggle when it comes to how umask applies its rules to text files. For example, consider the umask 037. On newly created executables or directories I understand...

Shell script getting superuser privilege without being run as sudo

linux,bash,shell,permissions,sudo
Here is my script: script.sh: sudo cat /etc/passwd- If I am in a sudo session (eg I ran an other command with sudo a few minutes ago), and now run script.sh The script will get sudo access. However if I run cat /etc/passwd-/, I will get a permission denied error....

Error loading image from presistent Uri

java,android,image,permissions
The program flow is that the user selects an image from the gallery and it is displayed in an image view. This works fine. At the same time, the Uri is written to a database. Later, when the program is run again or that activity is displayed again, the Uri...

Can I control the owner of a bind-mounted volume in a docker image?

permissions,docker
I have a docker image which contains an eclipse. I run the eclipse in the image under an account named eclipse. I want to start the image with my workspace directory form the host machine bind-mounted into the container. Unfortunately the owner of the mounted volume inside the container is...

Why rsAccessDenied error on SSRS when using Chrome but not in IE

sql-server,reporting-services,permissions,active-directory,ssrs-2008
I am trying to identify reason why SSRS service URL throws an exception when using Chrome while not with IE. I tried running both of them with Administrative account. http://xyz-shantanug/Reports/Pages/Folder.aspx User 'Domain\userName' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC)...

Qt Session management error with matplotlib.pyplot.plot

qt,unix,matplotlib,permissions,sudo
All of a sudden, whenever I call matplotlib.pyplot.plot (within a unix OS), the following error is printed to the screen: Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed This error does not interrupt the function; the plot is...

Managing directory permissions across the host and Docker container environments

linux,permissions,docker
I'm trying to use a stack built with Docker container to run a Symfony2 application (SfDocker). The stack consists of interlinked containers where ubuntu:14.04 is a base: mysql db nginx php-fpm The recurring problem that I'm facing is managing directory permission inside the container. When I mount a vloume from...

Why can't remove the dir that have been chmoded 777?

php,permissions
I have assign anyone the right to read and write. chmod 777 -R /home/test An error occurred When to remove it with php function: rmdir('/home/test'); Warning: rmdir(/home/test): Permission denied...

Run C# app on Startup?

c#,permissions,startup
I have created a simple weather application and I added the code below to let the user let it run on Startup: RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); if (startupCheck.Checked) { rk.SetValue("WeTile", "\"" + Application.ExecutablePath.ToString() + "\""); } else { rk.DeleteValue("WeTile", false); } Now this runs fine on both my computers....

How to write .csv file in Python?

python,file,pandas,permissions
I am running the following: output.to_csv("hi.csv") where output is a pandas dataframe. My variables all have values but when I run this in iPython, no file is created. What should I do?...

File ownership of created files

php,nginx,permissions,webserver,ownership
I have 2 php applications running on my server and the files within these applications are owned by 2 users (user1 and user2) The ownership of the files look like this user1:www-data and user2:www-data. I assign www-data as group so my php application can easily write to the files when...

Getting Facebook timeline

facebook,facebook-graph-api,permissions,facebook-timeline,review
I am fetching my timeline from Facebook and I successfully able to get my timeline but when I login with my friend's Facebook account I received the following error- { "error": { "message": "(#200) Requires extended permission: read_stream", "type": "OAuthException", "code": 200 } } I am the admin of the...

Linux permissions - user vs group permission

linux,unix,permissions,file-permissions,user-permissions
I know that the permissions listing are for user , then the group and the third one is for other users. my example : _rwxr--r-- tooth face file1.txt _rwxr--r-- eye face file2.txt _rwxr--r-- leg face file3.txt groups included tooth : face head eye : face head leg : body Now,...

PHP shell_exec permissions in nginx

php,nginx,permissions,shell-exec
echo shell_exec('ls'); works fine. But trying to copy something: echo shell_exec('cp index.php temp/index.php'); It doesnt show any error, but it doesnt copy. I am using nginx with phpcgi....

Concrete5 5.7 Block permissions

permissions,block,concrete5,concrete5-5.7
Simple question. How can I add permission to edit one single block in the whole website for one user/group? I just can't figure it out. I want to make a small website with only one area editable for client.

A folder created with os.Mkdir() has incorrect permissions

go,permissions,directory
I am creating a folder in go using os.Mkdir(). While it does get created, it does not possess the permissions I expected it to. Here is the code I used to create the directory: package main import ( "fmt" "os" ) func main() { err := os.Mkdir("/var/run/testdir", 0777) if err...

Why user will be asked for access photo permission when first launch app?

ios,permissions,photo,breakpoints,privacy
When the app is first run it asks for permission to access the photos! What's the reason for that? One way is run the code one line by one line or Another way is revert code to previous version. And find from which version, the app become to ask permission...

Ruby on rails 4 - What would be the best way to allow one user to see the data of another user

ruby-on-rails,permissions,user
I want to allow one user on my app to chose who can see his own data, I don't know if I'm really clear so here is an example : User A creates data on a table and he can only see his own data and/or decide to share it...

Replace NTFS Permissions with PowerShell

permissions,powershell-v3.0,ntfs
I'm working with a fileserver that was connected to an old domain a few years ago. For some reason, the old domain is now gone and replaced by a new one. The only problem is that there are still some NTFS Permissions that uses the old users, of the old...

Rails application deployment and Nginx file permissions

ruby-on-rails,linux,nginx,deployment,permissions
I've just set up my application and deployed it to /srv/my_app_name using Capistrano. However, when I try to access my app, I receive 403 Forbidden nginx/1.6.2 error. My Nginx runs under www-data user, but now I'm trying to understand what access rights should be granted to Nginx for my application...

What are correct permissions for Linux Apache2 PHP 5.3 log file?

php,linux,apache,logging,permissions
I discovered the reason why I was not getting entries into my php_errors.log file related to permissions. Right now, I have set it to 666 (rw-rw-rw-) but surely this is a security weakness? Thus, my question. php.ini file: error_log /var/log/httpd/php_errors.log log_errors On # ls -ld /var/log /var/log/httpd /var/log/httpd/php_errors.log drwxr-xr-x 6...

How to improve performance of changing files and folders permissions?

linux,ubuntu,permissions,find,chmod
I setting up my work project permissions in series to: 755 for all directories 644 for all files I do it by running next commands: $ find /path/to/project -type d -exec chmod 0755 {}; $ find /path/to/project -type f -exec chmod 0644 {}; It works fine, but a bit slowly,...

766 versus 666 Permissions on an Upload Directory [closed]

php,upload,permissions
Is 766 permissions okay for a directory where my website users can upload images to? I using 766 because when I set the directory to 666, the script returns an error and the file is not uploaded. Please is there any explanation for this? Thanks...

Getting a permission error when installing with bower

permissions,install,bower
Everytime I try to install something with Bower I get a permission error like this: Andreass-MacBook-Air:openMedia Andreas$ bower install jquery /usr/local/lib/node_modules/bower/node_modules/configstore/index.js:56 throw err; ^ Error: EACCES, permission denied '/Users/Andreas/.config/configstore/bower-github.yml' You don't have access to this file. at Error (native) at Object.fs.openSync (evalmachine.<anonymous>:500:18) at Object.fs.readFileSync (evalmachine.<anonymous>:352:15) at Object.create.all.get...

Permission denied installing android SDK

android,ubuntu,permissions
I'm installing and configuring the Android SDK. I follow this guide: https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins First of all I did not found the /etc/profile.d/android.sh. That file did nog exist. But I had to add env-variables. So I made the android.sh manually. I hope this is the right way to do this. Later on...

Returning custom message when a permission is denied in DRF

django,permissions,django-rest-framework
Django REST Framework has an excellent piece of documentation about permissions. I've been able to use pre-made permission classes and also built my own. However, there are some API methods in which a "Permission denied" generic message is not very informative for the user. For example, if the user is...

Wordpress on IIS with shared wp-content

php,wordpress,iis,permissions
I've been trying to install Wordpress on IIS and everything went smoothly with a standard installation and an handler mapping for php-cgi. Since I have a public server (A) and a private shared server (B), I need to have a WP installation on server A with a shared database and...

Node js plugin permissions

node.js,plugins,permissions,sails.js,fs
I create a web server with Sails.js, and want to allow third dev to create node.js plugins installable from a web page (store). My problem is I don't want this plugin to require sails (or other critical modules) and have access to database and services and do what they want....

Symfony 2 - Unzip a ZIP file & upload folder permissions

php,osx,symfony2,permissions,file-permissions
I have a Symfony 2 project with an upload folder (uploads works well). I'm creating a ZIP file after the upload which I put inside the same folder as the uploaded file (so the archive is created from the PHP script). But i cannot extract the archive afterwards under MAC...

rally wsapi permissions consistency

web-services,permissions,rally,consistency
Are Rally permissions consistent or eventually consistent? because many workspace and project permission tests I wrote are failing. They were passing 2 months ago. What i do is I create a workspace permission and then immediately after the response from the rally server I set a GET for that permission,...

Django permissions separate users by country

django,permissions
I have a question regarding permissions. I would like to separate my Users who are marked as Staff ( and can enter the administration page) through countries. So for example an admin from Netherlands can only see and edit the users from netherlands. What is the best approach to...

Should syslog's openlog() be called before or after seteuid/setegid

c,permissions,syslog
The code I have calls openlog() once, before altering the effective uid/gid of the program (a daemon). From a security standpoint, or a predictability standpoint, would calling openlog() after setting the effective uid/gid be better? I'm guessing on most platforms openlog() will open a Unix Socket to syslogd? Are permissions...

how to solve TAR: CANNOT MKDIR PERMISSION DENIED

permissions,tar,mkdir
File permissions I have a file data.tgz which I want to uncompress. -rw-r--r-- 1 username group 20342951248 mai 18 11:50 data.tgz Directory permissions Directory where file is located drwxrwxr-x 3 username group 4096 juin 1 17:16 directory/ Uncompress When I try to uncompress the file by using the following command:...

Block access to functions in Code Igniter

php,codeigniter,permissions
I'm developing a application in Code Igniter and a problem come by: I have several functions that access the database, that are routed like this: controller/function/variable employess/deleteEmployee/4 So, anyone that put this on the url gonna delete the employee. How can I manage to allow only a logged admin user...

android how to install apk silently?

android,permissions,install
I'm trying to make an app that installs apk silently. But when I try, it always gives errors. I dont really get what I should do now. I think I've already tried all the ways posted on the web. Can anyone help me know anything else I should try now?...

Can git retain file owner, permissions, ACLs, and file attributes on a local Windows NTFS machine?

windows,git,windows-7,permissions,ntfs
If I commit some code on a Windows machine with an NTFS hard drive into git, and then check it back out again in a another directory, will it retain my original Owner, NTFS permissions ACLs, and file attributes? If so will it automatically break inheritance to do so, or...

Parse iOS SDK, cannot get all fields from _User table

parse.com,permissions,ios8,pfobject,pfuser
In my application I store information in other fields of the Parse _User table such as a user rank and home City/State. I was able to read all the data from the table for a user simply by running a PFUser query command. PFQuery *userQuery = [PFUser query]; [userQuery whereKey:PARSE_CLASS_USER_USERNAME...

How to fix insecure world error?

ruby-on-rails,ruby,osx,permissions
I am trying to learn Ruby on Rails and I keep getting this warning when I start up my server, the app still works I just want to get rid of the warning. I followed someone else on here's advice to adjust the permissions but I still get this error,...

Multi-permissions login system for a web DBMS System (PHP/MYSQL/JAVASCRIPT/AJAX) [closed]

php,mysql,ajax,logging,permissions
Any suggestions for a multi-user/multi-permission-levels management module for web applications? I am actually developing a wide Data Base Management System which handles many tasks, so I need multiple user accounts, each account can only operate on special functionalities of the web application. I'm developing using (PHP/MYSQL/JAVASCRIPT/AJAX)...

PyZMQ: Permission denied

python,permissions,pyzmq
code: import zmq from multiprocessing import Process import time def server(): port = '5556' context = zmq.Context() socket = context.socket(zmq.PAIR) socket.bind('tcp://*:%s' % port) for i in range(10): socket.send('server to client') msg = socket.recv() print msg time.sleep(1) def client(): port = '5556' context = zmq.Context() socket = context.socket(zmq.PAIR) socket.bind('tcp://127.0.0.1:%s' % port)...

How to change ubuntu to root?

linux,permissions,operating-system
I am new to linux. when i list the files under folder 1, i see below result -rwxrwxrwx 1 root root 920 Jun 3 10:36 file1.xsd -rwxrwxrwx 1 root root 920 Jun 3 10:36 file2.xsd drwxrwxrwx 2 ubuntu ubuntu 4096 Jun 12 11:10 temp -rwxrwxrwx 1 ubuntu ubuntu 1853 Jun...

Facebook web app on XAMPP localhost - how to go through the review?

facebook,permissions,xampp,localhost,photos
I am currently trying to develop a simple Facebook web application on XAMPP localhost to read photos and tags. I understand one does not need to go through Login Review if the app requests the three basic permissions: public_profile, user_friends, email I would need to ask for user_photos permission, and...

What is the way to know a Zope permission title by knowing its id (and vice-versa)?

permissions,plone,zope,zope3
On Zope and Plone you can register permissions like this: <permission id="choosen.id.for.your.permission" title="Old Zope 2 permission, shown in ZMI" /> What is the way to get the permission's title from Python when you know the permission's id? I mean something like: >>> something_magic.get('choosen.id.for.your.permission') 'Old Zope 2 permission, shown in ZMI'...

access_type=online vs offline, how to know which one to use

c#,permissions,oauth-2.0,google-oauth
I have implemented Google oauth2 server flow for web, the first time that user logins using his/her google account I have to use access_type=offline to get a refresh token and save it to database but after that access_type=online will be enough. I have read that google issues limited number of...