LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-23-2008, 01:54 AM   #1
madivad
Member
 
Registered: Jan 2007
Posts: 70

Rep: Reputation: 15
NFS v SAMBA


Well, actually, this isn't an NFS v's SAMBA thread, it's more a "I've tried SAMBA, and got it working... Now I'm bored... Let's play with NFS" Thread... But that's too long :-)

Ok, I have found a QUICK way to play with NFS is simply to use the administration GUI for sharing folders. That seems to work quite nicely (maybe I should have been doing that instead of messing with the bland - but beautiful - command line).

What I want to know is, I know it is more "windows" like with permissions and how windows 'views' the share, but how do you administer users on it?

I mean, I don't actually have to go and create users on my solaris box to mimic my network, do I?

Is there an alternative to doing this? ie, I don't want anyone to be able to log onto this fileserver, except for administrators.

Could someone be so kind as to give me an NFS for dummies approach to users and security under NFS?
 
Old 03-23-2008, 05:15 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Not sure about what you mean with Windows like, but Windows has no native NFS support so if you want your Windows boxes to access shares, better to stick with SMB.

You certainly can have user accounts on the NFS server that do not allow their owners to log in. A common way would be to set the user shell to /bin/false.
 
Old 03-29-2008, 07:08 AM   #3
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
Not sure about what you mean with Windows like, but Windows has no native NFS support so if you want your Windows boxes to access shares, better to stick with SMB.

You certainly can have user accounts on the NFS server that do not allow their owners to log in. A common way would be to set the user shell to /bin/false.
Thanks, great info... /bin/false is exactly the sort of thing I was looking for.

How do I make it that anyone who has access to the network can have rw privileges all files in the share? ie, I don't care if "Dave" or "David" or "Administrator" logs into the samba shares, I want them all to be able to create new files/folders and delete or modify existing ones.

This is what I have at the moment, but it doesn't work:
Code:
[solaraid]
path = /solaraid
available = yes
browseable = yes
public = yes
writable = yes
I have tried "valid users" and even mapping windows user names to the owner name in solaris (username maps), but they didn't help either.
Code:
dave@solaris:~# smbstatus 

Samba version 3.0.27a
PID     Username      Group         Machine                        
-------------------------------------------------------------------
10164   dave          staff         flightsim    (10.1.1.32)
10163   dave          staff         amd3000      (10.1.1.30)

Service      pid     machine       Connected at
-------------------------------------------------------
solaraid     10163   amd3000       Sat Mar 29 23:00:20 2008
solaraid     10164   amd3200       Sat Mar 29 23:00:36 2008

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
10163        101        DENY_NONE  0x100001    RDONLY     NONE             /solaraid   .   Sat Mar 29 23:02:04 2008
10163        101        DENY_NONE  0x100001    RDONLY     NONE             /solaraid   .   Sat Mar 29 23:02:04 2008
10164        101        DENY_NONE  0x100001    RDONLY     NONE             /solaraid   .   Sat Mar 29 23:00:36 2008

dave@solaris:~#
 
  


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
can nfs and samba ? ashintoms Linux - Networking 1 07-12-2006 05:26 AM
Samba or NFS which is better? gnu noob Linux - Software 8 05-18-2004 02:07 PM
Samba vs nfs rtaft Linux - Networking 1 12-23-2003 04:51 PM
nfs and samba nevantrouble Linux - General 1 07-30-2003 02:31 PM
samba /nfs feind Linux - Software 2 03-27-2003 11:02 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:35 PM.

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