How can I have: Root has Read-Write, user has read only for the boot filesystem?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can't make the entire hda2 read only. Every user needs write permission in the /tmp directory. In the other directories it's already like you want it to be. At least should be on a sane system. No normal user can do any harm there.
Yeah what he said. You don't need 3 hard drives. Just one will suffice. That way you can use the other ones as alternative operating systems or backups. Permissions are automatically set when you install. When installing DSL to a hard drive, I usually boot the DSL CD in text mode with "dsl 2" and then run "dslinstall." Some people don't like this method but there is obviously more than one way to put a penguin in a box.
Hello, thanks for the replys, I think i was a little unclear.
Those 4 partitions are all on the one single hard drive (it's a laptop).
What i need to do is move the /home/dsl and the /temp directories to the third partition, aka hda3.
This way, only the operating system and programs are on hda2
User dsl will not be able to write to hda2, but he will be able to write to hda3.
Please confirm also that i will be able to just power the system down since there is no writing to the hda2 partition.
You might not write, but I'm quite convinced that the system still does (i.e. logfiles come to mind and probably some other stuff that I'm not familiar with).
The <ctrl><alt><del> change can be made in /etc/inittab.
Keep home on your separate partition. It's easier to back up your data, which is irreplaceable. You can always reinstall an OS, but if the data is lost, so are you.
You cannot make your system files read only; the system will cease to function if you do. It's being written to all the time. The arrangement you first described is the proper, and optimal one.
If you are paranoid about viruses etc install a virus checker and get /etc/cron.hourly to run it every hour.
PS. If your system will only let root shutdown, why not give the user sudo permission to shutdown ?
Last edited by gcy; 10-16-2008 at 04:34 AM.
Reason: Addition
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.