Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I use a USB hard drive to store all my backups. All files and directories on this drive are owned/grouped by my user, except one directory which I use to store partition image files created with the program Partimage. These gzip files are created as root and must remain that way if they ever need to be used (ie. to restore a partition). The directory they live in is also owner/group root. Non-root access is read-only on this directory.
My question is, can problems arise if a directory owned by root resides on a partition in which all other files/directories are owned by user, and which is normally mounted by user (I only mount this partition as root when creating/deleting image files)?
The problem I'm thinking of is root taking ownership of files normally owned by user. No programs are run from this drive but is it still a potential problem, say, when root mounts the drive?
I used to have the image files on their own partition on this drive, but found it cumbersome and a waste of disk space, so I'd prefer not to go back to that.
I don't think so. I have no definite evidence, but a couple of good examples on my filesystem.
- I have a second HDD for data storage. Apart from the foldes I use as normal user, there is a lost&found folder belonging to root.
- Whenever I throw anything away as root it goes into .Trash-root on the partition I deleted it from.
All partitions are mounted at bot so not by a normal user and there are never any conflicts.