Operating System - HP-UX
1833704 Members
2868 Online
110062 Solutions
New Discussion

how to change the file permission to my files under home dir

 
SOLVED
Go to solution
shan_7
Advisor

how to change the file permission to my files under home dir

Hi,

Is there any single command is there for changing permissions of directory and files . my home directory and files in that owning by somebody. so i need to change it that owner , group & permission.

Help me...

Shankar
3 REPLIES 3
Victor BERRIDGE
Honored Contributor
Solution

Re: how to change the file permission to my files under home dir

chmod -R option
Robert-Jan Goossens
Honored Contributor

Re: how to change the file permission to my files under home dir

# chown -R user:group directory
# chmod -R xxx directory

Regards,
Robert-Jan
Victor BERRIDGE
Honored Contributor

Re: how to change the file permission to my files under home dir

Wait a moment you are not owner?
Is it the ownership you want? then you will have to use chown -R but need to be root...
or cp -R the directory to newdirectory and then new directory shoud be owned by you.
Remove then or rename the original and replces it by the new.
Unfortunaely I cant test at the moment bu it should work...

All the best
Victor