: How do you change the owndership of a directory. I have a
: directory created with my first account but my other account cannot
: write into it. I don't want to use chmod to change this. Is there
: a way to give the ownership to a different user?
I resort to the following rather than tug on root's sleeve:
su second
cp -r subject_dir temp_subject_dir
su first
rm -r subject_dir
su second
mv temp_subject_dir subject_dir
you of course still need read and execute permission on subject_dir...
--
---------------------------------------------------------------------
| Tad McClellan, Logistics Specialist (IETMs and SGML guy)
| Lockheed Martin Tactical Aircraft Systems
| voice: (817) 763-6314
---------------------------------------------------------------------
|
| ... Because I command the sheriff of the county to lead you away to
| some remote spot, swing you by the neck from a knotting bough of
| some sturdy oak, and let you hang until dead.
|
| And then, Jose Manuel Miguel Xaviar Gonzales, I further command such
| officer retire quickly from your dangling corpse, that vultures may
| descend from the heavens upon your * body until nothing shall
| remain but bare, bleached bones of a cold*ed, *thirsty,
| throatcutting, *ing Son of a *.
|
| Judge Roy Bean (the* Judge)
---------------------------------------------------------------------