Operating System - Linux
1753281 Members
5607 Online
108792 Solutions
New Discussion юеВ

HOME variable ...where can i modify it?

 
SOLVED
Go to solution
Manuales
Super Advisor

HOME variable ...where can i modify it?

Hi ...
if i execute env command in server "a" appears:
/home/userone/

and, if i execute env command in server "b" appears:
/home/userone

the difference between both is "/" with userone in server "a", question is, where can i delete the slash "/" to HOME variable user in server "a" ?

This is because i need to have same HOME variable in all my servers because i'm executing the same shell with shame variables ...

thanks !!! <:D
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: HOME variable ...where can i modify it?

Hi Manuales:

Check the initial working directory field in '/etc/passwd'. I suspect that you hava a trailing slash ("/") character on server-A.

Regards!

...JRF...
Manuales
Super Advisor

Re: HOME variable ...where can i modify it?

My friend James !!!! :=)

Really you are an expert in unix !!!!!
thanks !!! that was the error !!!

God Bless you !! <><
Manuales.
Mark Ellzey
Valued Contributor

Re: HOME variable ...where can i modify it?

Manuales,

If you truly want the same home directory for users among different servers, you should look into NIS/NIS+. This enables you to desiginate a server that will be the 'home' server for all users. No matter which host they log in on, they will get the same home directory.

If you only have a few servers/clients, then it may not be worth implementing NIS, but if you have a bunch of servers/clients and a lot of users, it will definitely make your administrative life easier.

See man ypfiles(4) and man ypserv(1M)for more information.

Regards,
Mark