On Wednesday, January 22, 2014 at 9:54 AM, Alfredo Palhares wrote:
Hello chefs once more,I am wrinting a cookbook[1] and i see the permissions are not being properly set for someweird reaseon (please refer to the #7-client-recipe branch). Here is a kitchen converge.$ kitchen converge client
* directory[/home/barman/.ssh] action create[2014-01-22T17:38:07+00:00] INFO: Processing directory[/home/barman/.ssh] action create (pgbarman::client line 15)[2014-01-22T17:38:07+00:00] INFO: directory[/home/barman/.ssh] mode changed to 640- change mode from '0600' to '0640'- restore selinux security context
Its all seems fine but:$ kitchen login clientkitchenLast login: Wed Jan 22 17:38:03 2014 from 10.0.2.2~]$ sudo -svagrant]# su - barman~]$ ls~]$ ls -alstotal 284 drwx------. 3 barman barman 4096 Jan 22 17:37 .4 drwxr-xr-x. 4 root root 4096 Jan 22 17:36 ..4 -rw-------. 1 barman barman 97 Jan 22 17:37 .bash_history4 -rw-r--r--. 1 barman barman 18 Feb 21 2013 .bash_logout4 -rw-r--r--. 1 barman barman 176 Feb 21 2013 .bash_profile4 -rw-r--r--. 1 barman barman 124 Feb 21 2013 .bashrc4 drw-r-----. 2 barman barman 4096 Jan 22 17:36 .ssh~]$ cd .ssh/-bash: cd: .ssh/: Permission deniedWhat gives to this ? If I had a bash block with chown -R barman:barman .ssh i can access the directory.Is it the directory block ? Am I doing something wrong ?--Regards,Alfredo Palhares
Archive powered by MHonArc 2.6.16.