permissions

Can I listen on a port (using HttpListener or other .NET code) on Vista without requiring administrator priveleges? [duplicate]

蹲街弑〆低调 提交于 2019-12-17 15:16:42
问题 This question already has answers here : HttpListener Access Denied (11 answers) Closed 3 years ago . I'm using HttpListener to allow a user to set up a proxy on a user-defined port. When I start the HttpListener, I get an exception if the application isn't running under administrator privileges in Vista. From what I've read, this is expected behavior - administrator privileges are required to start listening on a port. But I'm sure there are ways around this, as I run plenty of programs

Setting default permissions for newly created files and sub-directories under a directory in Linux?

落花浮王杯 提交于 2019-12-17 14:59:53
问题 I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had u=rwxg=rwxo=r permissions. I know that I could use umask 006 at the head off my various scripts, but I don't like that approach as many users write their own scripts and may forget to set the umask themselves. I really just want the filesystem to set

Is there any way to ask permission programmatically?

谁说胖子不能爱 提交于 2019-12-17 13:45:15
问题 Is there any way to ask permission programmatically in android ? I don't want to add all permission to AndroidManifest.xml. So is there any dialog that asks for permission at runtime? 回答1: No. The user needs to be informed about the permissions while installing the application. Asking the user at runtime would be a security risk. 回答2: Applications statically declare the permissions they require, and the Android system prompts the user for consent at the time the application is installed.

Grant permission required for EXTERNAL_STORAGE in Android M?

纵然是瞬间 提交于 2019-12-17 11:52:34
问题 Will the Android permissions WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE trigger the new grant permission dialog of Android M? 回答1: I agree with Guillaume Perrot 's answer. I have met the similar question when I write the permission of READ_WRITE_EXTERNAL_STORAGE in AndroidManifest.xml with no permissions showing up in the app by default , people need to switch the toggle button of storage in the app permissions.Then I modify my targetSdkVersion in build.gradle to less than 23(MNC) and

GKE clusterrolebinding for cluster-admin fails with permission error

让人想犯罪 __ 提交于 2019-12-17 10:54:13
问题 I've just created a new cluster using Google Container Engine running Kubernetes 1.7.5, with the new RBAC permissions enabled. I've run into a problem allocating permissions for some of my services which lead me to the following: The docs for using container engine with RBAC state that the user must be granted the ability to create authorization roles by running the following command: kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin [--user=<user-name>]

View permissions in Django [duplicate]

假装没事ソ 提交于 2019-12-17 10:37:41
问题 This question already has answers here : Permission to view, but not to change! - Django (12 answers) Closed 3 years ago . As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add view permission in 'auth|permission|can view permission' to view all entries! THE WAY: [X] 1. Added 'view' to default permission list #./contrib/auth/management/init.py def _get_all_permissions

Serving large files ( with high loads ) in Django

十年热恋 提交于 2019-12-17 10:21:39
问题 I've been using a method for serving downloads but since it was not secure i decided to change that . ( the method was a link to the original file in storage , but the risk was that everyone with the link could have downloaded the file ! ) so i now serve the file via my views , that way only users with permission can download the file , but i'm noticing a high load on server while there is many simultaneous download requests for the files. here's part of my code that handles downloads for

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

孤人 提交于 2019-12-17 10:14:13
问题 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 too open. It is required that your private key files are NOT accessible by others. This private

ASP.NET - Reading and writing to the file-system, outside the application

Deadly 提交于 2019-12-17 10:05:52
问题 Is there a way to access the file-system outside of the current ASP.NET application, without going around giving IIS_IUSRS permissions? For example, if I wanted this line to work: logStream = File.Open("C:\logs\app.log", FileMode.Append, FileAccess.Write, FileShare.ReadWrite); ... I'd have to normally grant read/write permission to C:\logs\app.log to the IIS_IUSRS group. This gets annoying for setting the app up on new systems, where the directories which need to be accessed can be in

ASP.NET - Reading and writing to the file-system, outside the application

…衆ロ難τιáo~ 提交于 2019-12-17 10:05:14
问题 Is there a way to access the file-system outside of the current ASP.NET application, without going around giving IIS_IUSRS permissions? For example, if I wanted this line to work: logStream = File.Open("C:\logs\app.log", FileMode.Append, FileAccess.Write, FileShare.ReadWrite); ... I'd have to normally grant read/write permission to C:\logs\app.log to the IIS_IUSRS group. This gets annoying for setting the app up on new systems, where the directories which need to be accessed can be in