I need to change the owner and group of a file or directory in Unix. How do I do this?

asked 12 Sep '11, 07:48

Jake's gravatar image

Jake ♦♦
181533174
accept rate: 98%


You can change the owner and group of a file or directory using a <changeOwnerAndGroup> action. Because these changes require administrative privileges, you will need to require installation by the administrator. You will have to include a section like the one below inside an action list section of your XML installer project file.

       <changeOwnerAndGroup>
           <files>*/somefile.conf;*/var/somefile</files>
           <owner>nobody</owner>
           <group>nobody</group>
       </changeOwnerAndGroup>
link

answered 12 Sep '11, 07:50

Jake's gravatar image

Jake ♦♦
181533174
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×6
×5
×1

Asked: 12 Sep '11, 07:48

Seen: 130 times

Last updated: 12 Sep '11, 07:50

powered by BitNami OSQA