LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-24-2010, 11:27 AM   #1
svan16
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
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

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
LinuxSelfHelp
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
svan16
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
[solved]

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

Thanks everyone
 
  


Reply


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


All times are GMT -5. The time now is 03:21 AM.

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