Path: utzoo!utgpu!news-server.csri.toronto.edu!me!eastick Newsgroups: comp.sys.sgi From: eastick@me.utoronto.ca (Doug Eastick) Subject: Re: Question about mv and su in 3.3.1 Message-ID: <90Dec15.143144est.19452@me.utoronto.ca> Organization: University of Toronto, Department of Mechanical Engineering References: <1990Dec11.190615.3551@bullet.ecf.toronto.edu> Date: 15 Dec 90 19:32:02 GMT manson@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= gid= % pwd /foo/bar % ^D % pwd /foo/bar % su - # pwd / # id uid=0(root) gid= # ^D % pwd /foo/bar I tend to use "su" only when I need to read certain files. I use "su -" for more major work.