LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-22-2006, 02:08 PM   #1
kazador
LQ Newbie
 
Registered: Mar 2006
Distribution: RHEL4
Posts: 8

Rep: Reputation: 0
Client side NIS login problem


Hi All.
Thanks in advance for any help.
When logging in as an nis user NIS1, I recieve an error "your session only lasted less that 10 seconds"
I am running RHEL 4 on both client and server, no firewall configured.
The rest of the error message follws.

(~/.xsession-error file)
/etc/X11/gdm/PreSession/default: Registering your sessio with wtmp and utmp
/etc/X11/gdm/Presession/Default: running: /usr/bin/X11/sessreg -a -w /var/run/utmp -x "/var/gdm/: 0.Xservers" -h""-l":0" "nis1"

(gnome-session:2949): libgnomevfs-WARNING **: unable to create ~/.gnome directory: Premission denied

could not create per-user gnome configuration directory `/rhome/nis1/.gnome2/`: permission denied
*********************************************************
The server is exporting:
/rhome/nisdir/nis1 *

client auto.master is as follows:
/rhome/nisdir/nis1 /etc/auto.misc
/rhome/nis1 /etc/auto.misc

client auto.misc
* -rw *:/rhome/nisdir/nis1/&
* -rw *:/rhome/nis1/&

ran authconfig

# mount <cr> shows
/rhome/nis1
/rhome/nisdir/nis1

mounted as autofs.



#ypcat passwd retuns with remote passwd file including user NIS1.
autofs has mounted the above exported directories.
Trying to over come the problem I have given the mounted directories rwx permissions.
#chmod -R 777 /rhome to allow user to have full access.

What am I missing?
As a newbie I searched the internet for clues as to what I am doing wrong. must be searching for the wrong thing.

Your help is greatly appreciated

Regards
Steve

Last edited by kazador; 06-22-2006 at 03:51 PM.
 
Old 06-24-2006, 01:59 AM   #2
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Location of NIS server

Hi kazador,

Your autofs configurations stated:

Quote:
* -rw *:/rhome/nisdir/nis1/&
* -rw *:/rhome/nis1/&
Where is your NIS server located? Are you running it on the same machine you are running your client from? If not you will need to specify the IP address or hostname of your NIS server as follows:

* -rw <IPADDRESS>:/rhome/nisdir/&
* -rw <IPADDRESS>:/rhome/nis1/&

If you are logging in as user 'nis1' then your exports in /etc/exports should be:

/rhome/nisdir *(rw,sync)

/etc/auto.master should be set to:

/rhome/nisdir /etc/auto.misc

/etc/auto.misc should be set to:

* -fstype=ext3 <IPADDRESS>:/rhome/nisdir/&
 
Old 06-26-2006, 04:39 PM   #3
kazador
LQ Newbie
 
Registered: Mar 2006
Distribution: RHEL4
Posts: 8

Original Poster
Rep: Reputation: 0
Hi SlackDaemon,

Thanks for the info.
The server is a separate device: ip 192.168.0.100
client: 192.168.0.101
subnet mask for both: 255.255.255.0
no firewall installed on client or server.
As far as specifying the ip address of the nis server, my understanding is that the * in place of the ip allows for a backup nis server to respond without having to modify the autofs config files if the primary server goes down.

In any case I modified the /etc/exports file on the server as recommended, as well as modifying the /auto.master and the auto.misc.

Unfortunately I was still unable to login as NIS1.


I tried another approach and was able to accomplish my goals, but not quite meeting the citeria.
I modified the auto.master as follows:
/rhome/nisdir/* /etc/auto.misc
/rhome/nis1/* /etc/auto.misc

and the auto.misc as follows:
* -fstype=ext3 *:/rhome/nisdir/&
* -fstype=ext3 *:/rhome/nis1/&

and as I stated before, I modified the exports file on the server to reflect your recommendations.

The above modifications allow me to login as NIS1.
I am wondering if configuring in this way will cause difficulties in the future.
Oh well just wondering in text.
Again thanks for you help, and if you have anymore suggestions please let me know.

Regards
Steve
 
  


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
Users can't login into NIS Client mrsharky Linux - Networking 19 02-28-2005 02:53 PM
NIS prob: added user to server, but can't login to client BrianK Linux - General 3 10-06-2004 04:29 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 03:51 AM
client side smtp problem f1uke Linux - Newbie 6 02-25-2003 01:04 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration