Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing an attribute to a file

Status
Not open for further replies.

isonlyme

Programmer
Apr 20, 2002
171
PR
hi all,

I'm not an Unix guru, hope someone can help me.

I'm trying to run this command

lsnrctl dbsnmp_start

but nothing happens and when i check the status it says "NOT RUNNING" in the documetation says that i have to see this output:
-rwsr-xr-x 1 root dba 5881208 Nov 14 2000 dbsnmp

but i have this:

-rwsr-s--- 1 root dba 5881208 Nov 14 2000 dbsnmp

I'm trying to run this command with a oracle user.

question:

How can i change the rights to put it like i wanted? and witch iser i have to change it and run it?

thanks in advance
 
You have to be root to change the permissions on this file because root owns it.

The old, octal way of doing it would be: chmod 6755 dbsnmp.
 
Hi,

Just follow the command below to change the file permission, i think you need the executive permission on this file.

chmod 777 <filename>

enjoy. Hanwant Verma
Software Engineer
London, UK
 
Hanwant, using chmod 777 will open the file all the way up and will give you rwxrwxrwx. Wilfredo said he need the permissions to be rwsr-xr-x.

So, again, the command actually should be chmod 4755 dbsnmp (slightly different from my original message).
 
thanks for the help guys,

Actually bi was right chmod 4755 did gave me the rights i need it but is also helpful the chmod 777 cuuse theres other files that i need with full rights

thanks again both!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top