LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 10-25-2006, 11:46 PM   #1
xmrkite
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: Reputation: 30
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
 
Old 10-26-2006, 01:32 AM   #2
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
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.
 
Old 10-26-2006, 04:48 AM   #3
fozner
Member
 
Registered: Aug 2006
Posts: 147

Rep: Reputation: 16
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.
 
Old 10-26-2006, 09:01 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 10-26-2006, 10:00 AM   #5
xmrkite
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: Reputation: 30
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.
 
Old 10-26-2006, 10:51 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 10-16-2008, 04:31 AM   #7
gcy
LQ Newbie
 
Registered: Jun 2007
Distribution: gentoo
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem root ( / ) mounts read only at boot, can't re mount RW TheMusicGuy Debian 10 07-25-2006 06:14 PM
Fedora core 3 apparently not remounting root filesystem read-write during boot amundsen_eric Fedora 3 05-17-2005 05:46 AM
RH9 "remounting root filesystem in read-write mode" ChrisHax Linux - Newbie 3 07-23-2004 09:54 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM
Read-only root filesystem at the boot karimson Linux - General 0 03-20-2003 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration