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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-17-2010, 02:48 AM
|
#1
|
Member
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239
Rep:
|
How to automount NIS account's home dir to a different location?
Hi,
### problem:
Quote:
user account on NIS server: user
Home dir as set in /etc/passwd: /home/user
proposed mountpoint for NIS client home dir for 'user': /shared/home/user
|
- auto mounting to /home/user works fine
- BUT if i want to automount to different location; it still looks for /home/user directory to mount to. So I get an error and i get directed to the '/' dir.
- Is there someway for me to edit the passwd file that is being exported by the NIS server? because if I change the local passwd of the user in the NIS server then he wont be able to see his home dir when logging in locally. (although this does seem to be a good idea; since he wont need to login directly into the NIS server....)
Thanks!
|
|
|
01-17-2010, 06:01 AM
|
#2
|
Senior Member
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094
Rep:
|
How about mounting it at /home/user on the client but also having it accessible at /shared/home/user?
As root on the client
Code:
$ mkdir /shared
$ ln -s /home /shared/home
|
|
|
01-17-2010, 07:49 AM
|
#3
|
Member
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239
Original Poster
Rep:
|
ahhh soft links... thats very possible. Its a workaround but not the solution. thanks arizonagroovejet!
|
|
|
01-17-2010, 08:57 AM
|
#4
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
On the box which is the NIS master server you can modify the user settings. If you use adduser you can change the home directory. Man adduser is more accurate than I am, so check that.
NIS intercepts adduser calls so the YP databases are updated whenever you run adduser. If that doesn't work, run make in /var/lib/yp. You might also have to restart NIS on the server.
You must login again on the client for the changes to propgate.
jlinkels
|
|
|
All times are GMT -5. The time now is 02:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|