Azuredatastudio: RPM package installs sqlops without execute bit set

Created on 17 Dec 2017  路  4Comments  路  Source: microsoft/azuredatastudio

  • SQL Operations Studio Version: 0.24.1

Steps to Reproduce:

  1. Install RPM package (see details below, specifically -rw-r--r--. 1 root root 1048 Dec 16 11:32 /usr/share/sqlops/bin/sqlops)
[user@localhost Downloads]$ sudo yum install ./2017-Dec-16-sqlops-linux-2.rpm 
[sudo] password for user: 
Loaded plugins: fastestmirror, langpacks
Examining ./2017-Dec-16-sqlops-linux-2.rpm: sqlops-0.24.1-1513452742.el7.x86_64
Marking ./2017-Dec-16-sqlops-linux-2.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sqlops.x86_64 0:0.24.1-1513452742.el7 will be installed
--> Finished Dependency Resolution
EfficiOS-RHEL7-x86-64                                                                                                       | 2.9 kB  00:00:00     
base/7/x86_64                                                                                                               | 3.6 kB  00:00:00     
code                                                                                                                        | 2.9 kB  00:00:00     
code/primary_db                                                                                                             |  37 kB  00:00:00     
epel/x86_64/metalink                                                                                                        |  17 kB  00:00:00     
epel/x86_64                                                                                                                 | 4.7 kB  00:00:00     
epel/x86_64/updateinfo                                                                                                      | 857 kB  00:00:00     
epel/x86_64/primary_db                                                                                                      | 6.1 MB  00:00:06     
extras/7/x86_64                                                                                                             | 3.4 kB  00:00:00     
google-chrome                                                                                                               |  951 B  00:00:00     
google-chrome/primary                                                                                                       | 1.9 kB  00:00:00     
scootersoftware                                                                                                             | 2.9 kB  00:00:00     
updates/7/x86_64                                                                                                            | 3.4 kB  00:00:00     

Dependencies Resolved

===================================================================================================================================================
 Package                   Arch                      Version                                  Repository                                      Size
===================================================================================================================================================
Installing:
 sqlops                    x86_64                    0.24.1-1513452742.el7                    /2017-Dec-16-sqlops-linux-2                    356 M

Transaction Summary
===================================================================================================================================================
Install  1 Package

Total size: 356 M
Installed size: 356 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : sqlops-0.24.1-1513452742.el7.x86_64                                                                                             1/1 
  Verifying  : sqlops-0.24.1-1513452742.el7.x86_64                                                                                             1/1 

Installed:
  sqlops.x86_64 0:0.24.1-1513452742.el7                                                                                                            

Complete!

[root@localhost Downloads]# sqlops
bash: /bin/sqlops: Permission denied
[root@localhost Downloads]# ls -al /bin/sqlops 
lrwxrwxrwx. 1 root root 28 Dec 16 13:16 /bin/sqlops -> /usr/share/sqlops/bin/sqlops
[root@localhost Downloads]# ls -al /usr/share/sqlops/bin/sqlops
-rw-r--r--. 1 root root 1048 Dec 16 11:32 /usr/share/sqlops/bin/sqlops
Bug

All 4 comments

2017-Dec-16-sqlops-linux.deb has the same problem.
After Installing 2017-Dec-16-sqlops-linux.deb, I needed to do "sudo chmod +x /usr/share/sqlops/bin/sqlops".

@mkt I didn't hit this problem with the DEB file, but let me setup a clean VM to verify again. Thanks for reporting the issue.

Verified this is fixed for both the new deb and rpm installers

Was this page helpful?
0 / 5 - 0 ratings