I am just trying to clear the app data and getting below error
java.lang.SecurityException: Neither user 10028 nor current process has
android.permission.CLEAR_APP_USER_DATA.
I am using some hidden apis
How can i grant this permission
Thanks in Advance.
You will not get that permission in a normal device unless you are developing system app.
Refer to this article. You can add that to your manifest, adding this permission will not cause any compile error or warning. But it will simply not work in run time.
By the way, if you really need to clear the data of your application, why don't you one by one clear the files/preferences you are generating from your application for purpose of "data"?
You need to set a uses-permission in a AndroidManifest.xml file
The permission will look like this:
<uses-permission android:name="android.permission.CLEAR_APP_USER_DATA"/>
And will be placed within the manifest element of the xml file.
You can set it using manifest designer in eclipse by opening the AndroidManifest.xml file, then clicking on the Permissions tab (at the bottom). Then click Add and select "Uses Permission". You will find the permission you are looking for in the list.
You will not be able to clear the user data from the app without this permission.
See more information on permissions here and here
go to manifest-> permissions tab-> add permission-> select uses-permissions-> select specific permission-> save.
Related
I have a SharePoint site where I am the admin and I have full control permission. One of the users created a link on the navigation menu, but I cannot edit it or delete it. The user is no longer on the site. I checked the permission again, and it shows I have full control.
How do I modify or delete the link and its page?
I tried giving myself more permission, but that did not help. I thought full control covers everything.
On the edit mode, some links are editable, but the one I need to remove doesn't give me that option.
If it is a link to a list/library, it might not be permissions related. Check the List/Library Settings, "Name, Description and Navigation" option:
Currently i generated excel file from TFS 2013.
I want to disable editing this file for some specific users.
I tried to add these users in the group Reader only, but they can modify the excel file then publish it.
On the other side, i want to give them the ability to refresh the excel file and get the latest status.
By "publish" I assume you mean the Check In permission. Readers don't have an explicit Deny on Check In by default, so you may find that people who can still Check In are members of another group with permissions. The usual group being the Contributors group.
To force the matter you can go to the file in question in Source Control Explorer, right click it and select Advanced -> Security and then explicitly set the Reader group to Deny for the Check In right.
I assume that you mean "publishing work items". If you do then people in the readers group will not be able to publish unless they also have contributed rights. So while they can click "publish" they will not be able to make changes on TFS, and they will be able to refresh.
I'm trying to find what is the permission security for allowing visibility of the Alias function in the Presentation tab ribbon.
For the user in question i've browsed to the core database, and under Access viewer, i'm looking that all the items under Applications/Content Editor have read-enabled permissions, specifically the item /sitecore/content/Applications/Content Editor/Ribbons/Strips/Presentation/Page Urls as well as /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Page Urls are read-enabled
However, when login as this user there is no presentation tab.
I've tried resetting the cache and still nothing changes. I'm using sitecore 6.5.0
I think you are almost there, but you still need to give the user sufficient access to the /sitecore/system/Aliases item.
Create a new role(or use an existent one), for example sitecore\Sitecore Client Aliases. Use this role to add the following permissions.
Switch to the Core database and allow Read permission for the /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Page Urls item and its descendants
Switch to the Master database and unprotect the /sitecore/system/Aliases item by using the Unprotect Item checkbox in the Configuration tab.
Allow Read, Write, Create permissions for the /sitecore/system/Aliases item and Read, Write, Create, Delete permissions for its descendants.
Protect the /sitecore/system/Aliases item back.
Add user to the sitecore\Sitecore Client Aliases role.
Found here: http://wiki.evident.nl/Sitecore%20alias%20role.ashx
The easiest way to enable the presentation tab is to use a sitecore standard role.
I'm not totaly sure but i asume it was sitecore\Sitecore Client Designing.
And as far as i know you have to use those standard roles to enable access to certain chunks.
Try using the Access Viewer for the user which doesn't see the Alias Tab. You can manually switch to the core database and then click on the different tabs with the specified user / role to see what causes this behavior. Most of the times you will find out that some role / restriction was set to a higher level item dat denies read rights.
How can I fix the following error?
error: cs0016 could not write to output file...c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\sitename\6c57f9d2\bb09b49d\App_global.asax.5odzsyz5.dll' access is denied
After spending hours on this issue myself below is the solution that worked for me on Windows 7 running IIS 7.5:
The application pool identity associated with the site was not a member of the IIS_IUSRS group. To add the app pool identity to the group I used the following steps:
From the start menu select Run… enter lusrmgr.msc and click OK.
Select Groups.
Double click the IIS_IUSRS group.
Click the Add... button.
Click the Locations... button.
Select your computer name (it should be at the top of the list) and click OK.
In the text box below "Enter the object names to select" enter:
iis apppool\<app pool identity> e.g. iis apppool\dev
Click the Check Names button. If a Name Not Found dialog box appears then verify that the app pool identity entered matches the app pool identity associated with the site. If a dialog box did not appear then click OK.
Repeat steps 7 through 8 for each app pool identity you wish to add.
Click OK.
Now the app pool identity is a member of the IIS_IUSRS group which should already have access to the Temporary ASP.NET Files directory. After all that I was still receiving the error and I found (thanks to process monitor) it was because the app pool identity could not write to the windows temp directory. To resolve this I added the IIS_IUSRS group to the windows temp directory with read/write permissions.
From the start menu select Run… enter %windir% and click OK.
Right click on the Temp directory and select Properties.
Click on the Security tab.
Click the Edit... button.
Click the Add.. button.
Click the Locations... button.
Select your computer name (it should be at the top of the list) and click OK.
In the text box below "Enter the object names to select" enter: iis_iusrs
Click the Check Names button. If a Name Not Found dialog box appears then check for typos. If a dialog box did not appear then click OK.
Select the added IIS_IUSRS group and in the Permissions for Everyone box below select:
Allow Read and Allow Write
Click OK. A dialog box will be displayed stating that "You are about to change the
permission settings on system folders, which can result in unexpected access problems
and reduce security. Do you want to continue?"
Click Yes
Click OK
I've fixed this issue setting full control for 'NETWORK SERVICE' to the system temp:
C:\Windows\temp
The error message reported by the web server is a bit misleading.
Hope this helps.
I was struggling with this problem for a while.
Found some solutions on the web that involved setting permissions on the "Temporary ASP.NET Files" directory in the error message. But even opening it up to "Everyone" didn't work.
Then eventually the following steps fixed it:
Go to the IIS AppPool for this site
Right-click the app pool and go to Advanced Settings
Change Identity from "ApplicationPoolIdentity" to "NetworkService"
There may also be some other necessary steps, which I did while troubleshooting, but this is the key step. For some reason the App Pool Identity (such as IIS_APPPOOL\SiteName) isn't granted access when "Everyone" is. I'm sure someone else can shed some light on why this is the case... Hopefully this helps others resolve this frustrating issue.
I had the same problem.
Found an easy way to resolve: Set "Load user profile" to true in app pool's advanced settings.
I found the accepted answer on this post to be correct in process. I tried "NetworkService" and it did not work. However "LocalSystem" did!
For Windows 7 Set Full Control Permissions on folder C:\Windows\Temp for user IIS_IUSRS
Network Service user usually only applies on servers
Go
C:\Windows\Temp
Right Click on Temp Folder > go To Security Click on Edit
Add New User [IIS_IUSRS] AND GIVE IT FULL PERMISSION. Then Press Ok,
Just just need to set permissions for "Temp" folder.
Go to "C:\Windows\Temp"
Right click on it, and go to security.
Set permission for [IIS_IUSRS] user to Full control
Press OK
All done.
I Had tried like give the permissions and change in IIS regarding the identity but I was getting same error.
I just keep the following files underneath the path "C:\Windows\Microsoft.NET\Framework\v4.0.30319" and problem is gone.
give the full control permission to recent folder.
cvtres.exe (XML configuration File)
cvtres (application).
I tried all the options here without any luck.
What worked for me was to simply remove the application pool and recreate it.
No need for extra permissions on any folder.
I have all permissions about writing and reading but I'm starting to get that error.
I can suggest "restart machine"
At least, it works for me
I've installed a Sharepoint site for my team. Everything work fine. But suddenly, I've found that I can not edit the quicklaunch menu: every time I click on Add Item or edit an Item, I get a 403 error.
I've logged with administrator account. I've tried using different browsers such as chrome, firefox, but no hope. The same errors occur when I access Advanced permissions under User and Permission.
Clicking to edit permissions for any group in the list will also cause a 403 error. I think that I may have done some wrong setting with permissions, but I can not figure out what I have done, as I'm pretty new with Sharepoint.
Can you guys tell me how to troubleshoot this problem?
Regards,
You can configure diagnostic logging settings to show why SharePoint gave you a 403 error in the SharePoint Trace Log file.
In central Admin:
On the top navigation bar, click Operations.
On the Event Throttling section, in the Select a category menu, select General
In the Least critical event to report to the event log menu, select Warning
In the Least critical event to report to the trace log menu, select Verbose
Click OK
Go to the Path specified for the Trace Log and reproduce the error. Then open up the last modified sharepoint log file and search for "Denied" (searching up from the bottom of the file). You should see the cause of the 403 error in the log file.
Log in with the site collection administrator account. You most likely removed your own administrative rights from the site (I still don't know why SP will let you do this).
Once you are in, give your normal network account back its administrative permissions.
The site collection administrator account has godlike permissions within its site collection and can override all configured permissions on all securable objects in its domain.
USE THESE CAREFULLY
You probably have a incorrect setup in the service accounts making your server block some internal requests. Try to disabled the Loopback Check:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\
Create a DWORD named 'DisableLoopbackCheck' with a '1' value.
Also make sure your Application Pool (IIS Manager) is running under an actual never-expires user account not the System Account.
Please do not turn off the LoopbackCheck. Turning it off will fix the issue but it also opens you up to a reflection attack which even script kiddies have the ability to do. Instead please use the BackConnection Host file instead.
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
Add a Multistring value named BackConnectionHostName
In this type in the name of your host names. Example: StackOverflow.com
Type each of the names you use to call SharePoint one on each line.
What we are doing here is letting the server know to respond to itself if called by something other than its host name.
Check your ntfs permissions on c:\program files\common files\microsoft shared\web server extentions\12\template\layouts\user.aspx