LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-17-2004, 11:15 AM   #1
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
NFS file permissions


Hello,

Is it possible to have n ftp type situation with NFS where by I can mount an NTF share and write to it, but it gets written on the server end as a diff. user. Just as file in ftp get wriitten as the user you logged into the ftp server as.

Please advise
Thank you.
 
Old 08-17-2004, 11:32 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Yes, you do it like this...

Quote:
cat /etc/exports

/mnt/whatever 192.168.0.0/24(map_static=/etc/users.map)
Quote:
cat /etc/users.map

# Mapping for client foobar:
# remote local
uid 0-99 - # squash these
uid 100-500 1000 # map 100-500 to 1000-1500
gid 0-49 - # squash these
gid 50-100 700 # map 50-100 to 700-750
So basically you are mapping one uid to another across systems.

Hope that helps.
 
Old 08-17-2004, 05:41 PM   #3
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Original Poster
Rep: Reputation: 30
I did what you suggested, googled up on it and all.

But I get this error:
Quote:
exportfs: /etc/exports:1: unknown keyword "map_static=/etc/foo.map"
 
Old 08-17-2004, 09:57 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hmmm, perhaps the version of NFS you have installed isn't current enough to support the use of that keyword?

Maybe you need to download and install a newer NFS on your system. Since you're using RH/Fedora, just do...

yum update nfs-utils

Also perhaps copy and paste your /etc/exports here to be sure there are no syntax errors.

Otherwise I can't imagine why it wouldn't work.
 
Old 08-18-2004, 12:12 AM   #5
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Original Poster
Rep: Reputation: 30
Well, I'm using FC2, and I just recently Yumi'ed everythign to an updated version. I have nfs-utils-1.0.6-22.

Here's the contents of my /etc/exports
Code:
/var/websites            192.168.100.11(rw,sync,map_static=/etc/exports_adminweb.map)
 
Old 08-18-2004, 12:43 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hmm, well something is certainly wrong. I looked all over Google to find a solution for this, but couldn't find much of anything about it. I know I have done this done before on RH, so I think perhaps something is broken.

I looked around Bugzilla and found a bug report about this EXACT problem with RH7, but that's been a couple of years ago and has long since been fixed. Unfortunately I have never done it with Fedora, so maybe it's broken again.

I have opened a bug report at Bugzilla.

https://bugzilla.redhat.com/bugzilla....cgi?id=130261

Feel free to add a comment letting them know you are showing similar results with FC2.
 
Old 08-18-2004, 02:14 PM   #7
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Original Poster
Rep: Reputation: 30
Ah. Yah I googled alot myself. Google did not return many hits. I also came up on the bug report on RH7. I was waiting for word from you before I filed a bug report myself.

Thanks for your help.
 
Old 08-18-2004, 03:40 PM   #8
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
I have Suse 9.1 , it has samba, and smbmount, I use uid=<current machine (local)> in smbmount command. so the machine can have file access . the root have access by default, as he does the mount.

may that helps (we have no the same distro but.........)
 
  


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
inherited permissions with NFS elbe3321 Linux - Networking 1 10-25-2005 01:13 AM
NFS Permissions Problem MattLaw Linux - Networking 2 11-11-2003 10:39 AM
NFS Permissions on files kpw4v Linux - Networking 7 10-08-2003 07:05 PM
NFS Permissions aqoliveira Linux - General 0 01-10-2002 03:08 PM
Mounted NFS permissions dlsw Linux - Networking 2 03-22-2001 01:46 PM


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