LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 10: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, 10:48 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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, 06:52 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 06:55 PM.
 
Old 05-26-2010, 11:57 AM   #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



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 03:32 PM
LDAP-With out Exporting Home Directory ajayan Linux - Newbie 2 10-03-2008 01:34 AM
Limiting ldap user on its own home directory sarajevo Linux - Server 1 08-11-2008 11:36 AM
Home directory when logging in via LDAP on OpenSuse 10.3 Casket Linux - Software 0 03-18-2008 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 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
Open Source Consulting | Domain Registration