Menu
  • HOME
  • TAGS

What is mask in HDFS folder permission

hadoop,permissions,hdfs,acl

ACLs are of the order <type>:<name (optional)>:<permission>. If the name field is not populated, it applies to every user/group. If the name is supplied, it will be supplemental to the entry without the name. Meaning, in your example above, user permissions by default are rw-. However, because user 'bruce' is...

AclNode::node() - Couldn't find Aro node identified by “Array ( [Aro0.model] => User [Aro0.foreign_key] => ) ”

php,cakephp,acl

Do you have group_id(of course with username and password) column in your array, that is used to login ? I mean this line $this->Auth->login($this->request->data)) $this->request->data should contain array like array('username' => 'my_username', 'password' => 'password', 'group_id' => '1') source: http://hashmode.com/aclnode-node-couldn-t-find-aro-node-identified-by-array-aro0-model-group-aro0-foreign_key-cakephp/30...

Automate Entrust permission with accessing the Route name parameters and check for user's permission

php,permissions,routes,laravel-5,acl

Well I found the answer and to some extent I have made automated permission testing. I have created a function in the Authenticate.php middleware public function autocheckroles($request) { $perms = ''; $delimiter = '_'.$request->segment(1); if($request->isMethod('GET')){ if(is_numeric($request->segment(2)) && is_null($request->segment(3))){ $perms = 'show'.$delimiter; } elseif($request->segment(3) == 'edit' && is_numeric($request->segment(2))){ $perms = 'edit'.$delimiter;...

AmazonS3 + KnpGaufretteBundle how to set public acl for a file?

symfony2,amazon-s3,acl,gaufrette

Ok guys it seems that KnpGaufretteBundle's doc looks like a jungle ☹ ... Here is my solution : #app/config/config.yml services: acme.aws_s3.client: class: Aws\S3\S3Client factory_class: Aws\S3\S3Client factory_method: 'factory' arguments: - key: %amazon_s3.key% secret: %amazon_s3.secret% # knp_gaufrette knp_gaufrette: adapters: profile_photos: aws_s3: service_id: 'acme.aws_s3.client' bucket_name: 'myBucket' options: directory: 'myDirectory' acl: 'public-read' At my...

Disable object identity check in symfony ACL

symfony2,acl

Here's a workaround for it, not sure if this is the best way but it works. The object and security identity retrieval strategy services needed to be overwritten with noop implementations. services.yml security.acl.object_identity_retrieval_strategy: class: Acme\UserBundle\Acl\ObjectIdentityRetrievalStrategy security.acl.security_identity_retrieval_strategy: class: Acme\UserBundle\Acl\SecurityIdentityRetrievalStrategy Acme\UserBundle\Acl\ObjectIdentityRetrievalStrategy.php <?php namespace Acme\UserBundle\Acl; use...

Add Module to SugarCRM ACL Role List Admin Page when Module doesn't exist?

php,acl,sugarcrm

Those sub-modules would still be considered modules/beans in Sugar. You just wouldn't have a visible tab for them. In the manifest.php you would define each of those in the beans array and set 'tab' => false for each of those that are a sub-module. The path would be set to...

Squid Proxy behind Loadbalancer delivers 403

proxy,load-balancing,acl,squid

The solution of my Problem is so simple that it hurts. The important fact to know that a F5 uses more than one IP is the key. I looked for all the IPs and added them as ACL into the squid and voila it worked. Greeting Fide...

PhalconPHP & ACL: guests were able to access restricted content

acl,phalcon

I fixed the issue by changing wildcard to specific action. I actually copied code from invo and overlooked the thing. //Grant access to public areas to both users and guests foreach ($roles as $role) { foreach ($publicResources as $resource => $actions) { $acl->allow($role->getName(), $resource, $actions); } } ...

Update a security identity (ACL) in Symfony2

php,security,symfony2,acl

Follow this Link: https://github.com/symfony/symfony/commit/8d39213f4cca19466f84a5656a199eee98602ab1 You have to write a Listner, that updates the acl on preUpdate event. This was described the the commit above. Greetzzz :)...

Get group member names from Get-Acl and Append to CSV

powershell,acl,active-directory-group

Your second code sample works, because it doesn't make the same mistakes as the first one. $myLoop = '' foreach ($testLoop in $myLoop) { $Group = Get-ADGroup -Filter * ... $myLoop += Write-Host ... $myLoop += ForEach ($Group in $share) { Get-ADGroupMember ... } $testLoop | Out-File -filePath $mypath -append...

Parse - Retrieve only items with matching ACL

javascript,parse.com,acl,cloud-code

When you're logged in as User 1 the query should only fetch objects, this user has access to. There shouldn't be any additional setup required by you (except setting up the ACL properly ;)) So simply login as User 1, build your query and run it....

mosquitto 1.4 - once running with ACL enabled, gets “Socket error on client , disconnecting”

acl,mosquitto

1429857949: Sending CONNACK to 127.0.0.1 (0, 5) CONNACK return code of 5 means the connection was not authorised. If it works with allow_anonymous=true, then it sounds like your client isn't sending a username / or isn't sending a correct username&password. It looks like you have a Paho Python client...

How to match url's against Symfony's security access control

php,symfony2,acl

Now there is no simple ways in Symfony get this information via one function. To get it you can access security.access_control parameters in your application using security.access_map service. But you can't request it from the container directly, because it's a private service, so have to inject it into another service....

How do I set ACL's in Parse?

swift,parse.com,xcode6,acl

I did this earlier for a UserPhoto class on Parse in Swift. This is code within a func that is called when the user chooses a new image. The ACL part is on line 4: var userPhoto = PFObject(className: "UserPhoto") //imageFile is NSData passed to func userPhoto.setObject(imageFile, forKey: "imageFile") userPhoto.ACL...

How to list folder permissions located on a different server

powershell,acl

It turns out with the way permissions/authentications are setup in my environment prevented my code from working. Here are the steps I took to verify if I could connect to the server: Test-Path \\server\folder This returned "False", which is why my code was breaking. The work around I used was...

VPC Network ACL Outbound Traffic - Not reachable for specific IP

amazon-web-services,acl,amazon-vpc,vpc

Not sure it's a good idea to restrict outbound traffic as your instance may need to access other IPs than yours. To get system updates for example, resolve DNS requests... The most important is the inbound traffic as you can't control the incoming requests and you restricted it so that's...

Setting variables in AppController

php,cakephp,acl

It seems to work if I put the code in beforeRender() rather than beforeFilter()

Powershell Script to loop through folders checking security permissions

security,powershell,csv,permissions,acl

Ok, let's do this. I've made it into a function, and removed the OutFile part of it. If you want to output it to a file, pipe it to Export-CSV. If you want it saved as a variable, assign it to a variable. Just simpler this way. Function Get-RecursiveACLs{ Param(...

Setting up a shared directory and virtualenv for development

permissions,virtualenv,acl

The problem is with the way you have set up the acl, specifically the -d flag. This will set the default permissions for new files/directories. In your case, you have set them identical to the access permissions, ---rws---, and when virtualenv makes subdirectories in website-env, they also have these permissions....

Get modification time of locked folder with boost::filesystem::last_write_time

c++,boost,acl,boost-filesystem

That folder is off limits even to users with an Admin account, it contains restore points. Not that you couldn't change the ACL with such an account but that is of course not the correct solution. Trying to open a handle on the directory is too heavy-handed, use FindFirstFile() instead....

How to create files with specific security permissions in Linux? (i.e. the equivalent of Win32 CreateFile+SECURITY_ATTRIBUTES)

c,linux,security,winapi,acl

Most recent file systems under Linux support ACL. However ACL support needs to be enabled via the according entry to /etc/fstab, when mounting the file-system. To get and set ACL from the command line use getfacl setfacl On how to access ACL programmatically see man 5 acl....

Setting ACL for new Parse user in swift

swift,parse.com,acl

You need to set the ACL after the signUp has completed. So in the delegate method, func signUpViewController(signUpController: PFSignUpViewController, didSignUpUser user: PFUser) // set the ACL for the newly created user newUser.ACL = PFACL(user: PFUser.currentUser()!) //Then you can save the user, ie saveEventaully If you are not using the PFSignUpViewController...

PHP verify that user has access to content

php,security,acl

Well, you do know the id of the content in your Controller and you do know the user trying to access it. Just add contentId to your ACL check routine? You just have to add more ACL data, current implementation with just controller and method isn't enough in these cases....

Spring Ssecurity ACL - Domain State Change

java,spring-security,acl

You are quite correct. The Spring Security permission evaluator and ACL infrastructure works on domain object level, not field level. You could create permissions like EDIT_FIELD1, EDIT_FIELD2, VIEW_FIELD1 and so on, but it feels a litte bit forced. Of course you can use other Spring Security infrastructure with @PreAuthorize annotations...

How can I add a new host to an existent Oracle ACL?

oracle11g,acl

I believe what you what you'd want to do is this: BEGIN DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL ( acl => 'users.xml', host => 'remote.host.net', lower_port => <whatever>, upper_port => <whatever>); COMMIT; END; / ...

How to view CakePHP AROs and ACOs and connections without using the shell?

php,cakephp,acl

There is no built in GUI for ACL. There are a few plugins that facilitate these functionalities. The best this to do would be to look in GitHub and try a few options. You might want to start with https://github.com/FMCorz/AclManager

Access Control-j2ee

java,jsp,java-ee,acl

Your approach may work. One drawback is if you change your mind and you will want to give access rights to another user or introduce new role, you will have to rewrite it completely. For example you will have to find all references to that jsp and fix the links....

Linux - list all subdirectories and get ACL

linux,acl,ls

Use find to do a recursive list: find /shared -type d -print > directory_list getfacl expects the filenames to be command line arguments, it doesn't read standard input. Use xargs to perform this translation: xargs -d '\n' getfacl < directory_list > acl_list The -d option specifies the delimiter, overriding...

Proper format for using a string in a concatenation in Zend

php,zend-framework,concatenation,acl

_Model_Auth is not a string. You can only concatenate strings. This should work: $auth_class = $modules . '_Model_Auth'; $authModel = new $auth_class(); ...

Cloud storage and secure download strategy on app engine. GCS acl or blobstore

google-app-engine,authentication,google-cloud-storage,acl,blobstorage

If a small number of users have access to all the files in the bucket, then solution #1 would be sufficient, as managing the ACL would not be too much of a pain. However, if you have many different users who each require different access to the different files in...

Asp.net APP - Handle File storage on another computer

asp.net,file-upload,network-programming,acl

I decided to use impersonation for directories that require user logon permissions. Here's a good reference material: http://support2.microsoft.com/?id=306158 This solution works very well....

CakePHP check permission by group name instead of ID

cakephp,acl

From the API, the check method accepts : string|array|Model $ref optional null Array with 'model' and 'foreign_key', model object, or string value you can try to find the group object by name and then pass it to Acl->check Edit : $this->loadModel('Group'); $this->Group->recursive = -1; $node = $this->Group->findByName('Admin'); CakeLog::write('debug',json_encode($this->Acl->check($node,'Users'))); ...

Sylius/rbac-bundle for existing Symfony2 application

symfony2,acl,sylius

You'll need to also configure Sylius TranslationBundle sylius_translation: default_mapping: translatable: field: translations currentLocale: currentLocale fallbackLocale: fallbackLocale translation: field: translatable locale: locale ...

getRoles() ignored in Symfony2

security,symfony2,acl,fosuserbundle,roles

It turns out I need to re-authenticate the user once I have added their Roles. $token = new UsernamePasswordToken( $user, null, 'main', $user->getRoles() ); $this->container->get('security.context')->setToken($token); ...

PowerShell to get Folder Owner 3 Folders Deep

powershell,permissions,acl,powershell-v3.0,folders

You should be able to add a '*' to your path for each level. For example, this should return items three levels deep under C:\Temp: dir c:\temp\*\*\* Here's a sample function you can use (it's written for PowerShell v3 or higher, but it can be modified to work for version...

Symfony 2 ACL and Role Hierarchy

php,symfony2,acl,hierarchy,roles

The problem is that you are adding adding ACL base on UserIdentity and want to check the gran base on RoleIdentity. If you want to do it Role base change the creating ACL as below // creating the ACL $aclProvider = $this->get('security.acl.provider'); $objectIdentity = ObjectIdentity::fromDomainObject($comment); $acl = $aclProvider->createAcl($objectIdentity); // retrieving...

parse.com inherited ACL + roles - afterSave or beforeSave, tricky scenario

parse.com,acl,cloud-code,before-save,after-save

Ok, I think I finally figured it out. Hopefully this will help someone in future. Here are final beforeSave and afterSave functions adding user to specified role and assigning the same ACL to Item object Parse.Cloud.afterSave("List", function(request, response) { var list = request.object; var user = Parse.User.current(); if (list.existed()) {...

Interpret Symfony's ACL's schema

mysql,symfony2,doctrine,acl

There is only one column that contains the actual permissions, and that is mask. This column contains a bitmask, which is called the "permission mask", which is stored as an integer, which represents the cumulative permissions in the ACE. Other columns can influence if permission is granted: ace_order is used...

Web user is not authorized to access a database despite having Editor access in the ACL

xpages,lotus-notes,acl,lotus-domino

Comment of 12/02/2015 seems to be the correct Answer: Check if the self-registrated user has TWO consecutives spaces in his name, (could be because trailling space too) In group domino do a FullTrim. So we have John<space><space>Smith that is not in group XXX because in the members it's: John<space>Smith. ...

How to read protected registry key using vb.net

vb.net,windows,vbscript,registry,acl

You need to open the subkey before you can read the value: Const Key As String = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\" Public Overloads ReadOnly Property ProductName As String Get Return My.Computer.Registry.LocalMachine.OpenSubKey(Key).GetValue("ProductName").ToString End Get End Property EDIT: As noted above by Hans Passant, the build platform needs to be set to the "native"...

How to handle multiple clients and roles?

oauth-2.0,acl

What you describe is the equivalent of the Resource Owner Password Credentials grant in OAuth 2.0, see: https://tools.ietf.org/html/rfc6749#section-1.3.3. You should be able to do this with a stock OAuth 2.0 Authorization Server that supports this grant. So it is not unusual or proprietary but requires a great deal of trust...

symfony2 voters or acl

symfony2,acl

The docs only explain how to check access on objects rather than properties. I'll explain the decisions I make when choosing between voters or ACL. Next I'll explain how you can use (Hierachy) voters to achieve your goal. When users simply have or don't have access to a object based...

App Name Showing Twice - Routing Issue or Login Function Issue?

php,cakephp,acl,cakephp-2.3

Ok so here is what I did to fix the problem. I pointed to the controller where I wanted the users to be redirected. Thanks user221931! $this->redirect($this->Auth->redirectUrl('auth_acl')); ...

How to restrict access of action/method (of Controller) to specific user in Symfony?

php,symfony2,acl,fosuserbundle

For simple needs like this you can create a security voter that fit exactly what you need (ACL's are usually used for complex needs also due to the not easy implementation). Then you can use the voter in your controller like described in the docs: // get a Post instance...

Joomla ACL allowing public access to make changes to front end module

joomla,acl

I have contacted the developer of Zap Calendar but he was not able to fix it. My host moved the site from a subfolder to the root of "public_html" and that fixed the problem. For some apparent reason the site being installed on a subfolder prevented the Joomla ACL from...

Get-ChildItem -force reports “Access Denied” on My Documents folder and other junction points

powershell,acl,access-denied

I was able to reproduce this on a Windows 7 machine with the following command logged in as an admin user named "admin", running powershell with elevated privileges, and UAC disabled: get-childitem "c:\users\Admin\my documents" and cd "c:\users\admin\my documents" get-childitem Based on the article here, it looks like My Documents, My...

ACL allowing admin not being searched

acl,loopbackjs,strongloop

Turns out when setting up my test data I wasn't setting the principal id properly. I was using var accounts = [{ username: 'janed', email: '[email protected]', fullname: 'Jane Doe', password: 'secret' }, { username: 'johnd', email: '[email protected]', fullname: 'John Doe', password: 'secret' }]; accounts.forEach(function (account) { Account.create(account, function(err, result) {...

List permissions of environment path with powershell

powershell,permissions,acl

Use the -split operator to split the string like so, $arr = $env:path -split ";" $arr %SystemRoot%\system32\WindowsPowerShell\v1.0\ C:\windows\system32 C:\windows ... The $arr variable contents can be piped to, say, foreach for further processing like so, $arr | % { $_ } ...

Yii2: specific form field editable based on Role

php,acl,yii2

Yes it can be done easily as far ur requirement is concerned without resorting to any utilities. Try this code: $form->field($model,'field')->textInput(['disabled' => !\Yii::$app->user->can('admin')]); you need to replace ur field name and admin with your user role. In the above example only admin can edit this field, for other users it...

ACL permission in amazon s3

amazon-web-services,amazon-s3,meteor,acl,bucket

After spending several hours in this issue i finally found the answer. You have to change bucket policy in Amazon. Under permissions/add bucket policy add this code - { "Version":"2008-10-17", "Statement":[{ "Sid":"AllowPublicRead", "Effect":"Allow", "Principal": { "AWS": "*" }, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::bucket/*" ] } ] } Make sure you replace bucket in...

Zend ACL - convert permission to public

php,zend-framework,acl

change AccessCheck.php: <?php class Plugin_AccessCheck extends Zend_Controller_Plugin_Abstract{ const UNAUTHORIZED_ACCESS = 'UNAUTHORIZED_ACCESS'; public function preDispatch(Zend_Controller_Request_Abstract $request){ $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()){ $role = $auth->getIdentity(); }else{ $role = 'guest'; } $acl = new Model_LibraryAcl(); $resource = $request->getControllerName(); $action = $request->getActionName(); if ($acl->isAllowed($role,$resource,$action) ){...

Parse data security and relationships

backbone.js,parse.com,relationship,acl,single-page-application

Consider that user-to-user conversations in a public system really ought to be between users' personae. personaA <-> personaB | | userA userB I would create a Persona table that is a user's public face. It would contain nickname (distinct from but maybe equal to username), photo and so on, as...

CakePHP: Simple Acl Controlled Application - Not allowing me to add new user the groups are missing

php,cakephp,acl

In you add.ctp, group_id field is empty... You need to change your add action as- public function add() { if ($this->request->is('post')) { $this->User->create(); if ($this->User->save($this->request->data)) { $this->Session->setFlash(__('The user has been saved.')); return $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash(__('The user could not be saved. Please, try again.')); } } $groups...

How to register async middleware module within express.js app?

javascript,node.js,mongodb,express,acl

That module already provides an Express middleware, so it's as simple as: // ... var myModule = require('./myModule'); myModule.init(function(err, acl) { if (err) throw err; // insert first `app.use()` here app.use(acl.middleware()); // insert other middleware/route handlers here }); Although I should note a couple of things with your existing code:...

Parse Users with Roles

ios,parse.com,acl,user-roles

Create ACL group called: Managers. All new managers should be added there. And for each new data into your all you'll set ACL permission like this: "Client Apple" => "ACL":{"managers":{"read":true},{"write":true},"trainer ObJectId:",{"read":true}} Managers can read an write this client and only the trainer who has created this client could read it....

CakePHP using ACL with MongoDB, AclNode::node() - Couldn't find Aro node identified by

mongodb,cakephp,console,acl

That's not going to work CakePHP's ACL logic is built upon the tree behavior, A behavior for storing hierarchical data in a relational database. MongoDB is a schemaless database, it doesn't have the restrictions which necessitate using the tree behavior for storing hierarchical data; putting them both together is a...

Google Cloud Storage : create bucket with ACL

java,acl,google-cloud-storage

I think what you want to do is set the default object ACL for the bucket. This will apply an ACL to all new objects uploaded to the bucket. To do that, you can use the setPredefinedDefaultObjectAcl method of the Storage.Buckets.Insert operation returned from your storage.buckets().insert call. Take a look...

Export/import ACL using csv

powershell,acl

I've fixed it. the problem was the line $acl = Get-Acl C:\Users\user\Desktop $permission = $i.IdentityReference,$i.FileSystemRights,$i.AccessControlType I've changed with $acl = Get-Acl $path $permission = $IdentityReference, $FileSystemRights, $InheritanceFlags, $PropagationFlags, $AccessControlType bye...

Can I create a Windows mutex globally for those processes which know the password of the mutex?

c++,windows,mutex,acl,sid

What you're trying to do isn't natural to the security model that Windows uses. Permissions are always granted based on who is running the executable, not on the executable itself. However, depending on your scenario, there may be suitable options. If all of the processes involved will be in the...

MySql query to manage user rights

mysql,acl

Assuming an user has a maximum of one access record per root, start and end id in access referring to version.id: SELECT v.* FROM `access` a INNER JOIN version v ON (v.root = a.root) WHERE a.user_id = 2 AND v.id >= IFNULL(a.vstart_id, 0) AND (v.id <= a.vend_id OR a.vend_id IS...

Swift, how to set Parse default ACL

swift,parse.com,acl

As the error message states, you should use PFACL.setDefaultACL(PFACL(), withAccessForCurrentUser: true) so the constructor is just PFACL()....

Authorization and ACL in cakephp 3

authorization,acl,cakephp-3.0

ACL is not built into CakePHP 3 as it was in CakePHP 2. It is now available as a separate plugin. Quote from http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html ACL related classes were moved to a separate plugin. Password hashers, Authentication and Authorization providers where moved to the \Cake\Auth namespace. You are required to move...

Upload to Google Cloud Storage via signed URL - object not publicly readable

google-cloud-storage,acl,pre-signed-url

I think if you gone through the given docs. It clearly mention that, if you need the user to download the object without using the google account then this method provides an assigned URL for specific time to the User to download the object. I am assuming that might be...

Row level access for google appengine datastore queries

google-app-engine,gae-datastore,acl,endpoints-proto-datastore

Datastore doesn't support OR filters natively. Instead what NDB is doing behind the scenes is running two queries: query.filter(Location.acl.readers == current_user) query.filter(Location.acl.public == True) It then merges the results of these two queries into a single result set. In order to properly merge results (in particular to eliminate duplicates when...

Symfony2 Firewall rules are not working as expected

php,security,symfony2,acl

These rules look fine, the problem is probably in another part of your firewall configuration. Please post it. The most likely is that you have another rule that matches these paths earlier in your rule list. For example, when you have - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY } on top...

How to allow some permission and not other using a bitwise system?

php,bit-manipulation,acl,bitwise-operators,user-permissions

Once you have your $perms array defined, you can actually create your own maps from it: // can comment and post but not edit or delete: $poster = $perms['can_post'] | $perms['can_comment']; // can edit and delete, but not comment or post: $janitor = $perms['can_delete'] | $perms['can_edit']; You can combine any...

Phalcon ACL error with collections

collections,acl,phalcon,volt

This is the fireball tutorial codes from Jesse Boyer right? Try to reset your routing or set your url as he did his custom routing for his virtualbox. Try to put this in your index.php in your public folder for the dependencies: $di->set('url', function () use ($di) { $url =...

What is the parent of an ObjectIdentity?

symfony2,acl

If the parent_object_entity_id is set, this will point to a parent object identity id found in this same table. When no parent object identity is used, this column will be set to NULL. It's to "chain" entity id's together and it allows you to create more efficient ACLs (instead of...

User roles for individual objects - Parse

parse.com,acl,user-roles

I'd suggest creating a cloud code function to create the chat and within it create Chat-specific roles to which you can add users. By using a well-known format (-), you can pretty easily find and manage the role membership. In the example below, I create the Chat and admin role...