?
Solved

Confusion with using /etc/auto.home

Posted on 2010-11-17
6
Medium Priority
?
622 Views
Last Modified: 2012-08-14
hello. Im reading a book on using auto.master and auto.home to set up user directories. It makes sense - but this book says that it will not work if there is already a home directory on the server (the one where the user is logged in - not the one where the home directory actually is).
But I cannot see how to delete the home directory- do I need to do this for auto fs to work ?
Astin
0
Comment
Question by:astincrawford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:savone
ID: 34156264
I am not sure I understand your question... Why would you want to delete a home directory?

autofs is usually used to mount a second filesystem, instead of usiong /etc/fstab.

For example a CDROM, A USB drive, share on another server, or even a second hard drive.

You might want to change the users home directory for deleting it:

usermod -d /new/home/dir

then you should be able to safely delete the old one.
0
 

Author Comment

by:astincrawford
ID: 34156346
thanks for the reply. this is just to configure a users home directory, which is currently located on a windows server.
I've set up the /etc/auto.master to point to /etc/auto.home and set up the auto.home file - but it doesn't seem to mount - no errors are given, but I'd expect to see some files in the (remote) home directory and there's nothing there.
0
 

Author Comment

by:astincrawford
ID: 34156690
is there a place where I can see messages telling me if the client linux box cannot attach to the server with the home directory - /var/log/messages does not show anything ?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 23

Expert Comment

by:savone
ID: 34156897
Can you post the contents of your auto.master and auto.home files?

0
 
LVL 23

Accepted Solution

by:
savone earned 500 total points
ID: 34156959
/etc/auto.master should have something like this:

/home /etc/auto.home


and /etc/auto.home should have something like this:
home -fstype=cifs,credentials=/etc/samba/user1,uid=99,gid=99,rw ://servername/sharename

then make a file called /etc/samba/user1 (replace user1 with whatever you want just make sure its the same as the link in /etc/auto.home). Inside that file should be the following:
username=windows_username
password=windows_password

The make sure nobody but root can see that file:
chmod 600 /etc/samba/user1
0
 

Author Closing Comment

by:astincrawford
ID: 34163210
thanks. thats ideal.
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question