0

I want to restrict access to stop_iq database shutdown utility to authorized users only under Linux, for example to the user 'dev' that belongs to group 'grp_dev'. I know the command is under this path:

/sybaseiq/IQ-15_4/bin64/stop_iq

And it could be also the same for start command:

/sybaseiq/IQ-15_4/bin64/start_iq

MSS
  • 159

1 Answers1

1

If the file has no special setuid flags (i.e. ls -l stop_iq shows only a mix of the chars "rwx-" in the first field) you can simply, as root, chown dev stop_iq and chmod u=rx,og= stop_iq so only user dev can execute the file. This assumes no one else but you can sudo to root.

meuh
  • 6,624