LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2015, 04:32 PM   #1
LinuxPirate
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Rep: Reputation: Disabled
Is the user root home directory needed in linux


Since BSDs don't have a root user home directory, can I safely delete the root home directory in a linux system and will it affect the system? thx

Last edited by LinuxPirate; 11-07-2015 at 04:34 PM.
 
Old 11-07-2015, 04:36 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Nothing in /root is required to run the system. It is used for root logins, though.
 
Old 11-07-2015, 05:22 PM   #3
LinuxPirate
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Instead of deleting the /root directory, I did remove the root home directory from the /etc/passwd file.

I went from this
Quote:
root:x:0:0:root:/root:/bin/bash
to

Quote:
root:x:0:0:root::/bin/bash
I rebooted The system and it did boot fine. But when I logged in as root, there a few error messages coming up. Mostly failed to read errors, etc.

So I reverted back to my original /etc/passwd file and rebooted. Everything is back to normal again.

"But hey, that's what linux is for. tweaking and testing" But do it in a VM and not on your main system
 
Old 11-07-2015, 05:36 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,885
Blog Entries: 1

Rep: Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005
Quote:
Originally Posted by LinuxPirate View Post
Since BSDs don't have a root user home directory, can I safely delete the root home directory in a linux system and will it affect the system? thx
Why would you say BSDs do not have a root user home directory - they certainly do!

Why would you think it is, or is not, "safe" to remove it? Define "safe" in that context.

Do you have any actual reason for wanting to remove the root home directory, or are you mimicking a monkey pushing random buttons?

Quote:
Originally Posted by LinuxPirate View Post
"But hey, that's what linux is for. tweaking and testing"...
No, Linux is for using your computing hardware and your knowledge in tandem to perform some useful tasks. You may also tweak and and test and abuse and break it, but that is not what it is for.

Can you drive your car with loose lug nuts? Yes, for a while... but that is not what the car is for.

Can your 5 year old drive your car on the freeway? Again, yes, for some indeterminate distance...

Last edited by astrogeek; 11-07-2015 at 05:39 PM.
 
1 members found this post helpful.
Old 11-07-2015, 05:52 PM   #5
LinuxPirate
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I did read that linux is a hobbyist operating system?
 
Old 11-07-2015, 05:56 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,885
Blog Entries: 1

Rep: Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005Reputation: 2005
I'd say you read wrong, or incompletely, or you have been reading Bill Gates twisted memoirs.

You might want to do a little more reading for a better understanding.

Last edited by astrogeek; 11-07-2015 at 05:58 PM.
 
Old 11-07-2015, 06:54 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by LinuxPirate View Post
Since BSDs don't have a root user home directory, can I safely delete the root home directory in a linux system and will it affect the system? thx
Actually, I believe they do have a root directory... it is usually called "/".

The "/root" directory came about for the purpose of reducing (slightly) the chance of really bad mistakes.

It also gives the root login a place to save site local root scripts (cron jobs for instance) and someplace to keep notes about the system.
 
1 members found this post helpful.
Old 11-07-2015, 08:01 PM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,170

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
I did read that linux is a hobbyist operating system?
Oooooh! Have you heard of a company called Google? Guess what operating system they use to run most of their stuff on. Just about every company you can think of uses Linux to some extent on a high proportion of their servers.
I don't think this would happen if Linux was just a "hobbyist" Operating System.

All this of course doesn't mean that a hobbyist can't install a version of Linux and take it to bits to see what makes it tick.

OK, I'm OK, the hackles are going back down now. Maybe if I go and stand in a darkened room for a while...

Play Bonny!

 
Old 11-07-2015, 09:39 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,352
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
I did read that linux is a hobbyist operating system?
Are you saying that Google, for one, is just a hobbyist? Here's a list of a few other hobbyists.

Under the GPL, you are free to tweak and even break your personal Linux install any way you want, but to call Linux a "hobbyist" OS is not quite accurate.

Last edited by frankbell; 11-07-2015 at 09:40 PM.
 
Old 11-07-2015, 10:29 PM   #10
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
The important question is, why do you want to remove that directory? astrogeek asked that question, but you did not answer it. I, for one, am curious to know the answer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
User does int getting home directory in root home in ubuntu 10.04 lucid lynx sunrised24 Linux - Server 2 03-07-2012 10:21 AM
restoring desktop directory in /root (or any home directory) mel_lai Linux - Newbie 3 02-04-2008 04:13 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM


All times are GMT -5. The time now is 02:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration