0

I do su root and then nano -w /home/myusername/configfile ... will this cause any problems ? Will it change the ownership of configfile ?

l3gi0n
  • 107

1 Answers1

1

If the file does not exist yet then the new file will be owned by root.

If the file already exists, then it is just opened and the only attributes that change are atime and (if written to) mtime.

Hauke Laging
  • 90,279