SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't seem to have a '/home/root' directory after installing Slackware 12.1.
Quote:
root@darkstar0:~# ls /home/root
/bin/ls: cannot access /home/root: No such file or directory
root@darkstar0:~# ls /home
ftp/ joegumbo/ lost+found/
root@darkstar0:~#
This is a new install and I don't want to mess things up too quickly , so...
Should I manually make a '/home/root' directory. This is the first time I remember ever not having a /'home/root' directory in Linux.
I asked mostly for my own edification. But, if I ever did need or want to log into root graphically (probably a once in a lifetime event), wouldn't there need to be a place for hidden files, settings and so forth?
Actually, I just tried logging in a root and 'startx'. KDE loaded and there was a home folder o the desktop. But the pathn is different. But, ~/root is /root.
This is not a complaint... just an observation. Things are a little different in Slackware.
The reason for ~/root to be /root is that sometimes /home is a different disk/partition, and if it breaks, the system administrator still has ~ in there, so he can work with no problem (and fix it).
The file system is designed so that files necessary to boot up the system are in locations guaranteed to be available to get the system up and running (e.g., the same partition that holds the kernel). For example, the 'mount' command is needed to access other partitions and if a directory such as /usr is to be mounted during bootup, 'mount' can't be located in /usr/bin/ -- this is why you find 'mount' in /bin (/bin is always hard-bound to the / partition, never mounted).
Likewise, the root user account is necessary to get things started (init and startup scripts run as root) and it makes sense that root's home folder is on the same partition that holds the kernel (i.e., the root partition "/" ).
The home folders for other users are not needed during the boot process; placing them in /home/ allows that directory to be located on a separate partition and mounted after all of the critical stuff has been initialized (the /home partition might even be on a different server in a network).
Also just to clarify, when people say "~/root" I think they really mean "~root". The syntax "~/root" refers to a directory named "root" under the current user's home directory, while "~root" refers to the actual home directory of the user "root".
It makes a hell of a lot of since to have root's home directory not contained in the home directory as one of the posters mentioned that the /home directory could be on a different partition/disk. I have this setup on my home server: a RAID setup mounted as /home and the rest of the system on a "small" 120GB hard drive.
Re: [SOLVED] /home/root does ot exist
- go to System->Administration->Users and Groups
- click on the "root" user, and click properties
- choose the Advanced tab and change '/home/root' in "Home directory" to '/root'.
You may also want to check some of the paths mentioned in this thread about SlackWare from 1999:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.