rights

Set user and group rights to document in XWiki

旧巷老猫 提交于 2020-08-07 07:57:41
问题 I'm writing a java component which build all the pages in a wiki. What would be the best way to assign the user rights or groups which may view the page or spaces from within the java service component? Really struggling to find details on this in the API. 回答1: You are finding no details in the API, because the Rights API is only about reading rights information, not setting rights If you want to set permissions on pages programatically, and you can assume that the default permission handler

change file persmissions filezilla command line windows

安稳与你 提交于 2020-06-02 11:16:06
问题 How do I change the file permissions in filezilla with the command line? I tried 'SITE CHMOD 755 templates' but that only changes the folder 'templates'. I want to chmod all files in the templates folder and the subfolders in there. I know you can do this by clicking rmb om the templates folder etc. but that is way to slow I was hoping the command line would be faster? If not, what is the best way to change a lot of file permissions on your server fast? I'm using filezilla in windows. 回答1:

how to prevent application to be uninstalled by a user (w/o admin rights)?

混江龙づ霸主 提交于 2020-01-06 04:56:04
问题 I need to forbid to uninstall an application (not a service!) by a user w/o some special rights. How to do this? installation will be done by domain administrator thanks for your time [EDIT] also I need to prevent removing the application from windows startup [EDIT1] to clarify: application is simple and is installed in its folder and added to windows startup (actually to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry). What I need exactly is to forbid to remove this folder and

defining userroles with inheriting rights

China☆狼群 提交于 2019-12-22 18:16:22
问题 I'm currently looking into the spring-security framework - great stuff so far, pretty impressed. However, I haven't found out where or how to define a inheritance of permissions. e.g. I want the ROLE_ADMIN to have at least the same rights as the ROLE_USER. I defined three intercep-urls for spring: <intercept-url pattern="/auth/login.do" access="permitAll"/> <intercept-url pattern="/voting/*" access="hasRole('ROLE_USER')"/> <intercept-url pattern="/admin/*" access="hasRole('ROLE_ADMIN')"/>

Why can I not set this ACL rule in C#?

主宰稳场 提交于 2019-12-19 10:14:31
问题 Running as an elevated admin on Vista SP1, my C# app tries to set the following rule with the following code. No error is produced, but neither is any change on the directory's ACL. What am I missing? public static void Main( string args[] ) { string dirPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Company"), "Product" ); Directory.Create(dirPath); _SetAcl(dirPath, "Users", FileSystemRights.FullControl); } private static void _SetAcl(string

Service failed to start error 1920

与世无争的帅哥 提交于 2019-12-18 07:22:27
问题 On some machine we have the following error at service install: "Service ... failed to start. Verify that you have sufficient privileges to start system services." Service is installed fine tho, just that it can't be started as Network Service from Services.msc. Service starts and runs good if started from console it's executable... Same thing happens with another service started as Local System. On other machines everything is fine. Service starts as network service with no problems. We

Service failed to start error 1920

不打扰是莪最后的温柔 提交于 2019-12-18 07:22:11
问题 On some machine we have the following error at service install: "Service ... failed to start. Verify that you have sufficient privileges to start system services." Service is installed fine tho, just that it can't be started as Network Service from Services.msc. Service starts and runs good if started from console it's executable... Same thing happens with another service started as Local System. On other machines everything is fine. Service starts as network service with no problems. We

.net & admin rights - how to embed manifest file for 2 different scenarios

微笑、不失礼 提交于 2019-12-12 01:59:15
问题 I have one .net application which would be installed under "program files" running in 2 different modes: "ADVANCED_MODE" with all plugins enabled which should pop-up the UAC to run as administrator "BASIC_MODE" with only few plugins loaded which should work as normal user What to do to solve this case? If I embed a manifest file ( requireAdmin set on), it will not work for BASIC_MODE. If I don't use any manifests, then I don't have the chance to popup the UAC in ADVANCED_MODE. If I use "

PostgreSQL, how can i restrict access to code in a function for a user?

余生长醉 提交于 2019-12-10 19:25:50
问题 I found out how to deny all access to tables for user in a schema. REVOKE ALL PRIVILEGES ON SCHEMA test FROM user; But what can i do to restrict access to all functions in a schema, so that user couldn't read the code? I was trying this: REVOKE ALL ON FUNCTION test.test_function(text) FROM user; Yes, it has restricted the ability to change a function, but not to actually see it. What have i missed? 回答1: REVOKE access to the system view pg_proc or at least the column prosrc that hase the

Yii: why my default index of controller is not working?

给你一囗甜甜゛ 提交于 2019-12-10 18:20:30
问题 I am a Yiibie, stuck in a problem. I have installed yii users and rights. It gives me error whenever I try to run localhost/webapp/table it gives an error which is "Error 404 The system is unable to find the requested action "list" , but when I try to run localhost/webapp/table/index it shows me the view of index action which is working fine. Here is my config/main.php <?php // uncomment the following to define a path alias // Yii::setPathOfAlias('local','path/to/local-folder'); // This is