Questions tagged [access-rights]

Rights granted to a user for a particular entity instance.

266 questions
2
votes
3 answers

System.UnauthorizedAccessException: Access to the path is denied (UWP C#)

I'm developing a uwp platform that permit to upload image to imgur with the imgur api. I'm doing this : var picker = new Windows.Storage.Pickers.FileOpenPicker(); picker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail; …
maluss
  • 602
  • 1
  • 8
  • 14
2
votes
2 answers

Allow LocalSystem to access PostgreSQL database

I'm trying to configure my PostgreSql database ("mydb") in order to give login rights to the windows "LocalSystem" account. I've created a user in my database named LocalSystem SQL> CREATE USER LocalSystem; Then, I've tried using SSPI config in…
2
votes
1 answer

How to assign access rights to users and managers in security in odoo 10?

I am creating a module named loan management. In this module, I need to achieve some security rights. They are User – Can create/view/edit only his/her Loan and Manager – Can create/view/edit his/her team Loans. My code in security.xml:
Navi
  • 1,000
  • 1
  • 14
  • 44
2
votes
1 answer

Apache Mina: Get the user's username upon receiving a command

Using Apache Mina, I'm trying to allow certain users to run certain custom SSH commands. But I can't figure out how to get the username or any sort of information about the user in a CommandFactory. Right now, my server configuration looks like…
Cydrick Trudel
  • 9,957
  • 8
  • 41
  • 63
2
votes
0 answers

Is there any way to know that FileSystemInfo.Refresh failed?

It seems that FileSystemInfo.Refresh requires specific rights on the file even though I can't find anything about it in the documentation. I suspect it requires write access to properly work. Is there a way to check whether a call to that method…
Max
  • 3,453
  • 3
  • 32
  • 50
2
votes
1 answer

Remove a user from an access group in odoo

I need to remove a user from Administration group (settings/Access Rights). I tried below code but nothing happened. Custom_module.xml
KbiR
  • 4,047
  • 6
  • 37
  • 103
2
votes
2 answers

How can I get the name of any process having a visible window - WinAPI?

I'm trying to get the name of processes which have a visible window. For example, if I have Chrome opened, I would like to get the string "chrome.exe", but I only get the init value "unknown" using the code below. I read around it could be an access…
Serusar
  • 57
  • 6
2
votes
2 answers

Access Error when tried to duplicate a document in Odoo

I tried to set up a record rule for Invoice model in Odoo and the record rule goes like this: [('bu','in',[g.name for g in user.employee_ids[0].bus_unit1])] Record rule works fine. Now some user can duplicate the created records of Invoice model,…
Shravy
  • 656
  • 1
  • 23
  • 61
2
votes
1 answer

give iis application rights to system folder

I'm using the same components to access some dll in windows\system32. When I do it from exe, it works. However, when I am doing it from an IIS application, it fails - I do not know exactly what the error is because I am using third party…
Greg
  • 1,227
  • 5
  • 23
  • 52
2
votes
1 answer

Active Directory Access Rules aren't as specific as dsacls

So I'm trying to get the list of ACE from a specific OU. I found out about the ActiveDirectoryAccess rule class. The results given from the output don't seems to be as specific as the output from the dsacls command…
Lareau
  • 1,982
  • 1
  • 26
  • 47
2
votes
1 answer

How to make an executable running as administrator with install forge

I am using install forge (http://installforge.net/) to produce a setup file for my software. However, the soft recquires admin rights to run for some reasons. One easy solution is to ask the user to "right click -> execute as admin" or any of the…
dambromain
  • 191
  • 1
  • 12
2
votes
1 answer

How to set the owner of a file to SYSTEM?

Code-wise, this is pretty straightforward: var fs = IO.File.GetAccessControl(path); fs.SetOwner(new NTAccount("NT AUTHORITY\\SYSTEM")); IO.File.SetAccessControl(path, fs); This throws an exception that says "The security identifier is not allowed…
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
2
votes
1 answer

Assign task to users and user groups

I want to build a small task-application with MYSQL and PHP. I want to assign tasks to single users and to multiple user groups. I was thinking to have a user_table: userid name 1 Peter 2 Hans usergroup_table usergroup_id name 1 …
2
votes
0 answers

How can I change the Service Control Manager Access Rights for a user/group?

I need to query the status of a service in a remote computer and I can't use a admin user, I need to create a user with the least privileges necessary to do that. Looking at the Service Security and Access Rights, I think a user with the…
dinhokz
  • 895
  • 15
  • 36
2
votes
1 answer

Managing access rights in GitLab group

I have a GitLab group (with owner rights). In the documentation I red, that only master (and higher access levels) can create the new repository in the group. But all users in the group (even with Guest access rights) can read all projects in…
VeLKerr
  • 2,995
  • 3
  • 24
  • 47