w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
FileNet Api access rights for asp.net
When you're running the application through a console, the user you are logged in as is used i.e. this is you and you probably have admin rights on the machine. When you run it through IIS, this will depend on which version of IIS you are using. Look at this question for more information. You'll either need to change which user the web site is running under or grant further permissions to the user (or group) that is currently configured.

Categories : C#

Yii Framework Rights access menu
Make items for each menu option. Make permissions for this menu items, with roles which you want to show them. In your main layout( or where you output menu ): $role = Rights::getAssignedRoles(Yii::app() -> user -> Id); foreach ($role as $role) $role->name; if ($role->name == 'Manager' or Yii::app()->user->isSuperuser) { $this->widget('ext.cssmenu.CssMenu', array('items' => array(array('url' => array('/user/general/index'), 'label' => "General", 'visible' => Yii::app()->user->checkAccess('general')), array('url' => array('/data'), 'label' => "Data", 'visible' => Yii::app()->user->checkAccess('data')), array('url' => Yii::app()->getModule('user')->clientsUrl, 'label' =>

Categories : PHP

User page access rights in asp.net?
Either you can choose to use the built in Membership features in asp.net or you can choose to implement your own custom Membership- and Role Provider. The built in asp.net Membership Providers is a good option if your don't have to many users to manage. However if you already have these users and their roles already managed somewhere else Active Directory, Sql Database etc then I would implement my own Membership- and Role Providers. You can read more about it in this example: http://msdn.microsoft.com/en-us/library/6tc47t75(v=vs.100).aspx

Categories : C#

Access Rights for Page In openerp 7
Try this: 'field_name': fields.char('Field Name', size=64,write= ['base.group_partner_manager'],read=['base.group_user']), or this: Create a functional field in your model which will be true if the user belong to the specified group else false, then add attrs for your field to make it editable if the user belong to the specified group else readonly.

Categories : Python

Linked servers and access rights
To deny access to specific tables in MySQL, use REVOKE: http://dev.mysql.com/doc/refman/5.0/en/revoke.html In TSQL, the command is DENY: http://technet.microsoft.com/en-us/library/ms173724.aspx In your case, though, if the MySQL users should not see certain tables, then doesn't that just mean that those tables should not have the triggers to replicate the data on MySQL? If replication is still necessary, and you are dealing with a large number of tables, you might also consider pushing the restricted tables to a separate target database, which could simplify access restrictions.

Categories : Mysql

C++ virtual method: access rights, friends & Co
class Foo { public: friend class Baz; protected: virtual void doIt() = 0; }; class Baz : public Foo { public: Baz(Foo* foo) : M_foo(foo) { } protected: void doIt() { M_foo->doIt(); } private: Foo* M_foo; };

Categories : C++

MEF how to handle access rights to PipelineSegments.store
You can use the AddInStore.Update method that takes the location of the pipeline root as a parameter instead of the one taking the PipelineStoreLocation. Similarly there is a AddInStore.FindAddIns overload taking the pipeline root as a parameter. Instead of deploying your addins in Program Files you can use Program Data instead where a standard user has full access. Have a look at the answer (from Microsoft Support) to a similar question.

Categories : Dotnet

Git clone error 'access rights' only on particular computer
When you're in Windows, see if you're logged in first with the following console commands (use Cygwin, not the Windows terminal) : git config --global user.name git config --global user.email You need to be logged into a Git account with access rights to that repository. Use the same commands you'd use for UNIX but in Cygwin. If you're using Github, there's a nice little GUI for it, as well as a UNIX-like terminal. The following download should install both. http://windows.github.com/ Once you can "log in", click the grey checkbox next to this answer so that other people know it works.

Categories : GIT

Export the VisualSVN Server User Access Rights Using WMI in C#
VisualSVN Server 3.4 comes with PowerShell module which provides a number of cmdlets for server and repository administration (works locally or remotely). Getting a list of access rules with VisualSVN Server 3.4 is as simple as running Get-SvnAccessRule cmdlet in PowerShell. For the complete list of PowerShell cmdlets and usage examples, read the article VisualSVN Server PowerShell Cmdlet Reference.

Categories : C#

Cross-schema view query possible with different access rights?
So long as the owner of each of the schemas is the same, this approach will work fine because the ownership chain is unbroken. See the following link for more details: Ownership Chains For example this will work: UsersSchema Owner dbo TableSchema Owner dbo User1 grant select permission on UsersSchema, deny select permission on TableSchema view1 lives in the UsersSchema (selects from Table1) table1 lives in the TableSchema user1 does a select * from UsersSchema.view1 - SQL server checks that user1 has permissions to select from the view, which he does, all good SQL server then checks who owns the view, dbo SQL server then checks who owns the table the view is wanting data from, also dbo (as dbo owns both schemas) As the ownership chain is unbroken, SQL server now won't bother check

Categories : Sql Server

Field level access rights and Security in openerp 7
The .xml and .csv files provide security settings on a broader scale: create, read, update, and delete. If you want per field settings instead you'll have to play around with the xml view file. Check out the domain settings. Something like: <field name="DOB" attrs="{'readonly':[('groups_id.category_id.name','=','Human Resource')]}"/> The above is not restrictive enough, but hopefully will give you the idea. As convenient as this might be, I don't think it's a good idea. Depending on the laws of where your company is located, the company can be responsible for the accuracy of that data. Having the employee present evidence of any changes to somebody in HR can be a good thing.

Categories : Python

SocialAuth - Facebook Authentication - Specify which access rights are requested
You can add custom permission like this. graph.facebook.com.consumer_key = 152190004803645 graph.facebook.com.consumer_secret = 64c94bd02180b0ade85889b44b2ba7c4 graph.facebook.com.custom_permission = email,user_birthday,user_location No need to set other properties. But if you want to set other properties, then only you can set request_token_url (for OAuth1.0), authentication_url and access_token_url. This feature is available from socialauth-4.2 graph.facebook.com.authentication_url graph.facebook.com.access_token_url

Categories : Java

How to check access rights on remote hosts and local and UNC paths?
I found myself a workaround, since nobody replied to this question: public static bool canAccess(DirectoryInfo dirInfo) { Uri uri = new Uri(dirInfo.FullName); // is this a remote path? if (uri.IsUnc) { if (hostOnline(uri.Host)) { // check if remote path exists if (!dirInfo.Exists) { string domain = dirInfo.FullName; ErrorClass res = PinvokeWindowsNetworking.connectToRemote(domain, null, null, true); if (res == null) { if (!dirInfo.Exists) throw new Exception( string.Format("No access permissions or directory not existing.")); return true; }

Categories : C#

WMI query to export the access rights of visualsvn_service to excel format
According to this thread on svnforum.org something like this should work: Set svn = GetObject("winmgmts://./root/VisualSVN") Set wmi = GetObject("winmgmts://./root/cimv2") Set accessLevel = CreateObject("Scripting.Dictionary") accessLevel.Add 0, "No Access" accessLevel.Add 1, "Read Only" accessLevel.Add 2, "Read/Write" For Each sd In svn.ExecQuery("SELECT * FROM VisualSVN_SecurityDescriptor") For Each perm in sd.Permissions Set account = wmi.Get("Win32_SID.SID='" & perm.Account.SID & "'") WScript.Echo sd.AssociatedObject & ": " _ & account.AccountName & "" & account.ReferencedDomainName & " " _ & accessLevel(perm.AccessLevel) Next Next

Categories : Vbscript

What minimum permissions/access rights does a SAP user need to be able to make RFC calls using JCo?
Behind the scenes, SAP makes several calls within one RFC call. In addition, SAP makes security calls to ensure you have the rights to invoke what you're invoking. It does this for any function module call, not just RFC ones.I don't know what DDIF_FIELDINFO_GET does in particular - it may be one of the calls SAP makes to satisfy your overall call RFC_SYSTEM_INFO.In addition, to be eligible to be called as part of an RFC, the SAP function module has to be "remote enabled" (that may be in SE37 but don't quote me on that).

Categories : Java

how to configure multiple users to access multiple ressources with different rights?
Spring Security has a special ACL module to handle such situations. The basic idea is that each domain object / ressource may have separate access control list. You need to fill this list with appropriate permissions and add corresponding checks in your code. You can have parent -> child relations between the objects to reduce number of permissions. Check it out.

Categories : Authentication

C# File.Exist(File_Path) Returns false even if File_Path is true, file exists and i have rights to access that file
When I exucute File.Exists in x86 configuration I have the same result, but when I am in 64 the two files returns true, and I found on the net that File.Exists in your case search in SysWOW64, check this question for more: check if file exist on 64 bits system using File.Exists

Categories : C#

Same permissions, different rights?
The Apache server is installed within a Linux distribution with SELinux enabled. SELinux by default denies Apache to read files in /home folders. By using ls -Z one can check SELinux labels of files. In my case, while usual (DAC) permissions were the same and there were no ACLs set, SELinux context was different: Next one is readable from Apache daemon and scripts: unconfined_u:object_r:httpd_sys_content_t: Next one is the file that SELinux denies access to Apache: unconfined_u:object_r:user_home_t

Categories : Python

ACL Error when assigning AD Rights
According to the error "Some or all identity references could not be translated.", it looks like the user with such still not exist in the Directory (or in the Directory the computer is connected to) when you try to use it. I would try to first look for the user in the directory before trying to use it. Check the value of $Account before using it.

Categories : Powershell

Folders tree with rights
On OS X you can install tree, using homebrew: brew install tree or, using macports: sudo port install tree and then, to view directories with permissions: $ tree -p -d Sample output: . ├── [drwxr-xr-x] folder1 │   └── [drwxr-xr-x] folder2 │   └── [drwxr-xr-x] folder3 │   └── [drwxr-xr-x] folder4 └── [drwxr-xr-x] folder5 ├── [drwxr-xr-x] folder6 └── [drwxr-xr-x] folder7

Categories : Osx

Administrator rights for Windows application
If you want your application to always run as administrator, you can specify this in your application's manifest file. Specifically, you will need to add something like this: <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> More on application manifest files can be found in MSDN.

Categories : C++

Start on logon with admin rights
Schtasks /Create /TN admin /RU SYSTEM /SC ONLOGON /TR C:adminadmin.bat is approaching the best that can be done for the scheduled task itself. It is possible that running the task as a user administrator instead of SYSTEM will display the UI, like so: Schtasks /Create /TN admin /RU "<administrator username>" /SC ONLOGON /TR C:adminadmin.bat. There is a lot of flexibility to be had in any batch file that is launched by the task. If "C:adminadmin.bat" is set there=0 for /F %%G in ('find "%username%" C:accessusers.txt') do if ("%%G") EQU ("%username%") set there=1 if ("%there%") EQU ("1") start "real" "cmd" "/C "C:admin eal.bat"" and "C:admin eal.bat" contains whatever you really want to execute (hence the name), this script should solve the problem of letting the users choos

Categories : Misc

checking database rights on certain user
Here is a function for checking that all required views exists: bool IsAllviewsExists() { string DatabaseName= "Your_DB_NAME"; string[] viewsInDB = GetAllViewsNamesInDB(); for (int i = 0; i < viewsInDB.Length; ++i) { using (SqlCommand cmd = CreateSqlCommand(String.Format("SELECT id FROM sysobjects WHERE ID = OBJECT_ID('{0}.dbo.{1}') AND (type = 'V')", DatabaseName,viewsInDB [i]))) { using (DataTable objects = ExecuteDataTableQuery(cmd)) { if (objects.Rows.Count == 0) { return false; } } } } return true; } The functions that are called from IsAllviewsExi

Categories : C#

downgrade rights of a started process
This seems to be have discussed before, check this out: How do you de-elevate privileges for a child process Looks like an UAC elevation is strictly one-way, so the solutions are a bit gnarly, i.e. code injection into explorer and stuff like that. http://www.codeproject.com/Articles/18946/High-elevation-can-be-bad-for-your-application-How

Categories : C#

QT application rights for sudo command
Just searching around for "elevate privileges" in linux, this is what I found. Best way elevate the privileges programmatically under different versions of Linux? With an answer that pointed me here: http://en.wikipedia.org/wiki/PolicyKit http://www.freedesktop.org/wiki/Software/polkit/ Hope that helps.

Categories : C++

Run with elevated rights fails on WIN7
Most likely explanation is that this is a 32 bit vs 64 bit issue. The DLL is 64 bit, and you are running the 32 bit regsvr32. Or vice versa. Or the file system redirector is confounding you. You put the DLL in system32, but the redirector turns that into SysWow64. The obvious way to debug it is to remove the silent switch and let regsvr32 tell you what went wrong. As an aside, as you have discovered, you cannot use the return value of ShellExecuteEx to determine whether or not the server registration succeeded. The return value of ShellExecuteEx merely tells you whether or not the process started.

Categories : Delphi

how to display and set user rights in firebird database
The gsec utility allows one to manage users which are allowed to connect to specific Firebird server instance. Ie it allows to manage the user list Firebird server would recognize (see gsec manual). But it doesn't allow you to manage what each user is allowed to do in some particular database. For managing user rights in particular database you should use roles and GRANT and REVOKE statements. I suggest you use some GUI tool to manage user rights, ie Flamerobin.

Categories : SQL

jenkins doesn't have rights to copy files - or does it?
OK, I got it to work, I restarted the jenkins server and it worked. I assume it did not work before, because the jenkins server was already running when I changed its permissions. Makes sense to me now, come to think of it :) Anyway, thanks for anybody reading and thinking about this!

Categories : Jenkins

Execute an application with admin rights on system without UAC
I had a very similar problem, and I don't think the comments so far addressed your actual issue. I believe they are mistaking the intent of your question. While my answer will not show the actual UAC dialog as you first asked, it will show a workaround. UAC being off does NOT preclude an application from being run as Administrator (assuming you have an administrator password, as it seems you do), just makes it harder. As you rightfully pointed out, with UAC disabled and requireAdministrator set in the manifest, right-clicking and selecting Run as administrator does not actually elevate the process, as Microsoft indicates: "Application might launch but will fail later" Two Steps: 1) Hold Shift while Right-clicking on the application and select Run as a different user. Then simply use yo

Categories : C#

View link if depended on user rights
I think the good idea is set some variable or constans after logged (if user has privileges) and uses if statement for check. if($allow === true) { echo $html->link('Edit',... } or use AuthComponent::user() in Views. This idea it's not good if we can many kind of admins (admin, moderator, reviewier, etc.) Maybe someone will have a better solution

Categories : Cakephp

How to get the dimensions of the rights notices on Google Maps v3?
I think maps will ensure right notices are not overlapped when you place custom control using map.controls[google.maps.ControlPosition.BOTTOM].push(control) method. But I didn't check it.

Categories : Javascript

Check if a CRM user has the rights to qualify a lead via JS
You could add an enabled or disable rule based on a JavaScript call which checks the users security roles an example is available here: http://dynamicscrm2011.wordpress.com/2011/05/19/ribbon-customization-part-11enabledisable-ribbon-button-based-on-security-role/

Categories : Javascript

Web interfaces for distribution rights to the Trac, SVN, proftpd
trac.ini can be edit via webinterface with TracIniAdminPanelPlugin. I don't know webinterfaces for the other ones. I think it's because there are so many ways to setup the authorization configurations.

Categories : Svn

How install Tortoise GIT instalation without admin rights?
Not yet: bug 726 is still opened. This installation with reduced features has been done for mercurial (portable TortoiseHg), but not for TortoiseGit yet. The only workaround, mentioned in this comment is to install it once (with elevated privileges), zip the installation directory, and use that archive on other machine. Obviously the all menu integration in the Windows Explorer wouldn't be present. That requires a Microsoft Visual C++ Redistributable version though (also mentioned here): If you run a application and got the error message The program can’t start because MSVCR110.dll is missing from your computer. then the Microsoft Visual C++ Redistributable is missing on the current computer. This error appears when you wish to run a software which require the Microsoft

Categories : GIT

Is there a way to give debugging rights for a particular database in SQLServer?
You can use PRINT function after critical lines to write out result of specific set and that's one way of debugging, though little deprecated. Other way is to try to give to login a specific permissions needed for DEBUG stored procedures, like VIEW SERVER STATE, VIEW DATABASE STATE, maybe even ALTER TRACE.

Categories : Asp Net

Programmatically check if user has enough rights for software installation
I know this doesn't match with your "but not Win API?", but really, using P/Invoke and the Win32 API is the way to go. As process elevation is related to Windows only (so it doesn't make sense if you want to use your code with Mono for instance), relying on the Win32 API is OK. GetTokenInformation is the good function to use, just make sure you use IntPtr for platform-specific sizes (or even better: SafeHandle for process handle) so it'll work fine on both x86/x64 machines.

Categories : C#

How to set the rights of a python-generated file, executed by logrotate
import os import pwd admdetails = pwd.getpwnam('adm') rootdetails = pwd.getpwnam('root') for fname in ['name1', ,,,]: os.chown(fname, rootdetails.pw_uid, admdetails.pr_gid) Or something like it should be adaptable to the job. N.B. You will probably need to run as root or sudo as changing ownership away from root without being root is discouraged.

Categories : Python

How to give admin rights to another account for specific application
The proper way to do this is to include a manifest with your installer that requests elevation. Specifically, set the requestedExecutionLevel to requireAdministrator (rather than the default, asInvoker): <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> This way, whenever a user running without elevated privileges launches the installer, Windows knows that the installer requires administrative privileges and automatically asks the user for valid credentials. If the user can provide them, the installer is launched with administrative privileges, leaving other applications unaffected. If the user cannot, the installer will fail to launch (which is fine, since it will fail anyway). You can find more information on using manifests with UAC here from Microsof

Categories : C++

The folders / files generated by our scripts don't have the proper rights
What i see you are creating your websites in /web which is not recommendable, you should always create website in /var/www/html which is the default DocumentRoot of apache in redhat/centos linux or you can use an ISP control panel package such as virtualmin with webmin to do hosting. Basically try setting the website in /var/www/html you won't need to change the permission or if you change the DocumentRoot try giving the ownership. Thanks & Regards, Alok

Categories : PHP

Giving Ownership/Rights properly on Ubuntu/Linux
Just a note when giving permission for web server. Permissions are simple. You just have to remember there is read write and execute permission in *nix. You won't need the execute permission in any of the script files but all folders must have execute permission. That leaves you with the read and write permissions. You will need read permission for all the files and folders. You will only need write permission only to the folders and files which need to be changed by the web server. Basically you will need read write and execute permissions for temp folder, and if you are using file upload then the folder where you store the files. You may need to have write permission only to files which needs to be changed by the web server (for simple sites these may not be there).

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.