The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Novell Wins Rights to Unix Copyrights - CIO India iBot UNIX and Linux RSS News 0 08-14-2007 03:30 PM
SCO Vows to Fight for Linux Rights - PC World iBot UNIX and Linux RSS News 0 08-13-2007 08:00 AM
FTP rights Burhan SUN Solaris 2 03-15-2007 04:22 AM
Unix access rights rudo UNIX for Dummies Questions & Answers 1 02-26-2007 03:40 PM
Groups Rights niasdad UNIX Desktop for Dummies Questions & Answers 3 07-16-2002 06:01 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-02-2005
Registered User
 

Join Date: Aug 2005
Posts: 4
UNIX - Linux NFS Rights need Help

Hello, I am running a Suse Linux server and I want to set up a NFS Server for a few Unix machines. For the root account at the unix client it works fine but it doesn't work for other users who have no root rights.

I've used the no_root_squash and the rw option in the etc/export file. My folder rights are set to 774. If I set the rigts to 777 the user can access the folder. But I don't want to give the 777 rights.

I've also tried to set up the same user name and password on the unix and linux computer, which doesn't work too and ich don't want to usw NIS......

Any help would be very great!

thx
Reply With Quote
Forum Sponsor
  #2  
Old 08-03-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
username and password don't count. NFS works of uid. If uid 123 owns the file then uid 123 can access it. When you add a user to multiple systems, use the same uid.
Reply With Quote
  #3  
Old 08-03-2005
Registered User
 

Join Date: Aug 2005
Posts: 4
hi, my folder is owned by different user and one group called cad. Is it not possible to access it by groupid?
Reply With Quote
  #4  
Old 08-03-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
Yeah groupid works too. Again nfs is checking the gids, not the name of the group.
Reply With Quote
  #5  
Old 08-04-2005
Registered User
 

Join Date: Aug 2005
Posts: 4
hi perderabo,

thank you, but that doesn't work too. I've used the option "no_root_squash" on etc/exports. If the option is not set, the connection will either not work for root. That ist maybe a reason why only root can access the nfs share. Is there a similar option for a common user?

thx a lot
Reply With Quote
  #6  
Old 08-05-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
Go to the nfs client and find a file that you cannot access but think you should be able to access via the group id. As an ordinary user who has trouble (not as root) do:
ls -nd thatfile
id -g
id -G
df -T thatfile
mount -lt nfs
and post the results.
Reply With Quote
  #7  
Old 08-09-2005
Registered User
 

Join Date: Aug 2005
Posts: 4
Hi, hope thats' ok:

ls -nd /CAD: drwxrwxr-- 7 0 1000 200 Aug 3 10:37 /CAD

id -g: 20

id -G: 20

df -T /CAD doesn't work, illegal option -T

mount -lt nfs doesn't work too, it is a hp-ux machine,

Big THX








Quote:
Originally Posted by Perderabo
Go to the nfs client and find a file that you cannot access but think you should be able to access via the group id. As an ordinary user who has trouble (not as root) do:
ls -nd thatfile
id -g
id -G
df -T thatfile
mount -lt nfs
and post the results.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0