LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-15-2009, 09:34 AM   #1
emma_m
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
Question auto mount from network works but cant login as user


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
 
Old 07-15-2009, 10:12 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You should check that emma's UID and GID are the same on both PC's
You can do this by looking at emma's entry in the file /etc/passwd on both computers, and comparing the numbers in the third and fourth fields.
 
Old 07-15-2009, 12:38 PM   #3
bruceam
Member
 
Registered: Nov 2008
Location: Atlanta, Georiga
Distribution: Debian, Ubuntu
Posts: 88

Rep: Reputation: 17
To tredegar,
I have a similar situation with my network drives. I shall check out the /etc/passwd per your suggestion. If the numbers in the third and/or fourth column are different, can the files simply be edited? What are the consequences of editing the values in the client machine while leaving the server alone, and what are the consequences of editing the file on the server machine while leaving the client alone?

Thank you for your input.


Quote:
Originally Posted by tredegar View Post
You should check that emma's UID and GID are the same on both PC's
You can do this by looking at emma's entry in the file /etc/passwd on both computers, and comparing the numbers in the third and fourth fields.
 
Old 07-15-2009, 06:44 PM   #4
emma_m
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Smile

I checked /etc/passwd but thr were no problems.
I solved this problem by updating the configuration for nis.
 
  


Reply



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
auto mount home from network and login as user on Debian OS - tried /etc/fstab emma_m Linux - Software 3 07-16-2009 09:38 AM
auto mount to nfs home dir when user login to nis client lijianatusa Linux - Newbie 4 02-25-2009 11:38 PM
SFTP auto login works one way only? jchambers Linux - Newbie 6 01-03-2009 01:29 PM
Auto Mount FS on Login martincol Linux - Networking 2 08-14-2006 07:50 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:46 AM.

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
Open Source Consulting | Domain Registration