View previous topic :: View next topic |
Author |
Message |
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Tue Jul 02, 2002 3:04 pm Post subject: changing the user of a file... |
|
|
how do you change the user of a file (as root ofc) _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 02, 2002 3:06 pm Post subject: |
|
|
You mean change a file's ownership? chown _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Disquiet n00b
Joined: 14 Jun 2002 Posts: 48 Location: Christchurch, New Zealand
|
Posted: Tue Jul 02, 2002 8:48 pm Post subject: |
|
|
You probably also want to change the group of the file.
Use chgrp.
So for eg, if you want to change foo to be root's
chown root foo
chgrp root foo |
|
Back to top |
|
|
Oyarsa n00b
Joined: 01 Jul 2002 Posts: 73 Location: Mars
|
Posted: Tue Jul 02, 2002 9:35 pm Post subject: |
|
|
You can use chown to change the owner and group of a file as follows:
chown owner.group file _________________ Dew knot trussed yore spell chequer two fined awl ewer miss steaks. |
|
Back to top |
|
|
|