[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)

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)

Similar Messages

  • [SOLVED] Authenticate with the current user instead of root on GNOME

    I am currently trying on Arch Linux. And after installing GNOME, I found that, whenever I want to change the administration settings, such as network, shared folders, date and time, users and groups, I am prompted with authentication of the root password. The current user is a wheel user, which is able to use sudo to work properly. What I want is to use the current user for authentication, so that I can lock the root password, just like Ubuntu distribution which does not need to user root password.
    Last edited by allencch (2011-03-29 00:18:26)

    I have solved the problem from the wiki. I didn't follow one of the step, because I thought it is not related to the GNOME, since there is no GNOME keyword. To make the authentication using the current user instead of root, one needs to edit
    /etc/polkit-1/localauthority.conf.d/50-localauthority.conf
    modify the line to
    AdminIdentities=unix-group:wheel

  • [SOLVED]Home directory confusion when running Emacs as root

    Hi, just set up my first Arch system.  I've installed emacs-nox, and it insists on using the .emacs file of the one normal user I have set up, even when I'm not logged in as that user.  Bits in that .emacs file which use a tilde to signify $HOME do point to /root when I'm logged in as root, causing various weirdnesses.
    Here's what --debug-init says when I run emacs as root; if there's anything apart from the complaint about the "missing" (not in /root) haskell-mode files, I'm afraid it means nothing to me
    edit: nope, all of that junk really was about the haskell-mode stuff, so I'm deleting it since that's "fixed" by copying that stuff to /root/.emacs.d.  Now --debug-init tells me nothing and I still have no idea why emacs insists on using the dotfile in /home/j
    Last edited by cuns (2011-12-25 23:21:06)

    I have this issue, too if starting emacs after doing a "su" - when logging in as root it works as expecte. Googling brought the emacs changelog:
    1987-05-12  Richard M. Stallman  (rms at prep)
        * startup.el (command-line): If running under `su',
        use user's original login name to get init file.
        Otherwise use $HOME.
    A workaround would be to define an alias like
    alias emacs='emacs -u root'
    in your root's ".bashrc" (/root/.bashrc).
    Hope that helps,
    greetings
    matse

  • [Solved]Boot from USB HDD - Root device doesn't exist. Major/minor

    My problem is that the kernel seems (or starts) to load, but then I get an error:
    Root device 'UUID=1234 . . .' doesn't exist.
    Attempting to create it.
    ERROR: Unable to determine major/minor number of root device "UUID=1234 . . .'
    You are being dropped into recovery shell
    I found a few links on the web and in the forums, but nothing that really solved it for me. The solved ones usually downgraded the kernel.  I haven't done that yet.  I thought I'd try here first.
    I have a 320GB USB HDD that I have been using to experiment with different linux distros.  I have a few working successfully (OpenSUSE,Mint,Ubuntu,Debian,Fedora,etc).  I'm very new at this but have been reading a lot and putting a lot of time into it.  I have legacy grub loaded on the MBR and use the menu.lst on my openSUSE partition to boot everything.  Because the partitions for some of the distros are so far into the disk I needed to create directories on openSUSE's /boot directory to contain the kernel and initrramfs files (like /boot/fedora).  This seems to work for the other distros.  I did the same thing for Arch.
    So when I installed Arch I haven't used the bootloader section of the installation.
    I'm using the 2011.08.09-netinstall-i686.iso Live CD.
    I tried a few things including:
    1.    changing the HOOKS in /etc/mkinitcpio.conf
        a.    adding usb to the "HOOKS"
        b.    removing and adding autodetect
        c.    adding and removing "sata_sil" (although I'm not even sure if my device uses it)
    2.    changing the kernel line:
        a.    from using "UUID=" to (hd0,1) to sdb1.
        b.    added rootdelay=8
    3.    repartition all of my arch partitions using cfdisk from my Live CD and reinstall. I used gparted on OpenSUSE to do it the first time.
    This may be connected. When I fdisk -l from the Arch Live CD I get extra data and an error for each of my arch partitions (and only my arch partitions):
    Disk does't contain a valid partition table
    When I fdisk -l from OpenSUSE I don't get the data paragraphs or errors about the arch partitions?
    Here is my /etc/fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    UUID=0e7556ef-b832-43e9-a8ba-c68dd2cd6143 /var reiserfs defaults 0 1
    UUID=510bb601-13c1-46ec-87c0-a800dd2efb8b / ext4 defaults 0 1
    UUID=cd78ab04-742d-4ba5-9727-90727de2dd14 swap swap defaults 0 0
    UUID=dc5685e3-35b0-46d4-b259-61f2530ff36a /home ext3 defaults 0 1
    And my HOOKS:
    HOOKS="base udev autodetect pata scsi sata usb filesystems usbinput"
    And my menu.lst:
    1
    default 0
    timeout 32
    gfxmenu (hd0,1)/boot/message
    ###openSUSE on sda2 - legacy grub
    title openSUSE 11.4 - Celadon - gnome
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.7-default root=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part2 resume=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part1 splash=silent quiet showopts nomodeset vga=0x314
    initrd /boot/initrd-2.6.37.6-0.7-default
    ###openSUSE failsafe on sda2 - legacy grub
    title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.7
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.7-default root=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part2 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.37.6-0.7-default
    ###floppy###
    #title Floppy
    # rootnoverify (fd0)
    # chainloader +1
    ###Fedora on sda5 - legacy grub
    title Fedora 15-Lovelock gnome
    root (hd0,4)
    configfile /boot/grub/grub.conf
    ###Mint on sda6 - grub2
    title Mint 9 Lucid Lynx gnome
    root (hd0,5)
    kernel /boot/grub/core.img
    savedefault
    boot
    ###PCLinux on sda7 - legacy grub
    title PCLinuxOS 2011.6 KDE
    root (hd0,6)
    chainloader +1
    ###Ubuntu on sda8 - grub2
    title Ubuntu 10.04.2 gnome
    root (hd0,7)
    kernel /boot/grub/core.img
    savedefault
    boot
    ####arch on sda10 - legacy grub
    title ARCH
    root (hd0,1)
    #root UUID=XXXXXXXXXX44c5a3cd-dcb5-4cf1-933e-7a8ebac2a992
    kernel /boot/arch/vmlinuz-linux root=UUID=510bb601-13c1-46ec-87c0-a800dd2efb8b ro rootdelay=8
    #kernel /boot/arch/vmlinuz-linux root=(hd0,9)
    #kernel /boot/arch/vmlinuz-linux root=/dev/sda10
    initrd /boot/arch/initramfs-linux.img
    savedefault
    boot
    ###Debian on sda11 - grub2
    title Debian 6.0.2.1 squeeze gnome
    root (hd0,1)
    kernel /boot/debian/vmlinuz-2.6.32-5-686 root=UUID=2b6052e2-ecdf-4796-81c8-b9e9142ca159 ro
    initrd /boot/debian/initrd.img-2.6.32-5-686
    savedefault
    boot
    ###Mandriva on sda12 - legacy grub
    title Mandriva 2011 KDE
    root (hd0,1)
    kernel /boot/mandriva/vmlinuz-2.6.38.7-desktop-1mnb2 root=UUID=5033f7fb-cac7-4db5-920c-c8bd2b51365f ro
    initrd /boot/mandriva/initramfs-2.6.38.7-desktop-1mnb2.img
    savedefault
    boot
    Here is my fdisk -l from OpenSUSE.  I'm not quite swift enough to mount the hard drive and use the script utility from the Live CD yet, at least not tonight:
    Disk /dev/sda: 320.1 GB, 320072932864 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142447 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000c3bbb
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 4208639 2103296 82 Linux swap / Solaris
    /dev/sda2 4208640 46153727 20972544 83 Linux
    /dev/sda3 46153728 87113727 20480000 83 Linux
    /dev/sda4 87115770 614031755 263457993 5 Extended
    /dev/sda5 87115776 128075775 20480000 83 Linux
    /dev/sda6 128077824 169037823 20480000 83 Linux
    /dev/sda7 169039872 209999871 20480000 83 Linux
    /dev/sda8 210001920 250961919 20480000 83 Linux
    /dev/sda9 250963968 291923967 20480000 83 Linux
    /dev/sda10 291924031 332886015 20480992+ 83 Linux
    /dev/sda11 332888064 373848063 20480000 83 Linux
    /dev/sda12 373848678 414992383 20571853 83 Linux
    /dev/sda13 414994432 435474431 10240000 83 Linux
    /dev/sda14 435474495 455956829 10241167+ 83 Linux
    /dev/sda15 455958528 578881535 61461504 b W95 FAT32
    /dev/sda16 578881599 614031755 17575078+ 83 Linux
    Disk /dev/sdb: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x95aa95aa
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 63 294889139 147444538+ 7 HPFS/NTFS/exFAT
    /dev/sdb2 294889140 312576704 8843782+ 7 HPFS/NTFS/exFAT
    That's it for now.
    Last edited by newbie55 (2011-09-23 22:19:58)

    I'm IN!  Thanks everyone for your suggestions!
    The arch system didn't like the identifier I was using for the root partition. By looking at the /dev/disk/by-id while the arch system was running, I could see what the system wanted me to call the partition.  So after the system error'd-out and I was in the recovery shell at the [ramfs /] prompt:
    # ls -lF /dev/disk/by-id > by-id.txt
    # vi by-id.txt
    I could have used any of the identifiers listed in the by-id (there were 3), by-uuid(1), by-label(1) or by path(1). I tried them all. I had to write these down by hand because it is a ram filesystem.
    The article that finally got me there is:
    https://wiki.archlinux.org/index.php/Pe … ice_naming
    Anyway my openSUSE grub menu.lst ended up like this:
    ####arch on sda10 - legacy grub
    title ARCH
    root (hd0,1)
    kernel /boot/arch/vmlinuz-linux root=/dev/disk/by-uuid/510bb601-13c1-46ec-87c0-a800dd2efb8b ro rootdelay=8 rootfstype=ext4
    initrd /boot/arch/initramfs-linux.img
    savedefault
    boot
    It's easy once you: 1. beat your head against the wall
                        2. read further
                3. repeat 1 and 2
    Back to the "Beginner's Guide",4 Post-Installation.  Yikes!

  • [SOLVED] Unable to login to root unless it's through another account.

    I'm fairly inexperienced with Linux and am having a frustrating problem.
    I've forgotten my root password (oh boy) and am experiencing some weird problems attempting to reset it.
    I have other accounts, which I can log in to, and they have sudo privileges. So I am not very restricted as to what I can actually do.
    So I tried to use "passwd root" to change my root account password.
    This allowed me to log in to root (at least I believe it is root) using "su" and the newly created password.
    However, when I reboot and try to log in to root from the normal log in screen, it claims I'm using the wrong password.
    I also tried logging in to root using "su" and then using "passwd" to change the root password. I got the same results as before.
    I even tried removing the root password from the "etc/shadow" file, though I'm really not familiar with how that file works in archlinux.
    I've searched around online, and stumbled across some similar topics in this forum, but all of them have worked around the problem by using a boot disc in some way.
    I would really like to know what exactly is going on with my system here and why this password confusion is happening. If possible, I'd really really like to reset my root password remotely.
    If this has been addressed before and I missed it, please link me to the old topic.
    Thanks for reading guys. Any help is appreciated.
    Last edited by bluekirby (2011-04-05 04:55:20)

    bluekirby wrote:If there were any location where I could deny people from logging in as root, where would that file be?
    I'm really hoping it's just something I edited months ago and forgot about.
    Take a look to this topic:
    https://bbs.archlinux.org/viewtopic.php?id=67753
    And try this to reset the password:
    http://www.howtoforge.com/how-to-reset- … knoppix-p2
    After that, only the users who knows(and are listed on /etc/sudoers) the root password will be able to do root jobs, like installing/removing packages or modify the filesystem.
    Note that if you use sudo you can use visudo to edit /etc/sudoers command to prevent or allow users to do root jobs, example:
    root ALL=(ALL) ALL
    # %wheel ALL=(ALL) ALL
    If you uncomment %wheel line all users in wheel group can do root jobs if they know the root password.
    But you can leave commented %wheel line and add users manually, example(for "edward" and "christine" users):
    root ALL=(ALL) ALL
    # %wheel ALL=(ALL) ALL
    edward ALL=(ALL) ALL
    christine ALL=(ALL) ALL
    By doing this,these two users(through sudo) and root will be allowed to do root jobs and nobody else
    NOTE: Editing /etc/sudoers through visudo is hardly recommended, please dont edit the file manually with nano,vi,vim,etc. USE "visudo"
    P.S. Reseting the password through a live distro is the most recommended way to reset the root password.
    Last edited by AurosGamma (2011-04-05 04:31:34)

  • How to handle "/9.2.0/root.sh as root from another window" in silent instal

    Hi,
    I was successful to start a silent installation of Oracle9iR2 using a responsefile on my System RHEL 3. But the installation ends soon and a wrong successful install message:
    Error :*** Alert: A configuration script needs to be run as root before installation can proceed. Please leave this window up, go run /opt/app/oracle/product/9.2.0/root.sh as root from another window, then come back here and click OK to continue. ***
    The installation of Oracle9i Database was successful.
    I use -ignorePatchConflicts for ignoring the patch conflicts. But How do I handle these issues. Where I have to run root.sh ... etc in teh Non Interactive Install.
    I am scripting solution for non interactive install and manual intervention to run these root.sh shell scripts at different points of install is not a good idea as it wont help me automate the install.
    Please let me know if anyone has solved this problem with -silent install.
    Thanks in advance.
    Senthil

    Thats me (OP) again:
    I tried setting:
    SHOW_ROOTSH_CONFIRMATION=false in the response file. But still no help. The installation exits at run root.sh prompt point. How I can effectively deal with it in a script?

  • How do I set the blank tab (+) to go to my home page instead of blank page when opend?

    How do I set the blank tab (+) to go to my home page instead of blank page when opened?

    You can do that by using an add-on such as [https://addons.mozilla.org/firefox/addon/2221/ NewTabURL] or [https://addons.mozilla.org/firefox/addon/777/ New Tab Homepage].

  • How do I make new tabs open to my specified home page instead of blank page?

    How do I make new tabs open to my specified home page instead of blank page?

    I generally like to avoid add-ons, and the second option is still an extra step - not opening tabs to the homepage, as requested (rather how to switch to your Home page after a tab opens to the blank page).
    Here's a wild idea: How 'bout a setting option in Tools > Options > Tabs for "Always open new tabs to my Home page" ?

  • NON-ROOT TO NON-ROOT ASSOCIATION??

    Hi,
    I have one AIR-AP1242AG-A-K9, and two AIR-AP1242AG-N-K9. I have already configure them to work as bridge.
    Root Bridge with  wireless-clients  ----------->     1   AIR-AP1242AG-N-K9
    Non-Root Bridge1 with  wireless-clients  --->      1   AIR-AP1242AG-N-K9
    Non-Root Bridge2 with  wireless-clients ---->      1   AIR-AP1242AG-A-K9
    I notice after reseting the root bridge or one of the non-root bridges that  when I type the command "sh DOt11 associations"  the results shows that there is an associatiation between the 2 Non-Root bridge. When this happend the connection of the clients associated to this APs is very unstable.
    as far as I know the association is just between Root and Non-Root bridges.
    I don´t know why this happend.
    In order to avoid this I disable in one of the non-root bridge (AIR-AP1242AG-A-K9) the option "Force Infrastructure Device to associate only...."
    Cisco's Docs show an example of config when there is one root bridge and one non-root bridge but in my scenario I have 2 non-root bridge and one root bridge.
    I would like to know if the config for my scenario must be  different from the simple scenario (1 root and 1 non-root).
    I hope any of you can help me.
    Regards

    Hi Scott,
    Thanks for your recommendations.
    The mac-address authentication option you recommend is the option shown as "Root Parent MAC 1" ,"Root Parent MAC 2 ....." on Setting---> Network interface???
    For root bridge , I should write down the MAC addres of the non-root bridge1  on Root Parent MAC 1 field and  on the field of Root Parent MAC 2, the  MAC of  the non-root bridge2 ?? ,  am I right?
    and for the non-root bridges I should just set on Root Parent MAC 1 just the MAC address of the root bridge???
    Regards,

  • Sometimes the url's don't update so when you press the "back button" it sends you to the home page instead of the last page visited

    A friend of mine has this webblog and I have never had problems viewing it before I downloaded the new version of firefox. However, once I downloaded the new version, I noticed that every time I press the "back button" after viewing a picture, it sends me back to the blog home page instead of the last page I was on or that I viewed. This also happens with some of the standard websites I visit not just the blogs.

    Right click the Back button and select the page you want to go back to.

  • Network Design - Root and Non root bridges

    Hi,
    We have a network set-up as the below image. Where the switches have STP enable to handle the muliple paths for the data to flow.
    What I would like to know is should the 2 bridges plugged into the same switch e.g Switch A (Bridge A and Bridge B) both be root bridges and (Bridge C and Bridge D) both be non root.
    Or should for example, Bridge A be a root and Bridge C a non root and Bridge B a non root and Bridge D the root?
    Similarly with the rest of the other bridges E, F, G and H
    Thanks

    Disclaimer
    The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.
    Liability Disclaimer
    In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.
    Posting
    Ah, I think I understand.  So the wireless bridges are "transparent" to the rest of the network.  They just convert wired to wireless and back again.
    If I have that right, we can ignore them and just consider your switches.
    In that case, it appears you have two L2 loops, those formed by the dual paths between switches A and B and between switches C and D.  From a topology standpoint, it doesn't seem to matter what switch you select as root and secondary root.  However, as switches B and C are the interior switches, I would suggest those as your root and secondary root switches.

  • 1242 as Root and Non Root

    Hi Everyone,
    I am setting up pair of 1242 APs as Root and Non-Root bridge, i am not able to find the Install Mode on the 1242 AP while setting the Non Root for Best signal.
    any help will be appreciated.
    HM

    Hi HM,
    AFAIK, we do not have the INSATALL mode on the 1242 AP if we are using it as ROOT and NONROOT.. this is available only on 1310 bridge or 1410 bridges.. not on 1242AP..
    lemme know if this answered your question..
    Regards
    Surendra
    ====
    Please dont forget to rate the posts which answered your question and mark it as answered or was helpfull

  • Officejet 5610 - can I connect it with the usb to a router home network, instead to connect to the c

    Hi, Is it possible to connect Offcejet5610 with usb to a router home network, instead to a computer?

    Yes, if the router supports USB printers (not just hard drives).  Also, the only function that will be supported will be printing, nothing else.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Does Firefox reset all the root certificates and root certificate settings whenever an upgrade is installed?

    Does Firefox reset all the root certificates and root certificate settings whenever an upgrade is installed?

    Root certificates are stored in the file nssckbi.dll and if you've disabled build-in root certificates then it is possible that they get re-enabled. There is however no reason to disable any of the build-in root certificates.
    Tools > Options > Advanced > Encryption: Certificates > View Certificates : Authorities

  • I'm migrating a WP site to BC. I want to use a web app for their Blog...is there any way to have the web app item show in the root url vs root-url/web-app-name/web-app-item-name?

    I'm migrating a WP site to BC. I want to use a web app for their Blog...is there any way to have the web app item show in the root url vs root-url/web-app-name/web-app-item-name?

    Hi Justin,
    There's nothing like that atm. Please see http://forums.adobe.com/message/4730854
    Cheers,
    -mario

Maybe you are looking for

  • How to execute BAPIs by getting the input from the user through the browser

    Hi, I have created a simple xMII transaction using BAPI. It is a simple BAPI with one input. Now i want the transaction to be executed by getting the input from the user through browser. Once the user enters the value and clicks on a button, I want t

  • "The application logic pro quit unexpectedly"

    Hola, ¿ alguien tiene alguna solución ante este mensaje de error ?. Tengo Logic Pro 7.2.3 (961.9) Mac OsX 10.4.11 ProApplication Support 4.0.1 instalados. Puede ser que tenga corrupto el PM Data (archivo de proyecto)??? Cómo puedo reconstruir el PM D

  • Software update for CS-10 for Mac OS X 10.6

    I see that a software update has been released for the CS-10 internet stick.  However, it appears to be for Windows users only. Is there any intention to release an update to support Mac OS X 10.6 (Snow Leopard)?  I am unable to use the CS-10 after s

  • Walkman app problem

    My Walkman app has an isuue, if I download a song and move it to another folder, the song's album art and info gets deleted and the app refuses to re-download it. Pls how to fix this.

  • Email app display problems

    See this: http://talk.sonymobile.com/t5/Xperia-M2-M2-dual-M2-Aqua/Email-app-display-problems/m-p/947710#M4735