SELECT permission denied with ownership chaining on

 
I have a database ('Datamart') that contains views on the tables another database ('Rawdb') on the same server.  All tables and views are in 'dbo' in each database.  I turned cross-database ownership chaining on.  I created the roles RawdbReadRole
to set up the select permissions in the tables and DatamartReadRole for the views.  I my users logins on each database, and made them members of the DatamartReadRole. 
The permissions are working on my PROD server, but have stopped working in TEST: I get "SELECT permission was denied on the object 'tbl1', database 'Rawdb', schema 'dbo' when I test the views using EXECUTE AS LOGIN = N'domain\loginname' (for a
user that is still okay in PROD).  I have spent days comparing the security settings by eye and cannot see any differences.  I even dropped the TEST databases and rebuilt the security principals and permissions.  I cannot see a link (in PROD)
between RawdbReadaRole and DatamartReadRole and I don't remember if there is supposed to be a dependence there.
I don't know what else I can do now besides changing careers.  Are there some system views/queries that would help to identify ownership chain breaks or compare the security settings between the two servers?
- Desperate Al

Hi,
I got the same error message if I disable the cross-database ownership chaining.
“The SELECT permission was denied on the object 'tablename', database 'dbname', schema 'dbo'.”
Make sure that cross-database ownership chaining was enabled on database ('Datamart') and
database ('Datamart') in your test environment.
The following sample turns on cross-database ownership chaining for specific databases:
ALTER DATABASE Database1 SET DB_CHAINING ON;
ALTER DATABASE Database2 SET DB_CHAINING ON;
Hope it helps.
Tracy Cai
TechNet Community Support
Thanks, Tracy,
I knew about that one, but I re-ran that part of the script just to be safe.  (It wasn't the problem in this case.)

Similar Messages

  • Select permission denied in RPD

    I am mapping data in my rpd file and cannot view data or update row counts for almost all of my tables in the database.
    I am running obiee 11g on my local machine connected to an sql server database.
    The error I receive is "Select permission denied on object...". I have talked with the DBA and I should have sufficient privileges for my project.
    Any help would be greatly appreciated.
    Thanks,
    Mike

    Yes Venkat is right,You don't have privileges for that table,You can always find out your own effective permission on any object by using  fn_my_permissions('table_name', 'OBJECT')
    Mark if helps.
    Thanks,

  • Select permission denied

    Hi,
    We have the following setup:
    Instance 1 (Primary server in AG group)
    DB_1: table_1
    DB_2: view: select * from DB_1.dbo.table_1
    Instance 2 (synchronous replica)
    Instance 3 (Async replica)
    Both the DBs are part of the AG group and are present on Server 2 & 3
    What is happening?
    Sometimes a login is getting a 'select permission is denied on table_1' when trying to run a select query on the view in DB_2 on secondaries instances
    Any ideas?
    Thanks

    Hi fss09,
    Please take a look at the following security risks if we enable database ownership chaining:
    Database owners and members of the db_ddladmin or the
    db_owners database roles can create objects that are owned by other users. These objects can potentially target objects in other databases. This means that if you enable cross-database ownership chaining, you must fully trust these
    users with data in all databases.
    Users with CREATE DATABASE permission can create new databases and attach existing databases. If cross-database ownership chaining is enabled, these users can access objects in other databases that they might not have privileges in from the newly created
    or attached databases that they create.
    Regards,
    Elvis Long
    TechNet Community Support

  • Permission denied with makepkg

    This is my first (and second) try at makepkg. I believe I've followed the makepkg wiki closely, just experimenting using the example package rufus. I also tried with a different package and got the same error.
    bsdtar: Failed to open '/home/user/packages/rufus-0.7.0-1-i686.pkg.tar.gz': Permission denied
    ==> ERROR: Failed to create package file.
    Any insight would be greatly appreciated

    Solved
    I have to chalk this one up to operator error. Much too long a day and too late at night. I created that directory as root, just typed it out as a user and never saw the error. Next morning I had an idea what I did, I just haven't been able to get back to it till now
    Thanks for your input

  • SM69 error-Can't exec external program (Permission denied).with exit code 1

    Hi All,
    I am trying to execute UNIX script via creating commend line in SM69.
    But i am getting following error:
    "Can't exec external program (Permission denied)
    External program terminated with exit code 1"
    Can any one guide me what could be the cause of this error.
    Any Help will be appreciated.
    Thanks & Regards

    First use SU53, to see if you have all SAP-authoritys.
    But I think, you have no authority to execute UNIX-programs.
    or your UNIX-script is not executable?

  • Permission Denied on Syslogins.password when SQL2K to Oracle

    I am getting the following error when running the OMWB. Any help is appreciated.
    Failed to load Source Mode.[Microsoft][ODBC SQL Driver][SQL Server] SELECT permission denied on column 'password' of object 'syslogins', database 'master', owner 'dbo'
    I login as SA account and select the database 'abc' to migrate.
    Thanks,
    Chida

    I am trying to set this to the Mac (Admin) owner. The folder that is being shared over the network via samba was created on Mac OS

  • Permission denied on object 'PSOPRDEFN' database 'FSCM' schema 'dbo'

    Hi,
    I get the following error when i try to login in 2 tier thru App Designer.
    SELECT permission denied on object 'PSOPRDEFN' database 'FSCM' schema 'dbo'...Just to give a little background...Since i was installing PS FSCM 9 on my new machiine, I did not create a new DB, as I had the mdf and ldf files from my earlier machine. All i did was to add the DB thru SQL Server management studio. I have executed the grant and connect.sql. Both have executed successfully. But I am still unable to login. I also tried altering the authorization on my DB, but that did not work either
    Thank You

    Hi Nicolas,
    I was installing PS FSCM9 on my new personal machine. Since I had my "MDF" and "LDF" files for FSCM 9 DB (from my previous machine), I did not create a new DB for my new Install of PeopleTools. I simply copied the DB files to my new machine.
    I can login into the DB using sa/sa1. But when I try logging in using App Designer in 2 Tier, it pops up the error mentioned. I ran the Grant/connect sql's again, but that did not help. i did run alter authorization script for the 3 tables PSACCESSPRFL, PSSTATUS and PSOPRDEFN, and granted them access to people, but that did not work out.
    Thank you

  • Why The SELECT permission was denied on the object 'Facts', database

    What this error means?
    I have configured Data Source to use a specific Windows user name and password. The SQL database have the windows user account with db_owner rights.
    Error 11 OLE DB error: OLE DB or ODBC error: The SELECT permission was denied on the object 'Facts', database 'Customer_2011_CBA', schema 'dbo'.; 42000.
    Error 12 Errors in the OLAP storage engine: An error occurred while processing the 'Facts' partition of the 'Facts' measure group for the 'Customer 2011 CBA Cube' cube from the Customer Analysis Services 1 database.
    Kenny_I

    I'm beginning point:
    Error 11 OLE DB error: OLE DB or ODBC error: The SELECT permission was denied on the object 'Facts', database 'Customer_2011_CBA', schema 'dbo'.; 42000.
    Error 12 Errors in the OLAP storage engine: An error occurred while processing the 'Facts' partition of the 'Facts' measure group for the 'Customer 2011 CBA Cube' cube from the Customer Analysis Services 1 database.
    The Windows account do have right in the SQL Server->Object Explorer->Databases->'Customer_2011_CBA'->Security->The user->Properties->All server roles
    Kenny_I
    can you try your SQL account?
    If you think my suggestion is useful, please rate it as helpful.
    If it has helped you to resolve the problem, please Mark it as Answer.
    Sevengiants.com

  • The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

    I have created a user and given him the owner rights for the database.  Though I can LogIn as the user, I cannot access the databases.  I am having the error mesage:
    Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476
    Sha_woop

    Since there are so many possibilities for what might be wrong.  Here's another possibility to look at.  I ran into something where I had set up my own roles on a database.  (For instance, "Administrator", "Manager", "DataEntry", "Customer",
    each with their own kinds of limitations)  The only ones who could use it were "Manager" role or above--because they were also set up as sysadmin because they were adding users to the database (and they were highly trusted).  Also, the users that
    were being added were Windows Domain users--using their domain credentials.  (Everyone with access to the database had to be on our domain, but not everyone on the domain had access to the database--and only a few of them had access to change it.)
    Anyway, this working system suddenly stopped working and I was getting error messages similar to the above.  What I ended up doing that solved it was to go through all the permissions for the "public" role in that database and add those permissions to
    all of the roles that I had created.  I know that everyone is supposed to be in the "public" role even though you can't add them (or rather, you can "add" them, but they won't "stay added").
    So, in "SQL Server Management Studio", I went into my application's database, in other words (my localized names are obscured within <> brackets): "<Computername> (SQL Server <version> - sa)"\Databases\<MyAppDB>\Security\Roles\Database
    Roles\public".  Right-click on "public" and select "Properties".  In the "Database Role Properties - public" dialog, select the "Securables" page.  Go through the list and for each element in the list, come up with an SQL "Grant" statement to
    grant exactly that permission to another role.  So, for instance, there is a scalar function "[dbo].[fn_diagramobjects]" on which the "public" role has "Execute" privilege.  So, I added the following line:
    EXEC ( 'GRANT EXECUTE ON [dbo].[fn_diagramobjects] TO [' + @RoleName + '];' )
    Once I had done this for all the elements in the "Securables" list, I wrapped that up in a while loop on a cursor selecting through all the roles in my roles table.  This explicitly granted all the permissions of the "public" role to my database roles. 
    At that point, all my users were working again (even after I removed their "sysadmin" access--done as a temporary measure while I figured out what happened.)
    I'm sure there's a better (more elegant) way to do this by doing some kind of a query on the database objects and selecting on the public role, but after about half and hour of investigating, I wasn't figuring it out, so I just did it the brute-force method. 
    In case it helps someone else, here's my code.
    CREATE PROCEDURE [dbo].[GrantAccess]
    AS
    DECLARE @AppRoleName AS sysname
    DECLARE AppRoleCursor CURSOR LOCAL SCROLL_LOCKS FOR
    SELECT AppRoleName FROM [dbo].[RoleList];
    OPEN AppRoleCursor
    FETCH NEXT FROM AppRoleCursor INTO @AppRoleName
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC ( 'GRANT EXECUTE ON [dbo].[fn_diagramobjects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_alterdiagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_creatediagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_dropdiagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_helpdiagramdefinition] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_helpdiagrams] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_renamediagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[allocation_units] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assemblies] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_files] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_references] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[asymmetric_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[certificates] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[change_tracking_tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[check_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[column_type_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[column_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[computed_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_endpoints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_groups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_priorities] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[crypt_properties] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[data_spaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_audit_specification_details] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_audit_specifications] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_files] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_permissions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_principal_aliases] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_principals] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_role_members] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[default_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[destination_data_spaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[event_notifications] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[events] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[extended_procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[extended_properties] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[filegroups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[foreign_key_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[foreign_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_catalogs] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_catalog_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_fragments] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_stoplists] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_stopwords] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[function_order_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[identity_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[index_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[internal_tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[key_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[key_encryptions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[message_type_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[module_assembly_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[numbered_procedure_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[numbered_procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameter_type_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameter_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_functions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_range_values] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_schemes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partitions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[plan_guides] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[remote_service_bindings] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[routes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[schemas] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contract_message_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contract_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contracts] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_message_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_queue_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_queues] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[services] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[spatial_index_tessellations] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[spatial_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sql_dependencies] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[stats] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[stats_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[symmetric_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[synonyms] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syscolumns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syscomments] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysconstraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysdepends] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfilegroups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfiles] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysforeignkeys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfulltextcatalogs] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysindexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysindexkeys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysmembers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysobjects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syspermissions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysprotects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysreferences] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[systypes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysusers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[table_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[transmission_queue] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[trigger_events] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[triggers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[type_assembly_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_attributes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_collections] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_component_placements] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_components] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_elements] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_facets] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_model_groups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_namespaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_wildcard_namespaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_wildcards] TO [' + @AppRoleName + '];' )
    FETCH NEXT FROM AppRoleCursor INTO @AppRoleName
    END
    CLOSE AppRoleCursor
    RETURN 0
    GO
    Once that is in the system, I just needed to "Exec GrantAccess" to make it work.  (Of course, I have a table [RoleList] which contains a "AppRoleName" field that contains the names of the database roles.)
    So, the mystery remains: why did all my users lose their "public" role and why could I not give it back to them?  Was this part of an update to SQL Server 2008 R2?  Was it because I ran another script to delete each user and add them back so to refresh
    their connection with the domain?  Well, this solves the issue for now.
    One last warning: you probably should check the "public" role on your system before running this to make sure there isn't something missing or wrong, here.  It's always possible something is different about your system.
    Hope this helps someone else.

  • "Permission denied" while accessing Canon 550D with libgphoto2

    I have followed the Wiki for access problems but I just can't get it to work, the camera is seen but I cannot transfer anything from it, I'm getting "libusb couldn't open USB device /dev/bus/usb/002/003: Permission denied. libusb requires write access to USB device nodes." all the time
    gphoto2 --summary:
    Camera summary:
    Manufacturer: Canon Inc.
    Model: Canon EOS 500D
    Version: 3-1.1.0
    Serial Number: 8486ab29c68547159242370d5563101a
    Vendor Extension ID: 0xb (2.0)
    Capture Formats: JPEG
    Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
    Supported MTP Object Properties:
    Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    Script/3002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    MS AVI/300a: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels
    MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc89/Duration de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels
    JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth
    CRW/b101: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    Unknown(b103)/b103: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    Unknown(bf02)/bf02: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified
    Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dcd3/ImageBitDepth
    Unknown(b104)/b104: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc09/DateModified dc87/Width dc88/Height dc89/Duration de97/ScanDepth de9b/VideoFourCCCodec de9c/VideoBitRate de9a/AudioBitRate de93/SampleRate de94/NumberOfChannels
    Device Capabilities:
    File Download, File Deletion, File Upload
    No Image Capture, No Open Capture, Canon EOS Capture
    Storage Devices Summary:
    store_00020001:
    StorageDescription: SD
    VolumeLabel: None
    Storage Type: Removable RAM (memory card)
    Filesystemtype: Digital Camera Layout (DCIM)
    Access Capability: Read-Write
    Maximum Capability: 8160542720 (7782 MB)
    Free Space (Bytes): 698908672 (666 MB)
    Free Space (Images): -1
    Device Property Summary:
    Property 0xd402:(read only) (type=0xffff) 'Canon EOS 500D'
    Property 0xd407:(read only) (type=0x6) 1
    Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
    and the debug file from gphoto
    0.000030 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
    0.000086 main(2): gphoto2 2.4.10
    0.000101 main(2): gphoto2 has been compiled with the following options:
    0.000115 main(2): + gcc (C compiler used)
    0.000126 main(2): + popt (mandatory, for handling command-line parameters)
    0.000138 main(2): + exif (for displaying EXIF information)
    0.000150 main(2): + no cdk (for accessing configuration options)
    0.000162 main(2): + aa (for displaying live previews)
    0.000174 main(2): + jpeg (for displaying live previews in JPEG format)
    0.000185 main(2): + readline (for easy navigation in the shell)
    0.000201 main(2): libgphoto2 2.4.10.1
    0.000215 main(2): libgphoto2 has been compiled with the following options:
    0.000228 main(2): + gcc (C compiler used)
    0.000242 main(2): + ltdl (for portable loading of camlibs)
    0.000254 main(2): + EXIF (for special handling of EXIF files)
    0.000268 main(2): libgphoto2_port 0.8.0
    0.000283 main(2): libgphoto2_port has been compiled with the following options:
    0.000296 main(2): + gcc (C compiler used)
    0.000307 main(2): + ltdl (for portable loading of camlibs)
    0.000321 main(2): + USB (libusb, for USB cameras)
    0.000333 main(2): + serial (for serial cameras)
    0.000345 main(2): + no resmgr (serial port access and locking)
    0.000357 main(2): + no baudboy (serial port locking)
    0.000368 main(2): + no ttylock (serial port locking)
    0.000380 main(2): + no lockdev (serial port locking)
    0.000392 main(2): CAMLIBS env var not set, using compile-time default instead
    0.000404 main(2): IOLIBS env var not set, using compile-time default instead
    0.000433 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
    0.000487 setting/gphoto2-setting.c(2): Loading settings from file "/home/david/.gphoto/settings"
    0.000724 main(2): The user has not specified both a model and a port. Try to figure them out.
    0.000749 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
    0.000841 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/disk'.
    0.003838 gphoto2-port/disk(2): found fstab fsname tmpfs
    0.003872 gphoto2-port/disk(2): found fstab fsname tmps
    0.003896 gphoto2-port/disk(2): found fstab fsname UUID=5a94d96e-0fdd-425a-91c5-6fe96da349f0
    0.003912 gphoto2-port/disk(2): found fstab fsname UUID=ce706691-4517-477c-a42d-417ab8ffef38
    0.003931 gphoto2-port/disk(2): found fstab fsname UUID=eca58c28-a738-4567-a57e-d30d04d2fc69
    0.003951 gphoto2-port/disk(2): found fstab fsname UUID=10bc0f7b-5677-4a4b-9a20-678037ca06ff
    0.003972 gphoto2-port/disk(2): found fstab fsname 192.168.0.10:/Data
    0.004082 gphoto2-port/disk(2): found mtab fsname rootfs
    0.004103 gphoto2-port/disk(2): found mtab fsname proc
    0.004125 gphoto2-port/disk(2): found mtab fsname /sys
    0.004148 gphoto2-port/disk(2): found mtab fsname udev
    0.004170 gphoto2-port/disk(2): found mtab fsname /run
    0.004192 gphoto2-port/disk(2): found mtab fsname /dev/sda1
    0.004209 gphoto2-port/disk(2): found mtab fsname devpts
    0.004231 gphoto2-port/disk(2): found mtab fsname shm
    0.004252 gphoto2-port/disk(2): found mtab fsname tmpfs
    0.004274 gphoto2-port/disk(2): found mtab fsname tmps
    0.004294 gphoto2-port/disk(2): found mtab fsname /dev/sda3
    0.004313 gphoto2-port/disk(2): found mtab fsname /dev/sdc1
    0.004331 gphoto2-port/disk(2): found mtab fsname rpc_pipefs
    0.004356 gphoto2-port/disk(2): found mtab fsname 192.168.0.10:/Data/
    0.004408 gphoto2-port-info-list(2): Could not load port driver list: 'Unspecified error'.
    0.004425 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    0.004540 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    0.004560 gphoto2-port-info-list(2): Loaded '' ('^ptpip') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    0.004576 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004778 gphoto2-port-info-list(2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004797 gphoto2-port-info-list(2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004819 gphoto2-port-info-list(2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004835 gphoto2-port-info-list(2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004850 gphoto2-port-info-list(2): Loaded '' ('^serial') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    0.004865 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usb'.
    0.189309 gphoto2-port-info-list(2): Loaded '' ('^usb:') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    0.189349 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:001,005') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    0.189364 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:002,003') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    0.189380 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbdiskdirect'.
    0.189702 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbscsi'.
    0.189845 gphoto2-port-info-list(2): Counting entries (11 available)...
    0.189864 gphoto2-port-info-list(2): 7 regular entries available.
    0.190025 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/libgphoto2/2.4.10.1'...
    0.190458 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/adc65'.
    0.190478 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/agfa_cl20'.
    0.190491 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/aox'.
    0.190505 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/ax203'.
    0.190520 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/barbie'.
    0.190533 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/canon'.
    0.190546 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/casio_qv'.
    0.190558 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/clicksmart310'.
    0.190571 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/digigr8'.
    0.190584 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/digita'.
    0.190597 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/dimagev'.
    0.190609 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/dimera3500'.
    0.190622 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/directory'.
    0.190634 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/enigma13'.
    0.190647 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/fuji'.
    0.190660 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/gsmart300'.
    0.190672 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/hp215'.
    0.190685 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/iclick'.
    0.190698 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/jamcam'.
    0.190710 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/jd11'.
    0.190723 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/jl2005a'.
    0.190736 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/jl2005c'.
    0.190748 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/kodak_dc120'.
    0.190761 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/kodak_dc210'.
    0.190774 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/kodak_dc240'.
    0.190786 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/kodak_dc3200'.
    0.190799 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/kodak_ez200'.
    0.190812 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/konica'.
    0.190825 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/konica_qm150'.
    0.190837 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/largan'.
    0.190850 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/lg_gsm'.
    0.190862 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/mars'.
    0.190875 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/mustek'.
    0.190888 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/panasonic_coolshot'.
    0.190910 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/panasonic_dc1000'.
    0.190923 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/panasonic_dc1580'.
    0.190936 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/panasonic_l859'.
    0.190948 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/pccam300'.
    0.190961 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/pccam600'.
    0.190973 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/polaroid_pdc320'.
    0.190986 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/polaroid_pdc640'.
    0.190999 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/polaroid_pdc700'.
    0.191012 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/ptp2'.
    0.191024 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/ricoh'.
    0.191037 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/ricoh_g3'.
    0.191050 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/samsung'.
    0.191063 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sierra'.
    0.191076 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sipix_blink2'.
    0.191088 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sipix_web2'.
    0.191101 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/smal'.
    0.191113 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sonix'.
    0.191126 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sony_dscf1'.
    0.191138 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sony_dscf55'.
    0.191151 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/soundvision'.
    0.191164 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/spca50x'.
    0.191176 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sq905'.
    0.191189 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/st2205'.
    0.191202 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/stv0674'.
    0.191214 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/stv0680'.
    0.191227 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/sx330z'.
    0.191240 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/topfield'.
    0.191252 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.10.1/toshiba_pdrm11'.
    0.191269 gp-abilities-list(2): Found 62 camera drivers.
    0.210941 gphoto2-port-info-list(2): Counting entries (11 available)...
    0.210974 gphoto2-port-info-list(2): 7 regular entries available.
    0.210984 gphoto2-port(2): Creating new device...
    0.210996 gphoto2-port-info-list(2): Getting info of entry 0 (11 available)...
    0.211082 gphoto2-port(2): Setting settings...
    0.211095 gphoto2-port-info-list(2): Getting info of entry 1 (11 available)...
    0.211176 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    0.211189 gphoto2-port(2): Setting settings...
    0.211199 gphoto2-port-info-list(2): Getting info of entry 2 (11 available)...
    0.211273 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    0.211286 gphoto2-port(2): Setting settings...
    0.211295 gphoto2-port-info-list(2): Getting info of entry 3 (11 available)...
    0.211371 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    0.211383 gphoto2-port(2): Setting settings...
    0.211393 gphoto2-port-info-list(2): Getting info of entry 4 (11 available)...
    0.211466 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    0.211479 gphoto2-port(2): Setting settings...
    0.211488 gphoto2-port-info-list(2): Getting info of entry 5 (11 available)...
    0.213264 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
    0.213278 gphoto2-port(2): Setting settings...
    0.213287 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
    0.213296 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    0.213330 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x31cf)... found.
    0.213340 gphoto2-port-usb(2): inep to look for is 81
    0.213348 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
    0.213365 gphoto2-abilities-list.c(2): Found 'Canon EOS 500D' (0x4a9,0x31cf)
    0.213376 gphoto2-port-info-list(2): Getting info of entry 6 (11 available)...
    0.215043 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
    0.215056 gphoto2-port(2): Setting settings...
    0.215065 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
    0.215075 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    0.215353 gphoto2-port(2): Freeing port...
    0.215365 gphoto2-port(2): Closing port...
    0.215411 gphoto2-camera(2): Setting abilities ('Canon EOS 500D')...
    0.215424 gphoto2-setting(2): Setting key 'model' to value 'Canon EOS 500D' (gphoto2)
    0.215435 gphoto2-setting(2): Saving 4 setting(s) to file "/home/david/.gphoto/settings"
    0.215589 gphoto2-port-info-list(2): Looking for path 'usb:001,005' (11 entries available)...
    0.215603 gphoto2-port-info-list(2): Getting info of entry 5 (11 available)...
    0.215613 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:001,005'...
    0.217304 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
    0.217318 gphoto2-port(2): Setting settings...
    0.217327 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
    0.217336 gphoto2-setting(2): Setting key 'port' to value 'usb:001,005' (gphoto2)
    0.217345 gphoto2-setting(2): Saving 4 setting(s) to file "/home/david/.gphoto/settings"
    0.217489 gphoto2-camera(2): Initializing camera...
    0.217506 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x31cf)... found.
    0.217518 gphoto2-port-usb(2): inep to look for is 81
    0.217526 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
    0.217535 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.4.10.1/ptp2'...
    0.217732 gphoto2-port(2): Opening USB port...
    0.217744 libusb(2): gp_port_usb_open()
    0.217771 libusb(2): claiming interface 0
    0.217793 ptp2(2): maxpacketsize 512
    0.218546 gphoto2-port(2): Setting timeout to 1500 millisecond(s)...
    0.218560 ptp(2): PTP: Opening session
    0.218572 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.218583 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................
    0.218678 ptp2/ptp_usb_getresp(2): reading response
    0.218690 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.218700 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.220052 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.220069 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-00 00 00 00 ....... ....
    0.220081 gphoto2-port(2): Setting timeout to 20000 millisecond(s)...
    0.220092 gphoto2-port(2): Writing 12=0xc byte(s) to port...
    0.220102 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 01 00 01 10-01 00 00 00 ............
    0.220169 ptp2/ptp_usb_getdata(2): reading data
    0.220179 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.220188 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.222673 gphoto2-port(2): Could only read 383 out of 512 byte(s)
    0.222689 gphoto2-port(3): Hexdump of 383 = 0x17f bytes follows:
    0000 7f 01 00 00 02 00 01 10-01 00 00 00 64 00 06 00 ............d...
    0010 00 00 c8 00 00 00 00 4f-00 00 00 14 10 15 10 16 .......O........
    0020 10 01 10 02 10 03 10 06-10 04 10 01 91 05 10 02 ................
    0030 91 07 10 08 10 03 91 09-10 04 91 0a 10 1b 10 07 ................
    0040 91 0c 10 0d 10 0b 10 05-91 0f 10 06 91 10 91 27 ...............'
    0050 91 0b 91 08 91 09 91 0c-91 0e 91 0f 91 25 91 26 .............%.&
    0060 91 15 91 14 91 13 91 16-91 17 91 20 91 f0 91 18 ........... ....
    0070 91 21 91 f1 91 1d 91 0a-91 1b 91 1c 91 1e 91 1a .!..............
    0080 91 53 91 54 91 60 91 55-91 57 91 58 91 59 91 5a .S.T.`.U.W.X.Y.Z
    0090 91 1f 91 fe 91 ff 91 28-91 29 91 2d 91 2e 91 2f .......(.).-.../
    00a0 91 01 98 02 98 03 98 04-98 05 98 52 90 53 90 57 ...........R.S.W
    00b0 90 58 90 59 90 5a 90 5f-90 07 00 00 00 09 40 04 .X.Y.Z._......@.
    00c0 40 05 40 03 40 02 40 07-40 01 c1 03 00 00 00 02 @.@.@.@.@.......
    00d0 d4 07 d4 06 d4 01 00 00-00 01 38 0b 00 00 00 01 ..........8.....
    00e0 30 02 30 06 30 0a 30 08-30 01 38 01 b1 03 b1 02 0.0.0.0.0.8.....
    00f0 bf 00 38 04 b1 0b 43 00-61 00 6e 00 6f 00 6e 00 ..8...C.a.n.o.n.
    0100 20 00 49 00 6e 00 63 00-2e 00 00 00 0f 43 00 61 .I.n.c......C.a
    0110 00 6e 00 6f 00 6e 00 20-00 45 00 4f 00 53 00 20 .n.o.n. .E.O.S.
    0120 00 35 00 30 00 30 00 44-00 00 00 08 33 00 2d 00 .5.0.0.D....3.-.
    0130 31 00 2e 00 31 00 2e 00-30 00 00 00 21 38 00 34 1...1...0...!8.4
    0140 00 38 00 36 00 61 00 62-00 32 00 39 00 63 00 36 .8.6.a.b.2.9.c.6
    0150 00 38 00 35 00 34 00 37-00 31 00 35 00 39 00 32 .8.5.4.7.1.5.9.2
    0160 00 34 00 32 00 33 00 37-00 30 00 64 00 35 00 35 .4.2.3.7.0.d.5.5
    0170 00 36 00 33 00 31 00 30-00 31 00 61 00 00 00 .6.3.1.0.1.a...
    0.222715 ptp2/ptp_usb_getresp(2): reading response
    0.222724 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.222732 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.223419 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.223431 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-01 00 00 00 ....... ....
    0.223452 PTP2/ptp2/library.c(2): Device info:
    0.223461 PTP2/ptp2/library.c(2): Manufacturer: Canon Inc.
    0.223469 PTP2/ptp2/library.c(2): Model: Canon EOS 500D
    0.223477 PTP2/ptp2/library.c(2): device version: 3-1.1.0
    0.223485 PTP2/ptp2/library.c(2): serial number: '8486ab29c68547159242370d5563101a'
    0.223494 PTP2/ptp2/library.c(2): Vendor extension ID: 0x0000000b
    0.223502 PTP2/ptp2/library.c(2): Vendor extension version: 200
    0.223510 PTP2/ptp2/library.c(2): Vendor extension description: (null)
    0.223520 PTP2/ptp2/library.c(2): Functional Mode: 0x0000
    0.223528 PTP2/ptp2/library.c(2): PTP Standard Version: 100
    0.223536 PTP2/ptp2/library.c(2): Supported operations:
    0.223544 PTP2/ptp2/library.c(2): 0x1014
    0.223552 PTP2/ptp2/library.c(2): 0x1015
    0.223560 PTP2/ptp2/library.c(2): 0x1016
    0.223568 PTP2/ptp2/library.c(2): 0x1001
    0.223576 PTP2/ptp2/library.c(2): 0x1002
    0.223584 PTP2/ptp2/library.c(2): 0x1003
    0.223592 PTP2/ptp2/library.c(2): 0x1006
    0.223600 PTP2/ptp2/library.c(2): 0x1004
    0.223608 PTP2/ptp2/library.c(2): 0x9101
    0.223617 PTP2/ptp2/library.c(2): 0x1005
    0.223625 PTP2/ptp2/library.c(2): 0x9102
    0.223633 PTP2/ptp2/library.c(2): 0x1007
    0.223641 PTP2/ptp2/library.c(2): 0x1008
    0.223649 PTP2/ptp2/library.c(2): 0x9103
    0.223657 PTP2/ptp2/library.c(2): 0x1009
    0.223665 PTP2/ptp2/library.c(2): 0x9104
    0.223673 PTP2/ptp2/library.c(2): 0x100a
    0.223681 PTP2/ptp2/library.c(2): 0x101b
    0.223689 PTP2/ptp2/library.c(2): 0x9107
    0.223697 PTP2/ptp2/library.c(2): 0x100c
    0.223705 PTP2/ptp2/library.c(2): 0x100d
    0.223713 PTP2/ptp2/library.c(2): 0x100b
    0.223721 PTP2/ptp2/library.c(2): 0x9105
    0.223729 PTP2/ptp2/library.c(2): 0x100f
    0.223737 PTP2/ptp2/library.c(2): 0x9106
    0.223745 PTP2/ptp2/library.c(2): 0x9110
    0.223753 PTP2/ptp2/library.c(2): 0x9127
    0.223761 PTP2/ptp2/library.c(2): 0x910b
    0.223769 PTP2/ptp2/library.c(2): 0x9108
    0.223777 PTP2/ptp2/library.c(2): 0x9109
    0.223785 PTP2/ptp2/library.c(2): 0x910c
    0.223793 PTP2/ptp2/library.c(2): 0x910e
    0.223801 PTP2/ptp2/library.c(2): 0x910f
    0.223809 PTP2/ptp2/library.c(2): 0x9125
    0.223817 PTP2/ptp2/library.c(2): 0x9126
    0.223825 PTP2/ptp2/library.c(2): 0x9115
    0.223834 PTP2/ptp2/library.c(2): 0x9114
    0.223841 PTP2/ptp2/library.c(2): 0x9113
    0.223849 PTP2/ptp2/library.c(2): 0x9116
    0.223857 PTP2/ptp2/library.c(2): 0x9117
    0.223865 PTP2/ptp2/library.c(2): 0x9120
    0.223874 PTP2/ptp2/library.c(2): 0x91f0
    0.223882 PTP2/ptp2/library.c(2): 0x9118
    0.223890 PTP2/ptp2/library.c(2): 0x9121
    0.223898 PTP2/ptp2/library.c(2): 0x91f1
    0.223906 PTP2/ptp2/library.c(2): 0x911d
    0.223914 PTP2/ptp2/library.c(2): 0x910a
    0.223922 PTP2/ptp2/library.c(2): 0x911b
    0.223930 PTP2/ptp2/library.c(2): 0x911c
    0.223938 PTP2/ptp2/library.c(2): 0x911e
    0.223945 PTP2/ptp2/library.c(2): 0x911a
    0.223959 PTP2/ptp2/library.c(2): 0x9153
    0.223967 PTP2/ptp2/library.c(2): 0x9154
    0.223975 PTP2/ptp2/library.c(2): 0x9160
    0.223983 PTP2/ptp2/library.c(2): 0x9155
    0.223991 PTP2/ptp2/library.c(2): 0x9157
    0.223999 PTP2/ptp2/library.c(2): 0x9158
    0.224007 PTP2/ptp2/library.c(2): 0x9159
    0.224015 PTP2/ptp2/library.c(2): 0x915a
    0.224023 PTP2/ptp2/library.c(2): 0x911f
    0.224031 PTP2/ptp2/library.c(2): 0x91fe
    0.224039 PTP2/ptp2/library.c(2): 0x91ff
    0.224046 PTP2/ptp2/library.c(2): 0x9128
    0.224054 PTP2/ptp2/library.c(2): 0x9129
    0.224062 PTP2/ptp2/library.c(2): 0x912d
    0.224070 PTP2/ptp2/library.c(2): 0x912e
    0.224078 PTP2/ptp2/library.c(2): 0x912f
    0.224086 PTP2/ptp2/library.c(2): 0x9801
    0.224094 PTP2/ptp2/library.c(2): 0x9802
    0.224102 PTP2/ptp2/library.c(2): 0x9803
    0.224110 PTP2/ptp2/library.c(2): 0x9804
    0.224117 PTP2/ptp2/library.c(2): 0x9805
    0.224125 PTP2/ptp2/library.c(2): 0x9052
    0.224133 PTP2/ptp2/library.c(2): 0x9053
    0.224141 PTP2/ptp2/library.c(2): 0x9057
    0.224149 PTP2/ptp2/library.c(2): 0x9058
    0.224157 PTP2/ptp2/library.c(2): 0x9059
    0.224165 PTP2/ptp2/library.c(2): 0x905a
    0.224173 PTP2/ptp2/library.c(2): 0x905f
    0.224180 PTP2/ptp2/library.c(2): Events Supported:
    0.224188 PTP2/ptp2/library.c(2): 0x4009
    0.224196 PTP2/ptp2/library.c(2): 0x4004
    0.224204 PTP2/ptp2/library.c(2): 0x4005
    0.224212 PTP2/ptp2/library.c(2): 0x4003
    0.224220 PTP2/ptp2/library.c(2): 0x4002
    0.224228 PTP2/ptp2/library.c(2): 0x4007
    0.224235 PTP2/ptp2/library.c(2): 0xc101
    0.224243 PTP2/ptp2/library.c(2): Device Properties Supported:
    0.224251 PTP2/ptp2/library.c(2): 0xd402
    0.224259 PTP2/ptp2/library.c(2): 0xd407
    0.224267 PTP2/ptp2/library.c(2): 0xd406
    0.224329 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.224340 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-02 00 00 00 01 30 00 00 .............0..
    0.224419 ptp2/ptp_usb_getdata(2): reading data
    0.224429 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.224439 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.226419 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.226433 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-02 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.226443 ptp2/ptp_usb_getresp(2): reading response
    0.226452 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.226461 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.226669 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.226681 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-02 00 00 00 ....... ....
    0.226699 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.226710 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-03 00 00 00 02 30 00 00 .............0..
    0.227041 ptp2/ptp_usb_getdata(2): reading data
    0.227051 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.227060 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.228175 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.228193 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-03 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.228209 ptp2/ptp_usb_getresp(2): reading response
    0.228221 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.228235 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.228553 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.228574 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-03 00 00 00 ....... ....
    0.228599 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.228614 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-04 00 00 00 06 30 00 00 .............0..
    0.228923 ptp2/ptp_usb_getdata(2): reading data
    0.228943 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.228957 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.230051 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.230070 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-04 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.230086 ptp2/ptp_usb_getresp(2): reading response
    0.230099 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.230112 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.230426 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.230443 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-04 00 00 00 ....... ....
    0.230467 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.230483 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-05 00 00 00 0a 30 00 00 .............0..
    0.230673 ptp2/ptp_usb_getdata(2): reading data
    0.230688 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.230702 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.231800 gphoto2-port(2): Could only read 54 out of 512 byte(s)
    0.231818 gphoto2-port(3): Hexdump of 54 = 0x36 bytes follows:
    0000 36 00 00 00 02 00 01 98-05 00 00 00 13 00 00 00 6...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc 87 dc 88 dc-89 dc 97 de 9b de 9c de ................
    0030 9a de 93 de 94 de - ......
    0.231833 ptp2/ptp_usb_getresp(2): reading response
    0.231846 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.231859 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.232175 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.232192 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-05 00 00 00 ....... ....
    0.232220 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.232236 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-06 00 00 00 08 30 00 00 .............0..
    0.232547 ptp2/ptp_usb_getdata(2): reading data
    0.232563 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.232578 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.233674 gphoto2-port(2): Could only read 44 out of 512 byte(s)
    0.233697 gphoto2-port(3): Hexdump of 44 = 0x2c bytes follows:
    0000 2c 00 00 00 02 00 01 98-06 00 00 00 0e 00 00 00 ,...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc 89 dc 9a de-93 de 94 de ............
    0.233713 ptp2/ptp_usb_getresp(2): reading response
    0.233725 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.233739 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.234052 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.234071 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-06 00 00 00 ....... ....
    0.234097 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.234112 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-07 00 00 00 01 38 00 00 .............8..
    0.234298 ptp2/ptp_usb_getdata(2): reading data
    0.234313 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.234327 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.235425 gphoto2-port(2): Could only read 42 out of 512 byte(s)
    0.235443 gphoto2-port(3): Hexdump of 42 = 0x2a bytes follows:
    0000 2a 00 00 00 02 00 01 98-07 00 00 00 0d 00 00 00 *...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc 87 dc 88 dc-d3 dc ..........
    0.235458 ptp2/ptp_usb_getresp(2): reading response
    0.235471 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.235484 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.235800 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.235817 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-07 00 00 00 ....... ....
    0.235848 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.235900 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-08 00 00 00 01 b1 00 00 ................
    0.236047 ptp2/ptp_usb_getdata(2): reading data
    0.236062 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.236076 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.237175 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.237193 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-08 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.237209 ptp2/ptp_usb_getresp(2): reading response
    0.237222 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.237235 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.237550 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.237567 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-08 00 00 00 ....... ....
    0.237591 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.237606 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-09 00 00 00 03 b1 00 00 ................
    0.237923 ptp2/ptp_usb_getdata(2): reading data
    0.237938 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.237952 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.239050 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.239067 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-09 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.239083 ptp2/ptp_usb_getresp(2): reading response
    0.239095 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.239109 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.239427 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.239446 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-09 00 00 00 ....... ....
    0.239470 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.239485 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-0a 00 00 00 02 bf 00 00 ................
    0.239673 ptp2/ptp_usb_getdata(2): reading data
    0.239688 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.239702 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.240802 gphoto2-port(2): Could only read 36 out of 512 byte(s)
    0.240820 gphoto2-port(3): Hexdump of 36 = 0x24 bytes follows:
    0000 24 00 00 00 02 00 01 98-0a 00 00 00 0a 00 00 00 $...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc - ....
    0.240835 ptp2/ptp_usb_getresp(2): reading response
    0.240848 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.240861 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.241174 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.241192 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0a 00 00 00 ....... ....
    0.241215 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.241230 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-0b 00 00 00 00 38 00 00 .............8..
    0.241548 ptp2/ptp_usb_getdata(2): reading data
    0.241563 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.241577 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.242675 gphoto2-port(2): Could only read 42 out of 512 byte(s)
    0.242694 gphoto2-port(3): Hexdump of 42 = 0x2a bytes follows:
    0000 2a 00 00 00 02 00 01 98-0b 00 00 00 0d 00 00 00 *...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc 87 dc 88 dc-d3 dc ..........
    0.242710 ptp2/ptp_usb_getresp(2): reading response
    0.242729 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.242743 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.243051 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.243069 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... ....
    0.243093 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.243108 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 01 98-0c 00 00 00 04 b1 00 00 ................
    0.243298 ptp2/ptp_usb_getdata(2): reading data
    0.243313 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.243327 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.244426 gphoto2-port(2): Could only read 54 out of 512 byte(s)
    0.244447 gphoto2-port(3): Hexdump of 54 = 0x36 bytes follows:
    0000 36 00 00 00 02 00 01 98-0c 00 00 00 13 00 00 00 6...............
    0010 01 dc 02 dc 03 dc 04 dc-07 dc 0b dc 41 dc 44 dc ............A.D.
    0020 08 dc 09 dc 87 dc 88 dc-89 dc 97 de 9b de 9c de ................
    0030 9a de 93 de 94 de - ......
    0.244463 ptp2/ptp_usb_getresp(2): reading response
    0.244475 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.244489 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.244801 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.244820 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0c 00 00 00 ....... ....
    0.244858 gphoto2-port(2): Writing 12=0xc byte(s) to port...
    0.244874 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 01 00 04 10-0d 00 00 00 ............
    0.245047 ptp2/ptp_usb_getdata(2): reading data
    0.245062 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.245076 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.246174 gphoto2-port(2): Could only read 20 out of 512 byte(s)
    0.246193 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows:
    0000 14 00 00 00 02 00 04 10-0d 00 00 00 01 00 00 00 ................
    0010 01 00 02 00 - ....
    0.246208 ptp2/ptp_usb_getresp(2): reading response
    0.246220 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.246233 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.246924 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.246942 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0d 00 00 00 ....... ....
    0.246962 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.246977 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 05 10-0e 00 00 00 01 00 02 00 ................
    0.247048 ptp2/ptp_usb_getdata(2): reading data
    0.247063 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.247077 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.248424 gphoto2-port(2): Could only read 48 out of 512 byte(s)
    0.248442 gphoto2-port(3): Hexdump of 48 = 0x30 bytes follows:
    0000 30 00 00 00 02 00 05 10-0e 00 00 00 04 00 03 00 0...............
    0010 00 00 00 00 68 e6 01 00-00 00 00 80 a8 29 00 00 ....h........)..
    0020 00 00 ff ff ff ff 03 53-00 44 00 00 00 00 00 00 .......S.D......
    0.248457 ptp2/ptp_usb_getresp(2): reading response
    0.248470 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.248483 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.249178 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.249204 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0e 00 00 00 ....... ....
    0.249241 gphoto2-port(2): Writing 12=0xc byte(s) to port...
    0.249257 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 01 00 01 10-0f 00 00 00 ............
    0.249424 ptp2/ptp_usb_getdata(2): reading data
    0.249439 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.249454 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.251051 gphoto2-port(2): Could only read 383 out of 512 byte(s)
    0.251075 gphoto2-port(3): Hexdump of 383 = 0x17f bytes follows:
    0000 7f 01 00 00 02 00 01 10-0f 00 00 00 64 00 06 00 ............d...
    0010 00 00 c8 00 00 00 00 4f-00 00 00 14 10 15 10 16 .......O........
    0020 10 01 10 02 10 03 10 06-10 04 10 01 91 05 10 02 ................
    0030 91 07 10 08 10 03 91 09-10 04 91 0a 10 1b 10 07 ................
    0040 91 0c 10 0d 10 0b 10 05-91 0f 10 06 91 10 91 27 ...............'
    0050 91 0b 91 08 91 09 91 0c-91 0e 91 0f 91 25 91 26 .............%.&
    0060 91 15 91 14 91 13 91 16-91 17 91 20 91 f0 91 18 ........... ....
    0070 91 21 91 f1 91 1d 91 0a-91 1b 91 1c 91 1e 91 1a .!..............
    0080 91 53 91 54 91 60 91 55-91 57 91 58 91 59 91 5a .S.T.`.U.W.X.Y.Z
    0090 91 1f 91 fe 91 ff 91 28-91 29 91 2d 91 2e 91 2f .......(.).-.../
    00a0 91 01 98 02 98 03 98 04-98 05 98 52 90 53 90 57 ...........R.S.W
    00b0 90 58 90 59 90 5a 90 5f-90 07 00 00 00 09 40 04 .X.Y.Z._......@.
    00c0 40 05 40 03 40 02 40 07-40 01 c1 03 00 00 00 02 @.@.@.@.@.......
    00d0 d4 07 d4 06 d4 01 00 00-00 01 38 0b 00 00 00 01 ..........8.....
    00e0 30 02 30 06 30 0a 30 08-30 01 38 01 b1 03 b1 02 0.0.0.0.0.8.....
    00f0 bf 00 38 04 b1 0b 43 00-61 00 6e 00 6f 00 6e 00 ..8...C.a.n.o.n.
    0100 20 00 49 00 6e 00 63 00-2e 00 00 00 0f 43 00 61 .I.n.c......C.a
    0110 00 6e 00 6f 00 6e 00 20-00 45 00 4f 00 53 00 20 .n.o.n. .E.O.S.
    0120 00 35 00 30 00 30 00 44-00 00 00 08 33 00 2d 00 .5.0.0.D....3.-.
    0130 31 00 2e 00 31 00 2e 00-30 00 00 00 21 38 00 34 1...1...0...!8.4
    0140 00 38 00 36 00 61 00 62-00 32 00 39 00 63 00 36 .8.6.a.b.2.9.c.6
    0150 00 38 00 35 00 34 00 37-00 31 00 35 00 39 00 32 .8.5.4.7.1.5.9.2
    0160 00 34 00 32 00 33 00 37-00 30 00 64 00 35 00 35 .4.2.3.7.0.d.5.5
    0170 00 36 00 33 00 31 00 30-00 31 00 61 00 00 00 .6.3.1.0.1.a...
    0.251101 ptp2/ptp_usb_getresp(2): reading response
    0.251113 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.251127 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.251801 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.251819 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-0f 00 00 00 ....... ....
    0.251843 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.251859 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 14 10-10 00 00 00 02 d4 00 00 ................
    0.251923 ptp2/ptp_usb_getdata(2): reading data
    0.251938 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.251952 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.253300 gphoto2-port(2): Could only read 80 out of 512 byte(s)
    0.253320 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows:
    0000 50 00 00 00 02 00 14 10-10 00 00 00 02 d4 ff ff P...............
    0010 00 0f 43 00 61 00 6e 00-6f 00 6e 00 20 00 45 00 ..C.a.n.o.n. .E.
    0020 4f 00 53 00 20 00 35 00-30 00 30 00 44 00 00 00 O.S. .5.0.0.D...
    0030 0f 43 00 61 00 6e 00 6f-00 6e 00 20 00 45 00 4f .C.a.n.o.n. .E.O
    0040 00 53 00 20 00 35 00 30-00 30 00 44 00 00 00 00 .S. .5.0.0.D....
    0.253336 ptp2/ptp_usb_getresp(2): reading response
    0.253348 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.253362 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.254051 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.254069 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-10 00 00 00 ....... ....
    0.254106 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.254122 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 14 10-11 00 00 00 07 d4 00 00 ................
    0.254174 ptp2/ptp_usb_getdata(2): reading data
    0.254188 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.254203 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.255551 gphoto2-port(2): Could only read 26 out of 512 byte(s)
    0.255571 gphoto2-port(3): Hexdump of 26 = 0x1a bytes follows:
    0000 1a 00 00 00 02 00 14 10-11 00 00 00 07 d4 06 00 ................
    0010 00 01 00 00 00 01 00 00-00 00 ..........
    0.255586 ptp2/ptp_usb_getresp(2): reading response
    0.255599 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.255612 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.256304 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.256326 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-11 00 00 00 ....... ....
    0.256357 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.256372 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 14 10-12 00 00 00 06 d4 00 00 ................
    0.256421 ptp2/ptp_usb_getdata(2): reading data
    0.256436 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.256450 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.257925 gphoto2-port(2): Could only read 92 out of 512 byte(s)
    0.257944 gphoto2-port(3): Hexdump of 92 = 0x5c bytes follows:
    0000 5c 00 00 00 02 00 14 10-12 00 00 00 06 d4 ff ff \...............
    0010 01 12 55 00 6e 00 6b 00-6e 00 6f 00 77 00 6e 00 ..U.n.k.n.o.w.n.
    0020 20 00 49 00 6e 00 69 00-74 00 69 00 61 00 74 00 .I.n.i.t.i.a.t.
    0030 6f 00 72 00 00 00 12 55-00 6e 00 6b 00 6e 00 6f o.r....U.n.k.n.o
    0040 00 77 00 6e 00 20 00 49-00 6e 00 69 00 74 00 69 .w.n. .I.n.i.t.i
    0050 00 61 00 74 00 6f 00 72-00 00 00 00 .a.t.o.r....
    0.257961 ptp2/ptp_usb_getresp(2): reading response
    0.257974 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.257988 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.258674 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.258691 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-12 00 00 00 ....... ....
    0.259716 gp-camera(2): Freeing camera...
    0.259735 gphoto2-camera(2): Exiting camera ('Canon EOS 500D')...
    0.259758 gphoto2-port(2): Writing 12=0xc byte(s) to port...
    0.259774 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 01 00 03 10-13 00 00 00 ............
    0.259926 ptp2/ptp_usb_getresp(2): reading response
    0.259944 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.259959 gphoto2-port(2): Reading 512=0x200 bytes from port...
    0.261177 gphoto2-port(2): Could only read 12 out of 512 byte(s)
    0.261195 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows:
    0000 0c 00 00 00 03 00 01 20-13 00 00 00 ....... ....
    0.261213 gphoto2-port(2): Clear halt...
    0.261301 gphoto2-port(2): Clear halt...
    0.261425 gphoto2-port(2): Clear halt...
    0.261548 gphoto2-port(2): Closing port...
    0.261631 gphoto2-filesystem(2): resetting filesystem
    0.261647 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
    0.261658 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
    0.261670 gphoto2-filesystem(2): Internally deleting all folders from '/'...
    0.261683 gphoto2-filesystem(2): Lookup folder '/'...
    0.261695 gphoto2-filesystem(2): Found! / is 0xe263e0
    0.261710 gphoto2-filesystem(2): Recurse delete folder 0xe263e0//
    0.261726 gphoto2-port(2): Freeing port...
    0.261741 gphoto2-port(2): Closing port...
    0.261798 gphoto2-filesystem(2): resetting filesystem
    0.261813 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
    0.261825 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
    0.261836 gphoto2-filesystem(2): Internally deleting all folders from '/'...
    0.261848 gphoto2-filesystem(2): Lookup folder '/'...
    0.261860 gphoto2-filesystem(2): Found! / is 0xe263e0
    0.261872 gphoto2-filesystem(2): Recurse delete folder 0xe263e0//
    lsusb | grep Canon
    Bus 001 Device 005: ID 04a9:31cf Canon, Inc.
    ls -lR of /dev/bus/usb/001
    total 0
    drwxr-xr-x 2 root root 80 Dec 25 12:54 .
    drwxr-xr-x 10 root root 200 Dec 25 12:19 ..
    crw-rw-r-- 1 root root 189, 0 Dec 25 12:19 001
    crw-rw----+ 1 root camera 189, 4 Dec 25 13:13 005
    [root@dreki 001]# ls -lR
    total 0
    crw-rw-r-- 1 root root 189, 0 Dec 25 12:19 001
    crw-rw----+ 1 root camera 189, 4 Dec 25 13:13 005
    I am member of group "camera"

    Have you tried 'sudo gphoto2 --get-all-files' as a user or were you doing this as root?
    The errors mentions /dev/bus/usb/002/003 and your camera seems to be /dev/bus/usb/001/005. If I'm on the right track, check what device is this /dev/bus/usb/002/003.
    Last edited by karol (2011-12-25 14:48:40)

  • Problem with MySQL - WLS61:General error: select command denied to user: 'foo@lion.e-pmsi.fr' for table 'finess'

    Hi
    I've been trying to adapt and deploy an enterprise appliaction developped and deployed
    before under JBoss.
    My database is MySQL and I use Together Control Center for development and hot deployment.
    After having modified a lot of things (the seamless protability seems always sor
    far :), now I get some strange error when deploying from withing Together Control
    Center 6.0:
    WLS61:General error: select command denied to user: '[email protected]' for table
    'finess'
    Off course the user foo has all possible and imaginable rights.
    Does anybody have an idea on how to get around it ?
    Thanks
    Alireza

    Found the answer... email that went to junk mail. Hope this helps others!
    Hello Subscription User,
     Thanks for choosing ClearDB for your database needs. We appreciate your business and 
     your interest in our services. Our commitment to all of our customers is that we 
     provide a high quality of service on all of our database systems. Part of that 
     commitment includes the enforcement of database size quotas in order to ensure 
     the highest quality of service for our customers.
     As such, we're sending you this automated message regarding one of your databases:
     Database: wp____
     Tier/Plan: Mercury
     Tier size quota: 20 MB
     This database has either reached or has exceeded its maximum allowed size for the 
     'Mercury' plan/tier that it currently belongs to. As such, our systems were forced to 
     place a read-only lock on it. We kindly encourage you to upgrade your database 
     to a larger tier/plan so that we can restore write privileges and enable complete 
     access to it from your account.
     If you feel that you have received this notification in error, please feel free 
     to contact us by replying to this email along with information that you feel may 
     assist us in assessing the situation with your database.
     Thanks again for choosing ClearDB,
     The ClearDB Team

  • Backup job failing with error ORA-12546: TNS:permission denied

    Hi All
    This is regarding one backup job running on windows server 2003 failing with below error.. when we are running this job manually that is running fine.. but not running from windows scheduler.
    its 9.2.0.1 and the 32 bit... windows 2003 64 bit
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12546: TNS:permission denied
    Please help.
    Edited by: 811427 on Sep 6, 2011 12:36 AM

    I assume you installed Oracle as "Administrator" user. If so, make sure you are running the job from the same user. Optionally open "services.msc" and go to the "ORCL Service" or whatever it may and check "Log on" tab. It should be "logon as" value should be "Local system". If you are using a domain then give credentials accordingly. Make sure you are part of "DBA" group.
    The ORA-12546 TNS:permission denied points to "Insufficient permissions to trace/log files" - check the trace/log destination is writable and requisite permissions are given.

  • ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied

    Guy's
    I am getting the same error
    my schema is having dba priveleges.
    CREATE OR REPLACE procedure abc_1 as
    begin
    dbms_scheduler.create_job(
    job_name=>'test_1',
    job_type=>'executable',
    job_action=>'/d02/oradata/shell_scripts/import_db_1.sh',
    enabled=>false,
    auto_drop=>true );
    end;
    CREATE OR REPLACE procedure abc_2 as
    --http://www.dba-oracle.com/t_dbms_scheduler_examples.htm
    --http://www.oradev.com/dbms_scheduler.jsp
    --http://forums.oracle.com/forums/thread.jspa?messageID=1352558&#1352558
    begin
    dbms_scheduler.run_job (job_name=>'test_1');
    end;
    SQL>
    SQL>
    SQL> exec abc_1
    PL/SQL procedure successfully completed.
    SQL> exec abc_2
    BEGIN abc_2; END;
    ERROR at line 1:
    ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at "SYS.ABC_2", line 6
    ORA-06512: at line 1
    any one got the solution.pl pass it.
    TIA,

    Hi,
    If rdbms/admin/externaljob.ora exists (in 10.2.0.3 and up) then external jobs run as the user and group specified in this file which should be nobody by default.
    If it does not exist (in releases prior to 10.2.0.3) then external jobs run as the owner of bin/extjob which should be nobody by default.
    Because external jobs run as a lowly privileged user (nobody) by default, you need to make sure that this user can execute your script. Things to check for include
    1) Use full paths to all binaries or scripts in job_action or program_action as well as calls inside the script.
    2) Make sure all scripts start with #!/bin/sh or another command interpreter
    3) Make sure all scripts have the executable bit set and are executable by the user that external jobs run as
    4) Make sure that all required environment variables are set. External jobs by default do not have any environment variables set. For example, for an oracle import or export or sqlloader script you may need to set oracle_home, oracle_sid, ld_library_path and path environment variables in your script or source the required Oracle environment script.
    Hope this helps,
    Ravi.

  • Permission denied (publickey,gssapi-with-mic). error while connecting

    HI,
    I am trying to connect from RAC 2 to RAC1;
    i am getting the error below.
    I have tried a number of options like modification ssh_config to checking permission etc.
    Please someone tell me what could be the problem?
    [oracle@falcen6b .ssh]$ ssh -v rac1
    OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to rac1 [192.168.100.218] port 22.
    debug1: Connection established.
    debug1: identity file /home/oracle/.ssh/identity type -1
    debug1: identity file /home/oracle/.ssh/id_rsa type 1
    debug1: identity file /home/oracle/.ssh/id_dsa type 2
    debug1: loaded 3 keys
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
    debug1: match: OpenSSH_4.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.3
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug1: Host 'rac1' is known and matches the RSA host key.
    debug1: Found key in /home/oracle/.ssh/known_hosts:2
    debug1: ssh_rsa_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey,gssapi-with-mic
    debug1: Next authentication method: gssapi-with-mic
    debug1: Unspecified GSS failure. Minor code may provide more information
    No credentials cache found
    debug1: Unspecified GSS failure. Minor code may provide more information
    No credentials cache found
    debug1: Unspecified GSS failure. Minor code may provide more information
    No credentials cache found
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/oracle/.ssh/identity
    debug1: Offering public key: /home/oracle/.ssh/id_rsa
    debug1: Authentications that can continue: publickey,gssapi-with-mic
    debug1: Offering public key: /home/oracle/.ssh/id_dsa
    debug1: Authentications that can continue: publickey,gssapi-with-mic
    debug1: No more authentication methods to try.
    Permission denied (publickey,gssapi-with-mic).
    [oracle@falcen6b .ssh]$
    [oracle@falcen6b .ssh]$

    Hi,
    Please refer the document
    http://docs.oracle.com/cd/B19306_01/rac.102/b28759/preparing.htm#BGBBDHIB
    Regards
    Hitgon

  • I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?

    I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?  I'm trying to get a trial version of CS5. 

    You do not need to involve Creative Cloud to install/try the trial version of CS5...
    You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

Maybe you are looking for

  • Missing WS_HEADER protocol in client proxy

    Hi! I generated a client proxy to consume services from 3rd party application, wanted to use standard SAP WS security with user and timestamp, logical port with security profile didn't work, used proxy's header protocol to create my own security head

  • Error while using motorola api

    Hi, I'm using the MOTOROLA's API to develop a MIDlet for an A835 phone. I used the location API (package com.motorola.location) to access the device's incorporated GPS. The emulator doesn't create problems, but when I try to dowload the MIDlet on the

  • Best practice for JSP app- multiple windows

    Hi all, I am looking for some opinions on whether I should construct my app so it uses multiple windows. eg. If someone opens a master record and clicks a link, I can display details in a seperate window. Obviously this has the advantage of being mor

  • Problem running my class file

    i'm using os x and when i compile my HelloWorld.java i have no errors and it creates the HelloWorld.class file in the same directory. now if i try to run the program from the terminal by typing in java HelloWorld it works file, but if i try to send t

  • Convergence and webmail problem

    Hello, I have a problem installing convergence 1 update 3 using webmail from messaging server 7 update 3. imsimta version Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep  1 2009) libimta.so 7.3-11.01 64bit (built 19:44:36, Sep  1 2009