HOME and /mnt/home [SOLVED]?
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
HOME and /mnt/home [SOLVED]?
Bonjour,
HOME and(or) HOME?
/mnt/home?
~=/root? (as far as I know, the command `ls $HOME` gives the contents of /root...)?
How do I have to understand this strange thing and then explain it to new users?
Silly question?
Cordialement.
HOME and(or) HOME?
/mnt/home?
~=/root? (as far as I know, the command `ls $HOME` gives the contents of /root...)?
How do I have to understand this strange thing and then explain it to new users?
Silly question?
Cordialement.
Last edited by Argolance on Fri 25 Aug 2017, 17:10, edited 1 time in total.
-
- Posts: 1543
- Joined: Mon 22 Feb 2016, 19:43
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Thank you guys!
Cordialement.
I like it! But why the same name and such an ambiguity?foxpup wrote:/mnt/home is the first home. It is where the sytem is installed. It is in the outside world. It is like your house.
/root/ is the first place of your system. It is the inner home. It is the entrance. It is like the hall of your house.
Cordialement.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
HOME and HOME?
HOME and HOME?
Sorry, I can see only HOME and home.
Case is important.
Puppy's default user is root, for him HOME is /root
In other sytems root is not user, but administrator only.
User argo would have his HOME in /home/argo.
Sorry, I can see only HOME and home.
Case is important.
Code: Select all
# whoami
root
# echo $HOME
/root
#
In other sytems root is not user, but administrator only.
User argo would have his HOME in /home/argo.
The home directory is setup when a user is created. Puppy comes with user root pre-created with /root as its default (home) directory. Another user typical puppies have is user "spot" and its home ($HOME) typically is in /root/spot.
The home directories and users of a linux system can be viewed in the /etc/passwd file
Code: Select all
Usage: adduser [OPTIONS] USER [GROUP]
Create new user, or add USER to GROUP
-h DIR Home directory
-g GECOS GECOS field
-s SHELL Login shell
-G GRP Add user to existing group
-S Create a system user
-D Don't assign a password
-H Don't create home directory
-u UID User id
Code: Select all
leafpad /etc/passwd
If one is running with a savefile/folder the partition which hosts the puppy files is called /mnt/home. This is where the confusion comes in. Should not be called /mnt/home but should remain the name of the drive eg: /mnt/sda1. Either this or the description of the house icon on the desktop should be something else and perhaps the icon in itself should be replaced with a file explorer icon.
Hi,
To recap: Other distributions were modeled after Unix running from a MAINFRAME and being used by several groups and several users within each group. They have to distinguish between root (both the top of the operating system and the people having administrative privileges) and users (those who have limited privileges as to what they can look at and what they can do to the entire operating system and computer).
Corresponding to Window's Documents and Settings, each user is assigned a folder named, his/her Home Folder.
Moreover, originally computers (mainframes) only had one hard-drive. When peripheral hard-drives were added, the main hard-drive was named "Home".
Puppy was designed with the expectation that there would only be one user on an operating system, and that user would have root=administrative privileges. There was no reason to create a structure holding any 'user' folders. So, whatever "Documents and Settings" would have been placed in /user on a Multi-user system, was simply placed in /root. Since /root is the user's home folder, it is referred to as 'home'.
referring to /mnt/home as Home, was just a carry-over of previous terminology.
If it helps, you can explain it this way.
/mnt/home is like your hometown.
/root (as home) is like the actual home you live in.
What really adds to the confusion is the dual usage of root. It refers to both the top level of a drive/partition, and the top level of an operating system. "Everything hangs from root". Root was a very poor word choice. The only time I can envision the roots of a tree being at the top is after a hurricane.
mikesLr
To recap: Other distributions were modeled after Unix running from a MAINFRAME and being used by several groups and several users within each group. They have to distinguish between root (both the top of the operating system and the people having administrative privileges) and users (those who have limited privileges as to what they can look at and what they can do to the entire operating system and computer).
Corresponding to Window's Documents and Settings, each user is assigned a folder named, his/her Home Folder.
Moreover, originally computers (mainframes) only had one hard-drive. When peripheral hard-drives were added, the main hard-drive was named "Home".
Puppy was designed with the expectation that there would only be one user on an operating system, and that user would have root=administrative privileges. There was no reason to create a structure holding any 'user' folders. So, whatever "Documents and Settings" would have been placed in /user on a Multi-user system, was simply placed in /root. Since /root is the user's home folder, it is referred to as 'home'.
referring to /mnt/home as Home, was just a carry-over of previous terminology.
If it helps, you can explain it this way.
/mnt/home is like your hometown.
/root (as home) is like the actual home you live in.
What really adds to the confusion is the dual usage of root. It refers to both the top level of a drive/partition, and the top level of an operating system. "Everything hangs from root". Root was a very poor word choice. The only time I can envision the roots of a tree being at the top is after a hurricane.
mikesLr
Well, we all need a bit of clarification from time to time!Argolance wrote:It shows that things are not so obvious and need some explanation/clarification.
tallboythis forum wrote:Our users have posted a total of 953491 articles
We have 37571 registered users
There have been 30985 users online since yesterday
True freedom is a live Puppy on a multisession CD/DVD.