I am working on a screen recording app using C++ in XCode. The problem is that when I compile and start the app I always have to give permission for screen recording in "Settings > Privacy".
Is there a way to always grant the permission in XCode or sth similar? It is really annoying when developing/testing the app to always manually grant the permission when re-compiling.
Sign your debug builds Luke
In order to grant macOS "Screen Recording" permission for development (or any other permission like microphone or camera access) you must sign your debug builds with your AppleID certificate. This applies for Swift/C++/Objective-C or any other language.
It's easy and free to do:
Simply click at your project
Go to "Signing & Capabilities"
Select "Development" in "Signing Certificate"
Pick your certificate in the "Team" (if you don't have any there will be an "Add Team" button which lets you download a free one after providing your AppleID)
After that your build settings should look like that:
(you may need to go use Product -> Clean Build Folder and rebuild)
If permissions appears revoked...
Also if the system still doesn't give you permissions you need to go to system Settings -> Security & Privacy -> Privacy and under an appropriate category you need to REVOKE the permission and grant it again after rebuild. This will prompt for app quit - do it and run the application again. From now on it will always have permissions.
Related
I'm trying to create my first project in google cloud with organization's administrator account. I have access to the administrator's email and passwords and I am logging in with that account to do so. The problem is that when I click on create new project I receive the following error:
There was an error while loading /home/dashboard?project=proven-now-305315&authuser=1.
You are missing at least one of the following required permissions:
Project
resourcemanager.projects.get
Check that the project ID is valid and you have permissions to access it. Learn more
Send feedback
The detail is that in my resource administration panel I already gave the permission that they ask me to the resource as shown in the following image:
As I have read, the project IAM Admin role should grant the resourcemanager.projects.get role and as you can see in the image the resource rcv # .. which is the administrator has it activated, however I keep trying to create a new project and it doesn't allow me to do it. Any idea?
In case anybody else, like me, reaches this answer, I want to point out that the accepted answer is correct, but for me I had to also make sure that within the settings, I ensured that Project Creation Settings on the right pane and under the section of Cloud Resource Manager Api Settings was set to on. It was turned off by default. Many people on my team overlooked this as it is significantly smaller text.
This may be an option that was not present before or it was turned on by default in the past. For us, it was turned off.
Please refer to the included image for a visual representation of the
settings that need to be turned on.
The problem was for some reason the Google Cloud was disable for all users, I solved following this instructions. Solved with this!
To activate this service, please follow the steps:
Access the admin console and go to Apps -> Additional Google Services
Look for the service “Google Cloud Platform” and click on the box next to it
In to top right corner click in “ON”
Confirm you want to turn it on in the pop-up box.
How is it that on my "Projects" page on Redmine, even once connected, there's no "New Project" link anywhere to be found?
Contrary to the demo version.
My account
Their demo
Thank you very much in advance!
Redmine has fine-grained, role-based permission system. Permissions are managed on global and per-project level, even per-field and per-status, based on workflow...
You don't see new project button, because you are not administrator, nor you have any role on some project which can grant you that permission.
You should contact your administrator or project manager to elevate your role.
I am having a very tinted design on the dashboard. I'm trying to delete but I get the message "does not exist, or you do not have permission to access it." . All right, but. How can I not have permission because I am the only user to use the service. I need to delete but I am facing this difficulty.
I am the only user of the service.
No one else uses the platform
Project permissions:
Role:
I faced same issue and finally figured this out. I hope other people can benefit from this.
If your project is under "No Organization", you can simply go to IAM, make sure you are owner, then go to project, delete/shutdown buttons will be enabled, you can delete the project.
However if you have created an organization, even if you are owner/admin of a project, you do not have delete permission. First you need to go to admin settings page and grant yourself "project deleter" role, then you will be able to shutdown/delete a project.
To give yourself "project deleter" role, go to IAM -> settings, Open dropdown at the top where you can select a project, click on all, click on your oganization name. Here you will see your email as "Organization Administrator". Edit this and add "Project Deleter".
Did this help anyone?
Only project owners can shut down the project, so make sure you are logged in as an account with the Project Owner permission before you try to delete the project. You must first disable billing before deleting any project by shutting down the project. If you are as an owner of project make sure that your log in with the right email.
Also, shutting down a project does not delete the project immediately. It only requests deletion of the project. The project owner will receive an email notification that the project has been marked for deletion
To shut down a project using the GCP Console:
1) Open the Setting page (found under IAM & admin) in the Google Cloud Platform Console.
2) Click Select a project.
3) Select a project you wish to delete, and click Open.
4) Click Shut down. Then click DELETE PROJECT. A confirmation screen describing what will happen appears.
5) Now enter the Project ID, then click Shut down.
For more information about shutting down/deleting the project please have a look at these following links with:
https://cloud.google.com/resource-manager/docs/creating-managing-projects#shutting_down_deleting_projects
https://support.google.com/cloud#topic=6158848
Open IAM and check for project permissions. check members and their roles. Check who is the owner of the project. what is your role? If you are the owner under roles and still not able to delete the project, then raise an issue in https://issuetracker.google.com/issues.
We have one folder on a Windows Server 2012 R2 that we want to share without passwords"
We need to provide the access of folder to another machine that is in same network but not in domain.
We need to share it without password verification.
Make sure all computers are connected to same LAN
1.start --> Run --> fsmgmt.msc
2.shared folders dialogue will open in that right-click
shares-->new share-->browse through the folder you want to share
and then in permissions Add Guest and change the permissions to access all then click ok
3.enter ip(shared pc ip) in the LAN computer pc
it should be open
In the computer that has the share, browse to Settings >> Network & Internet >> Status >> Sharing Options (or browse to Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings)
Advanced Sharing Options Window pops up
Choose the "All Networks" section so it opens the options
Scroll down to "Password Protected Sharing"
Choose the Option to "Turn Off Password Protected Sharing"
Click "Save Changes"
This method is only suggested if you aren't running a domain controller. I use this method on a Windows 2016 Server which has shares I need to access from PC's that are not part of any network domain. If you are running a domain controller, you want to handle everything through group policy as this method will allow anyone on your network to access the share.
If doing the above alone does not give you access then you will also need to edit the share permisions to and add the "Everyone" group object. The permission you give "Everyone" will determine whether users who access the share can read or write to the share.
Open Computer Management.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
In the console tree, click System Tools, click Shared Folders, and then click Shares.
In the details pane, right-click the shared folder, and then click Properties.
On the Share Permissions tab, set the permissions you want:
To assign permissions to a shared folder to a user or group, click Add.
In the Select Users, Computers, or Groups dialog box, type "Everyone", and then click OK.
Verify the permissions for the "Everyone Group" you just added.
Click Okay
Test
References:
Set Permissions for Shared Folders
How to Create Network File Shares with No Passwords in Windows 8
enable guest access and share it with guest this should do it. Else you need to make sure everyone is part of the domain and that that share is available to all the domain users. Sharing it with the users group should do the trick.
Simply add the 'Everyone' in the security folder and provide read and write access then share the folder (or) Right-click the folder and select Share with Specific People and then add 'Everyone' with Read/Write this will allow every user can access that folder.
I have a basic requirement - to run my application smoothly on Windows by creating firewall rules when prompted, that has windows firewall turned-ON.
When I log in to my system as an user with Admin privileges when I run my application the first time, the firewall comes up with a prompt, I inform it to allow my app and create a rule, nice.
However when I turn-on my PC, log in as a non-Admin user, and I run my application, the firewall shows up with a prompt as expected; however when I click on the same options as I did from the Admin user, the firewall prompt keeps popping up continuously even though I clicked on Allow /ok every time the prompt appears. The prompt only goes away when I click on "Cancel / Block" the application from running, which is obviously not what I want to do.
So here comes the million $ question, What and How should I change my application code to run smoothly by creating the firewall rule successfully the first time I click on the firewall prompt to allow my application; exactly the same way it is working when I run my application as an user with Admin privileges.
I have done my bit of searching online and have come to understand that Non-admin users cannot modify firewall rules (cannot even create them???). BTW I have tested this scenario on Windows XP, Vista 7 both x86 and x64 with same results.
If someone has encountered and / or solved similar issues please share your knowledge. If I am missing something, please make me understand what I am missing.
Thanks
I don't think what you are trying is possible in a non-admin account. What you may try is to gain admin privilege by using the windows runas feature by creating a new process, so that the user is prompted for the username and password of the Admin Account, which would give your program the required access to create firewall rules for your program.
You may also take a look into CreateProcessAsUser or LogOnUSer . Basically in order to succeed in what you are trying to do, you need a token that represents the Administrator account or an account which has admin privileges.