The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mount -o llock -F nfs vs mount -F nfs KhawHL UNIX for Dummies Questions & Answers 1 01-16-2008 12:48 AM
Mount a DVD janet AIX 1 04-04-2006 12:35 PM
one of the mount pts 100% matrixmadhan UNIX for Advanced & Expert Users 6 09-15-2005 09:54 AM
mount mcaelbukch UNIX for Dummies Questions & Answers 1 12-13-2001 06:09 PM
how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command? soulshaker UNIX for Dummies Questions & Answers 4 07-18-2001 02:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-24-2007
jess_t03 jess_t03 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 59
NFS Mount UID and GID

I have a truble with NFS mount.
When i mount remote dir, then all permissions changes!
For example:
Code:
# mkdir /data
# mount 10.1.1.100:/var/data /data
# ls -l /data
drwxr-xr-x   7 nobody     nobody         5632 Oct 22 14:55 file1
drwxr-xr-x   4 nobody     nobody          512 Oct 22 14:55 file2
....
Or on other servers :
Code:
# mkdir /arch
# mount 10.0.0.1:/odb0/arch /arch
# ls -l /data
drwxr-xr-x   7 kripton     dba         2331 Oct 22 14:55 file1
drwxr-xr-x   4 kripton     dba          314 Oct 22 14:55 file1
....
Nothing user kripton on remote host not present ! (sorry for my bad english).

NFS mount inherits permission UID and GID (digital value), but from other machine these values have coincided under number of my user.

On remote host files have permissions oracle:dba and i want mount this directory with same rights.
Thanks
  #2 (permalink)  
Old 10-24-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by jess_t03 View Post
On remote host files have permissions oracle:dba and i want mount this directory with same rights.
Yes, NFS passes the numeric value for both gid and uid, the simplest solution is to have the gid and uid mappings consistent on all machines sharing the nfs mount.
  #3 (permalink)  
Old 10-24-2007
jess_t03 jess_t03 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 59
Ok, but it not good solve.
Why Solaris does't value --gid & --uid as in Linux? (For example RHEL)
Anybody know any other solves?
  #4 (permalink)  
Old 10-24-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Where are you expecting to fix up the uid/gid mappings, on the client side or the server side?

I can't easily see how it can be fixed on the server side given it can have multiple clients each with their own variations on the mapping.
  #5 (permalink)  
Old 10-24-2007
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,930
As you are now aware, different implementations of NFS have different UID/GID values.
In a heterogeneous environment, you need to ensure that UIDs and GIDs are consistent across the various systems otherwise UID/GID mismatches will occur.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0