LinuxQuestions.org
Review your favorite Linux distribution.
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 12-10-2013, 02:51 PM   #1
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Rep: Reputation: 0
Setting $HOME in RHEL 6


I have a script that calls the $HOME path but the way our machines are set up, $HOME refers to the user's AFS space. How can I change it to a local directory? I have tried usermod -m -d with no luck

Code:
# /usr/sbin/usermod -m -d /home/testing/testuser/ testuser
usermod: user 'testuser' does not exist in /etc/passwd
Where testuser is the login of the person who needs the script to point to their local directory. We use kerberos to log in, so the machine isn't looking for users in /etc/passwd.
 
Old 12-10-2013, 03:14 PM   #2
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
Do you mean LDAP, iirc Kerberos is just an authentication mechanism, it can centralize security and authentication, but can't give you the same capabilities as LDAP, which can propagate user settings throughout the environment?
If you are using LDAP then you can't use the standard commands like usermod, there is a special subset of ldap commands that come with it, you'd need ldapmodify and iirc a special pam module.
 
Old 12-10-2013, 03:25 PM   #3
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Thanks, that at least gives me something to look into. This is why I hate RHEL.
 
Old 12-10-2013, 03:36 PM   #4
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
Quote:
Originally Posted by cowmoo32 View Post
Thanks, that at least gives me something to look into. This is why I hate RHEL.
Well you can always create the user, it will exist locally and use kerberos for authentication I suppose.
I am also willing to agree with you partway on the hating RHEL thing, especially with all the "cloud" crap and systemd stuff they'd been doing recently.
 
Old 12-10-2013, 04:18 PM   #5
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vl23 View Post
Well you can always create the user, it will exist locally and use kerberos for authentication I suppose.
I am also willing to agree with you partway on the hating RHEL thing, especially with all the "cloud" crap and systemd stuff they'd been doing recently.
I was wondering if that was also an option. I wasn't sure how that would work when they logged in but it's worth a shot.
 
Old 12-10-2013, 04:26 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
RHEL 6 is not yet using SystemD
it still is a SystemV setup
 
Old 12-11-2013, 03:52 AM   #7
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
There's nothing to hate in RHEL as long as you know what you are doing. LDAP has its own set of commands to make changes on its setup and normal users has their own user* commands.
 
Old 12-11-2013, 04:20 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Cool

Hate RHEL? but i suppose they gave you something to put on your rice bowl? Isn't it?

No RHEL, means nothing to support and nothing to work and nothing to put in the pocket at the end of the month.

Well, free choice... love or hate.. or just go with the wind..

anyway, check out this blog it might help: http://nixtechnica.blogspot.sg/2007/...ectory-in.html

or check out the video on my signature, i'm quite sure you are 500% more fortunate than the people out there, who's gonna spend Christmas and New Year with nothing at all.

Last edited by JJJCR; 12-11-2013 at 04:24 AM. Reason: edit
 
Old 12-13-2013, 01:44 PM   #9
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
Quote:
Originally Posted by John VV View Post
RHEL 6 is not yet using SystemD
it still is a SystemV setup
They (Red Hat) were still influential in developing the damned thing, Fedora has it and the RHEL 7 beta has it as well.

Quote:
Originally Posted by JJJCR View Post
Hate RHEL? but i suppose they gave you something to put on your rice bowl? Isn't it?

No RHEL, means nothing to support and nothing to work and nothing to put in the pocket at the end of the month.

Well, free choice... love or hate.. or just go with the wind..

anyway, check out this blog it might help: http://nixtechnica.blogspot.sg/2007/...ectory-in.html

or check out the video on my signature, i'm quite sure you are 500% more fortunate than the people out there, who's gonna spend Christmas and New Year with nothing at all.
Oh, so no, SuSE, no Debian, no ubuntu server, no Gentoo, Arch and a bunch of other distros that could run your stuff just as well as RHEL can?
And of course the BSDs can't be used on servers, and there are no such things as AIX, Solaris or HP-UX.
RHEL and CentOS are big, but they do not have, and should not have 100% of the market.
 
Old 12-16-2013, 12:45 PM   #10
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Well I tried adding a user in /etc/passwd and kerberos didn't like it. I'll do some reading on LDAP and see what I can do.
 
  


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
RHEL 6 Desktop or Workstation for home? sigep174 Red Hat 7 02-10-2013 10:53 AM
From RHEL 4.0, CUPS print to PC at home hal_davison Linux - Networking 1 10-24-2007 08:36 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
rhel for practice at home kapilmunjal Linux - Enterprise 5 05-07-2004 04:43 PM


All times are GMT -5. The time now is 04:28 PM.

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