Questions tagged [access-rights]

Rights granted to a user for a particular entity instance.

266 questions
79
votes
3 answers

Add "Everyone" privilege to folder using C#.NET

I have used the code below to allow Everyone access to a folder: System.Security.AccessControl.DirectorySecurity sec = System.IO.Directory.GetAccessControl(directory, AccessControlSections.All); FileSystemAccessRule accRule = new…
Suresh Chaudhary
  • 1,609
  • 5
  • 25
  • 40
53
votes
20 answers

How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”

PROBLEM If you start using "Microsoft Internet Information Services Express (IIS)" from "Microsoft Visual Studio (VS)" you may get when you run Build this error message Unable to connect to the configured development Web server. Failed to register…
Bruno
  • 6,623
  • 5
  • 41
  • 47
41
votes
5 answers

Auto update isn't working in VSCode: Could not create temporary directory: Permission denied

From certain point I started getting this error from time to time(I suppose it fires when editor tries to check for updates), and manual/auto update doesn't work. The only way I can update the editor is re-download the app and replace it…
flppv
  • 4,111
  • 5
  • 35
  • 54
36
votes
2 answers

Must a deleted constructor be private?

class A { public: A() = default; A(const A&) = delete; }; class A { public: A() = default; private: A(const A&) = delete; }; Are these two definitions always identical to each other in any cases?
xmllmx
  • 39,765
  • 26
  • 162
  • 323
29
votes
2 answers

Different REST resource content based on user viewing privileges

I want to provide different answers to the same question for different users, based on the access rights. I read this question: Excluding private data in RESTful response But I don't agree with the accepted answer, which states that you should…
Anders Sjöqvist
  • 3,372
  • 4
  • 21
  • 22
26
votes
2 answers

Why can't a PRIVATE member function be a friend function of another class?

class x { void xx() {} }; class y { friend void x::xx(); }; This results in an error like error: friend function 'xx' is a private member of 'x' Why can't I declare a private member function to be a friend of another class?
Smatik
  • 407
  • 5
  • 15
23
votes
1 answer

CouchDB-wide read-only access rights

I need to create a CouchDB user which can only read documents from any database but can't write any of them. As far as I'm concerned, it is not what is supported by default (user types are described here). As the wiki says, access rights are given…
Sergey Savenko
  • 666
  • 6
  • 11
20
votes
2 answers

How to find my permissions in a SQL Server database?

I'm a user of a SQL Sever database, and I want to know my access rights / permissions in the database I'm using. What SQL query should I use to do so? Thanks
Nbenz
  • 602
  • 1
  • 9
  • 18
15
votes
1 answer

Would this Google LVL policy implementation be reasonably secure?

The default ServerManagedPolicy that Google provides in their License Verification Library relies on the server responses to determine the license revalidation interval. This results in requiring a revalidation every few days, in perpetuity. This is…
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
11
votes
3 answers

How to add custom user roles for a GitHub organisation?

There are two default user roles in an organization on GitHub: "admin" and "member". How to introduce a further role and configure its access rights?
automatix
  • 14,018
  • 26
  • 105
  • 230
11
votes
4 answers

listFiles() returns null when it shouldn't. It used to work properly until recently and hasn't been modified

public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub while(true) { ArrayList wallpapers = new ArrayList(); File dir = new…
Ryuu
  • 473
  • 2
  • 6
  • 11
11
votes
2 answers

Why is registry written in different location than expected?

I tried to write a registry subkey and its corresponding value to registry like this: const string subKey = @"SOFTWARE\Apple\Banana\"; const string regKey = "pip"; var rk = Registry.LocalMachine.OpenSubKey(subKey); if (rk == null) rk =…
nawfal
  • 70,104
  • 56
  • 326
  • 368
7
votes
4 answers

How to check a particular user has log on as service right programmatically

For an application I what to check whether a particular user has log on as a service right? How to do this programmatically? I checked in the Internet and could not find out some good resource Thanks Upul
Upul Bandara
  • 5,973
  • 4
  • 37
  • 60
7
votes
3 answers

How do I change the group ownership of a file in Ubuntu?

I have a little question on how to change the group owner of a file. At the moment the group of the file is the same as my user name but I want to change it so another user can access that same file and read/write to it.
PuchuKing33
  • 381
  • 3
  • 7
  • 19
7
votes
1 answer

CMake : how to create a directory during installation with certain access rights?

I have an application that is installed in /opt (this is the way it is done here). It is fine to have all the files and folders belonging to root apart from the logs directory that must be writable by anyone. To create the logs directory I do…
Barth
  • 15,135
  • 20
  • 70
  • 105
1
2 3
17 18