LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting $HOME in RHEL 6 (https://www.linuxquestions.org/questions/linux-newbie-8/setting-%24home-in-rhel-6-a-4175487524/)

cowmoo32 12-10-2013 01:51 PM

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.

vl23 12-10-2013 02:14 PM

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.

cowmoo32 12-10-2013 02:25 PM

Thanks, that at least gives me something to look into. This is why I hate RHEL.

vl23 12-10-2013 02:36 PM

Quote:

Originally Posted by cowmoo32 (Post 5078571)
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.

cowmoo32 12-10-2013 03:18 PM

Quote:

Originally Posted by vl23 (Post 5078576)
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.

John VV 12-10-2013 03:26 PM

RHEL 6 is not yet using SystemD
it still is a SystemV setup

SAbhi 12-11-2013 02:52 AM

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.

JJJCR 12-11-2013 03:20 AM

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.

vl23 12-13-2013 12:44 PM

Quote:

Originally Posted by John VV (Post 5078595)
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 (Post 5078835)
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.

cowmoo32 12-16-2013 11:45 AM

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.


All times are GMT -5. The time now is 06:32 AM.