LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   auto mount home from network and login as user on Debian OS - tried /etc/fstab (https://www.linuxquestions.org/questions/linux-software-2/auto-mount-home-from-network-and-login-as-user-on-debian-os-tried-etc-fstab-740121/)

emma_m 07-14-2009 09:29 PM

auto mount home from network and login as user on Debian OS - tried /etc/fstab
 
Hi all,

I recently changed my OS from Red Hat to Debian and I need to mount my home directory from the network automatically on reboot.

The following commands work perfectly on command prompt,
mount -t nfs 192.168.9.15:/home /home

and I have even made the required changes /etc/fstab and /etc/exports to automate the mount.

Now comes the weird part: After reboot , I am only able to to login as root . After logging into root though , I can browse to home/emma directory on the network.
I am unable to login using my username emma and access the files and shared softwares on the network. Any help on this is highly appreciated.

Thanks,
Emma

vazio 07-15-2009 02:19 PM

As the user when you mount automatically using /etc/fstab is root, could be the case where the directory mounted have root:root as owner. This could be the cause of your problems.

HTH

r0b0 07-16-2009 07:58 AM

Quote:

Originally Posted by emma_m (Post 3607895)
After logging into root though , I can browse to home/emma directory on the network.
I am unable to login using my username emma

Hi emma,

given the first sentence it looks like the /home directory is actually mounted. So your problem is that you cannot log in as a regular user. Could you look into /var/log/syslog or auth.log and check for some error messages regarding the failed login?

Are you trying to log in on a console? Or via ssh?

Robert

emma_m 07-16-2009 09:38 AM

I checked both /etc/fstab and /var/log/syslog again and it appeared that NIS client was not able to identify the NIS server through ypbind.
By adding the server IP address to YPconfig file I was able to solve this error.

Thanks for your help,
Emma


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