Operating System - HP-UX
1748181 Members
3367 Online
108759 Solutions
New Discussion юеВ

Re: Reg : chmnod help reg

 
SOLVED
Go to solution
Mastan
Frequent Advisor

Reg : chmnod help reg

Dear All,

I logged in root user and created one directory (oracle_software).What is the command for giving full access to the ora92 user to the above directory.

Thanks in advance.

Regards,
Mastan.
9 REPLIES 9
S.N.S
Valued Contributor
Solution

Re: Reg : chmnod help reg

Mastan,

Why would you need to give full access permissions - that too in Oracle; don't you feel the risk?

Think thru; anyways

chmod 777 directoty-- give FULL : read, write, execute access to ALL!

HTH
SNS

"Genius is 1% inspiration, 99% Perspiration" - Edison
Mastan
Frequent Advisor

Re: Reg : chmnod help reg

Dear S.N.S,

Thank for your quick response on my query.
I already gave chmod 777 command, but still ora92 user unable to move the files in particular directory.
Kindly let me know the solution.

This is my kind request.

Regards,
Mastan.
Taifur
Respected Contributor

Re: Reg : chmnod help reg

Hi,

For giving full permission as below,
#chmod 777 directory
#chown -R root:root directory

http://docs.hp.com/en/B2355-90682/chown.2.html

Cheers//
taifur
S.N.S
Valued Contributor

Re: Reg : chmnod help reg

Hi Mastan,


I should have read your question twice:

From the man page (I dont know why the link does have this eg)
------------------------------------------
The following command changes the owner of the file jokes to sandi:

chown sandi jokes

The following command searches the directory design_notes and changes
each file in that directory to owner mark and group users:

chown -R mark:users design_notes
---------------------------------------------

In Your Case:

chown -R ora92:GROUP oracle_software

This should work out.

And, keep in mind that you haven give ALL access using the chmod 777 command, security issue.(Did u receive any error after running the command?)

Let Us know your progress!

HTH
SNS

NB: Thanks for the very quick points - however, points above 7 should not be given if the answer didnt help your question :-)
"Genius is 1% inspiration, 99% Perspiration" - Edison
madhuchakkaravarthy
Trusted Contributor

Re: Reg : chmnod help reg

hi

nothing special in it,, if u read man pages u can do by ur own

chmod 777 username

chown -R username:group filename

regards

MC
Mastan
Frequent Advisor

Re: Reg : chmnod help reg

Dear Taifur / S.N.S / Madhu,

Thank you very much for your suggestions.

Reagrds,
Mastan.
Raj D.
Honored Contributor

Re: Reg : chmnod help reg

Mastan,

Here you go:

1. # chown ora92:dba oracle_software
2. # chmod u+rwx,g+rwx oracle_software

-If you have dba group the group membership should be given to dba group as mentioned .Else you can make group membership to others.

To verify : Check with #ls -l

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Reg : chmnod help reg

Use -R with the commands for recursive change of the perm.
" If u think u can , If u think u cannot , - You are always Right . "
Mastan
Frequent Advisor

Re: Reg : chmnod help reg

Dear Raj,

Thanks for your reply

Regards,
Mastan.