Question about mv and su in 3.3.1
Doug Eastick
eastick at me.utoronto.ca
Sun Dec 16 06:32:02 AEST 1990
manson at bullet.ecf.toronto.edu (Bob Manson) writes:
>If I use su to become root while in my home directory, and I mv a file
>to /tmp, for example, who should own the file? Me, or root? Under
Depending if you do a "su" or "su -" you will get different results.
The latter effectively performs the same stuff a "login root" would
do. The "su" only changes some minor things.
Homework:
% pwd
/foo/bar
% su
% id
uid=<non-zero> gid=<something>
% pwd
/foo/bar
% ^D
% pwd
/foo/bar
% su -
# pwd
/
# id
uid=0(root) gid=<something>
# ^D
% pwd
/foo/bar
I tend to use "su" only when I need to read certain files. I use "su
-" for more major work.
More information about the Comp.sys.sgi
mailing list