Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-24-2010, 11:27 AM   #1
LQ Newbie
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Change home directory on a system using LDAP

Hi all,

I just started my summer internship at a company that uses (I am assuming) LDAP for login.

I was told to change my home directory from /home/username to /work2/username (I am assuming that work2 is a separate drive, but haven't taken the time to confirm that)

The problem I am having is that since my username isn't stored in /etc/passwd, usermod won't let me change my home directory.

PS I have access to root

Thanks for the help!
Old 05-24-2010, 11:48 AM   #2
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,626
Blog Entries: 35

Rep: Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805Reputation: 2805

Welcome to LQ!

Please don't take this personal but 'How to Ask Questions the Smart Way' would be one link you should look at to help us to help you in the future. A good quick read that will help you.

You should also look at 'Quick HOWTO : Ch31 : Centralized Logins Using LDAP and RADIUS' to get some background information. This link is part of LinuxHomeNetworking (LHN).

Just a few more links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
Getting Started with Linux
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking
Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
Old 05-24-2010, 07:52 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,814

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Never assume... I'd check first; they could be using NIS instead of LDAP. Also, it needn't be a different disk, could just be a new naming convention. Check to see if /work exists. In any case, you wouldn't specify the disk to do that.
Have a look at /etc/nsswitch.conf.

Last edited by chrism01; 05-24-2010 at 07:55 PM.
Old 05-26-2010, 12:57 PM   #4
LQ Newbie
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0

I ended up realizing it was NIS not LDAP and found a way to do it.

Thanks everyone


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Default Home Directory with LDAP and Automount greslore Linux - General 3 06-23-2009 04:32 PM
LDAP-With out Exporting Home Directory ajayan Linux - Newbie 2 10-03-2008 02:34 AM
Limiting ldap user on its own home directory sarajevo Linux - Server 1 08-11-2008 12:36 PM
Home directory when logging in via LDAP on OpenSuse 10.3 Casket Linux - Software 0 03-18-2008 05:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration