Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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:~#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.