1822276 Members
3847 Online
109642 Solutions
New Discussion юеВ

File Permission Change

 
SOLVED
Go to solution
Brent W. Moll
Advisor

File Permission Change

I need to change a file permission from this...

[sdatpp02][/u01/app/oracle/product/9.2.0.4/bin] #ll dbsnmp
-rwxr-xr-x 1 oracle dba 2404264 Sep 17 09:52 dbsnmp

to this:

rwsr-xr-x 1 root dba 1497980 Jun 12 21:04 dbsnmp

Thank you !!! :)
3 REPLIES 3
Marco Santerre
Honored Contributor
Solution

Re: File Permission Change

You can do it two ways :

chmod 4755 filename

or

chmod u+s filename
Cooperation is doing with a smile what you have to do anyhow.
Pete Randall
Outstanding Contributor

Re: File Permission Change

I believe this should do it:

chown root:dba dbsnmp
chmod u+s dbsnmp


Pete


Pete
A. Clay Stephenson
Acclaimed Contributor

Re: File Permission Change

chown root:dba dbsnmp
chmod 4755 dbsnmp

The '4xxx' sets the setuid bit.
If it ain't broke, I can fix that.