Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-25-2006, 11:46 PM
|
#1
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Rep:
|
How can I have: Root has Read-Write, user has read only for the boot filesystem?
Hello. I want to have it so that the user can simply just power off the linux box without there being any problems.
Now I'm new to linux, so correct me if I'm wrong, but I believe I need to do this:
/dev/hda1 - swap partition
/dev/hda2 - linux OS partition (DSL Linux)
/dev/hda3 - User account partition (/home/dsl)
I want /dev/hda2 to be read only and the user "dsl" would be able to save all his stuff to /dev/hda3 aka /home/dsl or something like that.
How can i do it so that when root logs in, he can read and write to the filesystem (install programs, change settings, all that good stuff)?
If this is not possible, what are my options (and how) for making the entire /dev/hda2 partition read-only?
-Thanks
|
|
|
10-26-2006, 01:32 AM
|
#2
|
Member
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Rep:
|
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.
|
|
|
10-26-2006, 04:48 AM
|
#3
|
Member
Registered: Aug 2006
Posts: 147
Rep:
|
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.
|
|
|
10-26-2006, 09:01 AM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
Quote:
Originally Posted by xmrkite
Hello. I want to have it so that the user can simply just power off the linux box without there being any problems.
|
You will always have the risk of loosing information. If acceptable, you can modify the <ctrl><alt><del> combination to shut down the box decently.
|
|
|
10-26-2006, 10:00 AM
|
#5
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
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.
Where do i make this change?
Last edited by xmrkite; 10-26-2006 at 10:01 AM.
|
|
|
10-26-2006, 10:51 AM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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.
|
|
|
10-16-2008, 04:31 AM
|
#7
|
LQ Newbie
Registered: Jun 2007
Distribution: gentoo
Posts: 26
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|