Click to See Complete Forum and Search --> : permissions query


Nick Wilson
08-10-2001, 12:24 PM
Hi folks
I've just written a simple script to get into MySQL on my host.
I did this: chmod u'x mysqlstart
My understanding is that only I and the root user have permission to exec that file right?
There are lots of other users on the host and I'm including my password in the script. Am I right or sadly mistaken?

Cheers

Nick Wilson

EyesWideOpen
08-10-2001, 01:25 PM
If you want only you and root to be able to read/write/execute that file you can do the following:

chmod og-rwx mysqlstart && chmod u+rwx mysqlstart

This will first take away read/write/execute permissions for 'others' and 'group' and then it will add read/write/execute permissions for 'user'.