LinuxQuestions.org
Review your favorite Linux distribution.
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 04-20-2005, 01:01 AM   #1
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
NFS: debian server and suse9.2 client


sharing /mnt on debian sarge
mounting to /home/user/nfs on suse9.2

problem:
can see and copy the contents of /home/user/nfs but i want to write to this directory.

on debian /etc/exports
/mnt 192.168.2.102(rw) #no space to between 102 and (rw) rite?

edited /etc/hosts.allow and /etc/hosts.deny according to http://www.tldp.org/HOWTO/NFS-HOWTO/...ml#SERVERINTRO

fstab on suse9.2 is
192.168.2.100:/mnt /home/user/nfs nfs rw 0 0

since i had allowed rw on debian and include rw in suse fstab. why cant i write to this shared folder? i even tried as suse's root but failed too.

wassup man? any idea?
 
Old 04-20-2005, 07:35 PM   #2
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
is there user syncronisation between the hosts? does the user accessing (attempting to write ) exist on the nfs server? does the user have the same userid? does the remote user have write access to the directory?
 
Old 04-21-2005, 07:31 AM   #3
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mrGenixus
is there user syncronisation between the hosts? does the user accessing (attempting to write ) exist on the nfs server? does the user have the same userid? does the remote user have write access to the directory?
user syncronisation?
if the client can see the server shared folder. i guess there is.

I haf two different userid on the two machines.
i even tried used Suse root to write into /home/user/nfs but failed.
anyway i tink this does not matter bcuz linux looks at the IP addresss. only Windoze do not allow 2 different Machine Names on the LAN. I hope i m rite.

remote user access?
yes, i allowed rw access on Debian /mnt 192.168.2.102(rw) .
 
Old 04-21-2005, 07:42 AM   #4
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
I don't think you understand. Root is typically restricted in 'old' unix protocols like nfs, I wou;dn't exepct root to work quite right. Also, be aware that nfs also uses the file system permissions, not just the ones specified in /etc/exports. if the fie is read -only, the file is read-only. you need to make sure that every user trying to red, write or xecute (including trasvering directories) has permission to do so a the file system level. This also means that you need to use the same user-id for both not-root users on each system. your /etc/passwd file needs to mostly match. as far as unique machine names, this doesn't matter at all, but that's not what I'm talking about. I'm talking about file permissions. for example:

what is the output of
Code:
ls -l /home/usr/nfs
what is the output of
Code:
cat /etc/passwd
on each machine?
you refrenced this howto:
http://www.tldp.org/HOWTO/NFS-HOWTO/...ml#SERVERINTRO
did you bother to finish it?
http://www.tldp.org/HOWTO/NFS-HOWTO/...eshooting.html

P.S. 'correct' (rite) is spelled right
 
Old 04-21-2005, 09:55 AM   #5
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
yeah u r right, i did not read the troubleshooting...
thanx for reminding, i tink i shld get the username mappings correct first.
this is so difficult for a newbie...

on suse client,
#id penguin
uid=1000(penguin) gid=100(users) groups=100(users),16(dialout),33(video)

on debian server,
#id dolphin
uid=1000(dolphin) gid=1000(dolphin) groups=1000(dolphin),20(dialout),24(cdrom),25floppy, 29(audio),44(video),46(plugdev)
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
NFS hangs (server: 2.4.21, client: 2.6.6) grabner Linux - Networking 0 05-31-2004 12:55 PM
NFS Client Server software? neilcpp Linux - Networking 5 02-07-2004 11:59 AM

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

All times are GMT -5. The time now is 07:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration