You are not logged in.

#1 2009-03-23 13:50:23

stabele
Member
Registered: 2008-12-22
Posts: 101

[SOLVED] /home/root instead of /root ?

I am going to use LVM and LUKS + dm-crypt. I will encrypt:
swap
/home
/tmp
/srv
maybe /var

I am thinking about /root - is it OK to set root's home to /home/root ? I know reasons why root home is not usually in /home/root, but for my workstation it seems to me like reasonable choice which spares me one more LVM volume. But I am not sure if I can do this same way as with usual user, maybe root's home location can not be moved that easily.

Last edited by stabele (2009-03-23 21:02:45)

Offline

#2 2009-03-23 14:01:16

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [SOLVED] /home/root instead of /root ?

It's a bad idea to move it.

Offline

#3 2009-03-23 14:20:31

stabele
Member
Registered: 2008-12-22
Posts: 101

Re: [SOLVED] /home/root instead of /root ?

Why? AFAIK the only reason for /root outside /home is situation when you can not mount /home. I can live with this, seems to me not so important at laptop workstation - if things go to banana I will boot from rescue CD/USB.

I am asking if there is any other reason and/or technical obstacle to have root's home in /home/root ?

Offline

#4 2009-03-23 14:27:27

xaff
Member
Registered: 2009-02-26
Posts: 64

Re: [SOLVED] /home/root instead of /root ?

the other reason is chrooting /home

Offline

#5 2009-03-23 14:27:39

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED] /home/root instead of /root ?

Directly - none that I know of, but ....
There may be scores of programs that rely on /root - so yes, I think it would be a bad idea to remove /root alltogether.

Offline

#6 2009-03-23 14:30:19

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] /home/root instead of /root ?

No problem.

A program that expect to have root home dir in /root is bad.

By the way: FHS (Filesystem Hierarchy Standard) establish that /root are optional, but is recomended default location.

Then set to /home/root and do a symlink (optional) in your /

One warning, if you have already configs files on /root, but is /home/root is created from zero, don't problem.

Offline

#7 2009-03-23 14:32:05

stabele
Member
Registered: 2008-12-22
Posts: 101

Re: [SOLVED] /home/root instead of /root ?

Thanks for advices, i will use /home/root + symlink as safety measure

Last edited by stabele (2009-03-23 14:34:17)

Offline

#8 2009-03-23 14:44:57

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] /home/root instead of /root ?

Ranguvar is right.

/root is on / because, when your partitions fill up, you'll still be able to log in as root but not as a regular user to /home.

Frankly, why would you want to 'improve' a system that has been tried times and again? This scheme - with minor adaptations - has been around for decades. Do you really think this hasn't been thought through?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2009-03-23 14:55:53

stabele
Member
Registered: 2008-12-22
Posts: 101

Re: [SOLVED] /home/root instead of /root ?

The reason I wrote in first post

I know reasons why root home is not usually in /home/root, but for my workstation it seems to me like reasonable choice which spares me one more LVM volume.

I will use ext3 or ext4 which reserves space for root.  I am not going against standards (thanks for them!), i am just using flexibility permitted by them - as djgera pointed out, /root it recommended but not required by FHS. I would never do this at shared computer or production server, I am open to reasons why it is bad idea but as of now I see none in my particular case.

Last edited by stabele (2009-03-23 15:05:29)

Offline

Board footer

Powered by FluxBB