permissions

“Broad host permissions” Webstore warning despite only one host in permissions

爱⌒轻易说出口 提交于 2019-12-10 14:22:23
问题 I'm trying to publish a chrome extension but, when I try, this message appears: Because of the following issue, your extension may require an in-depth review: Broad host permissions Instead of requesting broad host permissions, consider using the activeTab permission, or specify the sites that your extension needs access to. Both options are more secure than allowing full access to an indeterminate number of sites, and they may help minimize review times. The activeTab permission allows

sharedRepository wrong group

主宰稳场 提交于 2019-12-10 13:55:28
问题 I use a bare repository where multiple devs can push. As suggested, I used sharedRepository = true to tell git to give a group of users the permission to push. When I want to add pushers, I simply add them the required group as secondary group ( sudo adduser the_pusher the_required_group ) When devs push, I see the files created in objects directory created with the good permission but not the good group. Example: $ ls -l repository/objects ... drwxrwsr-x 2 pusher1 pusher1 4096 janv. 7 14:13

setuid/setgid wrapper for python script

北城余情 提交于 2019-12-10 13:54:01
问题 I have a Python script that I wish to be able to be run as the system user guybrush with UID 200 and group guybrush with GID 200. At the moment my Python script (located in /path/to/script.py ) looks like this: #!/usr/bin/env python2 import os print "uid: %s" % os.getuid() print "euid: %s" % os.getgid() print "gid: %s" % os.geteuid() print "egid: %s" % os.getegid() My attempted C wrapper ( scriptwrap.c ) looks like this: #include <unistd.h> #include <sys/types.h> int main(int argc, char *argv

Remove particular permission using os.chmod

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:35:45
问题 How can we remove a particular permission for all using os.chmod ? In short, how can we write the below using os.chmod chmod a-x filename I do know that we can add permission to an existing one and remove also. In [1]: import os, stat In [5]: os.chmod(file, os.stat(file).st_mode | stat.S_IRGRP) # Make file group readable. But I am not able to figure out the doing the all operation 回答1: Cool. So the secret is you first need to get the current permissions. This is a bit of a mess, but it works.

IIS asks for login credentials only on a specific folder

…衆ロ難τιáo~ 提交于 2019-12-10 13:29:40
问题 i have on IIS 7 a site which has several sub folders. the site was built using .net 2 and is running in a pool in integrated mode. the whole site works perfectly except for all aspx files under a folder called "Reports". when the user is trying to access any aspx page under that folder (i.e. http://domain/Reports/page1.aspx) he gets a 401 response and the browser prompts for a user and password. this happens when accessing the site remotely and locally. when trying to look on the IIS log

php copy function, failed to open stream: Permission denied

空扰寡人 提交于 2019-12-10 13:16:58
问题 I am trying to upload image on server, below is script that I found on Internet and in worked locally, when I deployed code and database is gives me "failed to open stream: Permission denied" error. <?php //define a maxim size for the uploaded images in Kb define ("MAX_SIZE","5000"); //This function reads the extension of the file. It is used to determine if the file is an image by checking the extension. function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l =

File permissions with FileSystemObject - CScript.exe says one thing, Classic ASP says another

点点圈 提交于 2019-12-10 13:08:32
问题 I have a classic ASP page - written in JScript - that's using Scripting.FileSystemObject to save files to a network share - and it's not working. ("Permission denied") The ASP page is running under IIS using Windows authentication, with impersonation enabled. If I run the following block of code locally via CScript.exe: var objNet = new ActiveXObject("WScript.Network"); WScript.Echo(objNet.ComputerName); WScript.Echo(objNet.UserName); WScript.Echo(objNet.UserDomain); var fso = new

mkdir(): Permission denied

馋奶兔 提交于 2019-12-10 13:07:55
问题 I have 777 on all files on my server. PHP 5.4 (no safe_mode) Site works on other servers. It's Yii framework mkdir(): Permission denied /var/www/html/project/framework/web/CAssetManager.php(225) 213 return $this->_published[$path]; 214 elseif(($src=realpath($path))!==false) 215 { 216 $dir=$this->generatePath($src,$hashByName); 217 $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir; 218 if(is_file($src)) 219 { 220 $fileName=basename($src); 221 $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName;

INTERNET permissions in Android M

℡╲_俬逩灬. 提交于 2019-12-10 13:03:56
问题 Regarding Google's recent announcement about Android M and Permissions model. Per the official Android documentation: Limited Permissions Granted at Install Time: When the user installs or updates the app, the system grants the app all permissions that the app requests that fall under PROTECTION_NORMAL. For example, alarm clock and internet permissions fall under PROTECTION_NORMAL, so they are automatically granted at install time. The system may also grant the app signature and system

CVS Error: failed to create lock directory… Permission denied

房东的猫 提交于 2019-12-10 12:56:56
问题 I'm using using TortoiseCVS to access the CVS server. I get the following error: In D:\source\foo: "C:\Program Files\CVSNT\cvs.exe" -q update -P -d CVSROOT=:ssh:annan@foo-bar.co.uk:/home/cvsroot cvs update: failed to create lock directory for `/home/cvsroot/foo' (/var/lock/cvs/foo/#cvs.lock): Permission denied cvs update: failed to obtain dir lock in repository `/home/cvsroot/foo' cvs [update aborted]: read lock failed - giving up Error, CVS operation failed I had this problem before and