LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing ownership of downloaded file (https://www.linuxquestions.org/questions/linux-newbie-8/changing-ownership-of-downloaded-file-94648/)

ergo_sum 09-19-2003 05:53 PM

changing ownership of downloaded file
 
Hello All:

I've downloaded a big file and everything has gone well, except that I downloaded it as a user rather than as root.
Is there a way I can change the ownership of the file to root so I can go ahead and install it?

I'm using RH, distro 7.3 w/ kde.

Please let me know. I feel the blush of newbieness upon me, and it's pretty embarrassing.
Live and learn.

Anxiously awaiting a relevant reply.

Thanks,

ergo_sum

Saraev 09-19-2003 06:03 PM

1) chown user.group filename
( chown root.root downloadedFile)

2) Root can install it anyway. Root can do whatever it wants on the system, which is why it's good that you downloaded the file as a user. It means you weren't surfing as root (bad bad thing to do).

win32sux 09-19-2003 07:58 PM

just like Saraev says, root can work with files no matter what permissions a user sets to them...

these are the two main commands you use to work with permissions and owners in Linux:

http://www.die.net/doc/linux/man/man1/chmod.1.html

http://www.die.net/doc/linux/man/man1/chown.1.html

good luck!


All times are GMT -5. The time now is 12:33 AM.