Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have 2 harddisks, and a very new SuSE 10 installation.
Suppose I have a user called test in the users group. At present its home directory is /home/test. This is on one of the harddisks, sda.
Now I have a partition on the other harddisk /other. I would like all my users to be on sdb, so that their home directories are /other/users/test for instance for the test user.
I have played around with YaST to create another user "toets" in
/other/gebruikers, but I would like to have it as /other/users/toets.
I would create a partition for the user folders, but mount it at /home. I think there are various processes that expect to find something at /home/username.
I do not typically put /home on a separate partition---I prefer to have data partitions. On these, the folders belonging to a specific user, gets mounted to --eg-- /home/username/docs. I also put thing like e-mail and browser profiles in the data partition(s)
Login as root, rename /home to /home1 (or something). Create empty /home directory.
Easy way to mount sdb1 to /home
1. Open Yast
2. Open Partitioner module
3. Select sdb1 and change mount point to /home
If You haven't sdb1 then You also need to create one partition on /dev/sdb
At the end copy all data from /home1 to /home.
Thanks for your help so far. I have looked at some of the other posts, actually even before I posted the original one.
What I actually want to know is whether there is a way that I could specify my user accounts as /other/groupname/username.
I don't quite want the whole /home on sdb1. I want sdb1 to remain as /other. Perhaps I will leave one user say test under /home on sda5. All the other users' files that will be on the system must be under /other/groupname/user.
Member tredegar already explained distro independend solution.
I see You are using OpenSuse. In that case you can take advantage of YAST.
2. Open "User and Group management" module
3. Select "user" tab
4. Double click on user you need to change home directory
5. Select "details" tab
6. change value in "home directory" field (in your case: /other/groupname/username)
7. Press OK.
If You want to change default home directory for all next created users, change "Defaults for New Users" in "User and Group management" module.
It is strange. For some reason it didn't work on Monday, (if I logged out, I couldn't log in as one of the new users that I had created) but then I tried again on Wednesday and everything was fine. Thank you!