Configuring the OpenSolaris CIFS Server in Workgroup Mode [Update July 4th 2008: This article was written prior to the release of OpenSolaris 2008.05, and I used the term OpenSolaris sloppily as I really meant Solaris Express Community Edition, codenamed "Nevada". If you take a look here the different downloads available are explained. These instructions are equally applicable to both distributions, but depending on what Solaris Express Community Edition package cluster you install you may not have the SMB server packages (I always install everything, so I cannot be more precise than that). In the case of OpenSolaris 2008.05 you will need to add the packages SUNWsmbkr & SUNWsmbs from the repository using Package Manager, or using the pkg install <pkgname> command.] This article documents a quick and simple process showing you how configure the OpenSolaris CIFS Server in Workgroup Mode. I am working on a Sun Fire X4500 with Solaris Nevada build 86 installed.... root@isv-x4500b # uname uname uname uname -a SunOS isv-x4500b 5.11 snv_86 i86pc i386 i86pc I already have a ZFS storage pool called "tank" created, so here goes: 1. Enable the CIFS server 1. Enable the CIFS server 1. Enable the CIFS server 1. Enable the CIFS server root@isv-x4500b # svcadm enable svcadm enable svcadm enable svcadm enable -r smb/server r smb/server r smb/server r smb/server svcadm: svc:/milestone/network depends on svc:/network/physical, which has multiple instances This diagnostic message, and it can be ignored. 2. Create the ZFS file system 2. Create the ZFS file system 2. Create the ZFS file system 2. Create the ZFS file system root@isv-x4500b # zfs create zfs create zfs create zfs create -o casesensitivity=mixed tank/cifs0 o casesensitivity=mixed tank/cifs0 o casesensitivity=mixed tank/cifs0 o casesensitivity=mixed tank/cifs0 3. Share the new file system via SMB and check that status of the operation 3. Share the new file system via SMB and check that status of the operation 3. Share the new file system via SMB and check that status of the operation 3. Share the new file system via SMB and check that status of the operation root@isv-x4500b # zfs set sharesmb=on tank/cifs0 zfs set sharesmb=on tank/cifs0 zfs set sharesmb=on tank/cifs0 zfs set sharesmb=on tank/cifs0 root@isv-x4500b # sharemgr show sharemgr show sharemgr show sharemgr show -vp vp vp vp default nfs=() zfs zfs/tank/cifs0 smb=() tank_cifs0=/tank/cifs0 4. Change the name of the Share 4. Change the name of the Share 4. Change the name of the Share 4. Change the name of the Share I don't like the default name of the share, tank_cifs0, so I will change that to cifs0 root@isv-x4500b # zfs set sharesmb=name=cifs0 tank/cifs0 zfs set sharesmb=name=cifs0 tank/cifs0 zfs set sharesmb=name=cifs0 tank/cifs0 zfs set sharesmb=name=cifs0 tank/cifs0 root@isv-x4500b # sharemgr show sharemgr show sharemgr show sharemgr show -vp vp vp vp default nfs=() zfs zfs/tank/cifs0 smb=() cifs0=/tank/cifs0 5. Set the name of the Workgroup. 5. Set the name of the Workgroup. 5. Set the name of the Workgroup. 5. Set the name of the Workgroup. By default the workgroup name is "workgroup" but I want to change that to "solcifs". root@isv-x4500b # smbadm join smbadm join smbadm join smbadm join -w solcifs w solcifs w solcifs w solcifs Successfully joined workgroup 'solcifs' 6. Install the SMB PAM module 6. Install the SMB PAM module 6. Install the SMB PAM module 6. Install the SMB PAM module Add the below line to the end of /etc/pam.conf: Solaris smb server September-09-08 11:40 PM solaris Page 1
29
Embed
Solaris smb server - Waterloo Computer Science Clubcsclub.uwaterloo.ca/~wbkang/solaris stuff.pdf · · 2009-03-29solaris Page 5 . solaris Page 6 . solaris Page 7 . solaris Page
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Configuring the OpenSolaris CIFS Server in Workgroup Mode
[Update July 4th 2008: This article was written prior to the release of OpenSolaris 2008.05,
and I used the term OpenSolaris sloppily as I really meant Solaris Express Community
Edition, codenamed "Nevada". If you take a look here the different downloads available are
explained.
These instructions are equally applicable to both distributions, but depending on what
Solaris Express Community Edition package cluster you install you may not have the SMB
server packages (I always install everything, so I cannot be more precise than that). In the
case of OpenSolaris 2008.05 you will need to add the packages SUNWsmbkr & SUNWsmbs
from the repository using Package Manager, or using the pkg install <pkgname>
command.]
This article documents a quick and simple process showing you how configure the
OpenSolaris CIFS Server in Workgroup Mode.
I am working on a Sun Fire X4500 with Solaris Nevada build 86 installed....
3. Share the new file system via SMB and check that status of the operation3. Share the new file system via SMB and check that status of the operation3. Share the new file system via SMB and check that status of the operation3. Share the new file system via SMB and check that status of the operation
root@isv-x4500b # zfs set sharesmb=on tank/cifs0zfs set sharesmb=on tank/cifs0zfs set sharesmb=on tank/cifs0zfs set sharesmb=on tank/cifs0
root@isv-x4500b # sharemgr show sharemgr show sharemgr show sharemgr show ----vpvpvpvp
default nfs=()
zfs
zfs/tank/cifs0 smb=()
tank_cifs0=/tank/cifs0
4. Change the name of the Share4. Change the name of the Share4. Change the name of the Share4. Change the name of the Share
I don't like the default name of the share, tank_cifs0, so I will change that to cifs0
root@isv-x4500b # zfs set sharesmb=name=cifs0 tank/cifs0zfs set sharesmb=name=cifs0 tank/cifs0zfs set sharesmb=name=cifs0 tank/cifs0zfs set sharesmb=name=cifs0 tank/cifs0
root@isv-x4500b # sharemgr show sharemgr show sharemgr show sharemgr show ----vpvpvpvp
default nfs=()
zfs
zfs/tank/cifs0 smb=()
cifs0=/tank/cifs0
5. Set the name of the Workgroup.5. Set the name of the Workgroup.5. Set the name of the Workgroup.5. Set the name of the Workgroup.
By default the workgroup name is "workgroup" but I want to change that to "solcifs".
6. Install the SMB PAM module6. Install the SMB PAM module6. Install the SMB PAM module6. Install the SMB PAM module
Add the below line to the end of /etc/pam.conf:
Solaris smb serverSeptember-09-08
11:40 PM
solaris Page 1
other password required pam_smb_passwd.so.1 nowarn
In this whole process, this is the only time I have to edit a file, and this is a one off.
7. Set/Change the Passwords for any Solaris User That Will be Used to Authenticate when 7. Set/Change the Passwords for any Solaris User That Will be Used to Authenticate when 7. Set/Change the Passwords for any Solaris User That Will be Used to Authenticate when 7. Set/Change the Passwords for any Solaris User That Will be Used to Authenticate when
Connecting to aConnecting to aConnecting to aConnecting to a CIFS shareCIFS shareCIFS shareCIFS share
I will user root, but I could use any Solaris user the server knows about.
4) Make sure the real hostname is in /etc/nodename.
5) Make sure the fully qualified domain is contained in /etc/defaultdomain
6) Use ifconfig as indicated below to make the live change. I would recommend sending a broadcast message to that effect before you do it. Also, make sure that you make changes on the DNS servers as well, so that the end users and other systems can find interface.
Example: Consider host alfredo with 10.10.10.10 and 10.10.10.11 assigned to ce0, and a second interface, ce1, ip address 10.10.11.10, called dns1 in dns, the host file entries would be:
10.10.10.10 alfredo.foo.com alfredo saucy #Interface on 10.10.10 network 10.10.10.11 alfredo-0.foo.com alfredo-1 whitesauce #vip 10.10.11.10 dns1.foo.com dns1 #Interface on 10.10.11 network
The hostname files would be named hostname.ce0, hostname.ce0:0, and hostname.ce1. The contents would be:
hostname.ce0: alfredo
hostname.ce0:0 alfredo-0
hostname.ce1: dns1
Related ContentJobs
1. UNIX Systems Administrator -Solaris -Linux (Dice)
2. Unix Administrator (Linux with Sun Solaris) requirement in NJ (Dice)
3. LOTUS NOTES DOMINO EXPERT WANTED (Dice)
Community Content
1. Lotus notes / Domino easily integrated as a BI datasource (Blogs)
2. Get started using Solaris (Wiki)
3. RE:Re: Time increment (Groups)
Reference Material for This Grouppowered by ITtoolbox Wiki
Create an Article for This GroupPlay with soft partitions on SolarisSample NIS implementation on SolarisSample configuration of DHCP server on SolarisInstall Solaris from flash archiveSolaris x86 root filesystem mirroringJumpstart Server Solaris 10Solaris CommandsOpen Boot PROM - OK PromptQuick guide for installation Glassfish on SolarisThe vfstab fileSolarisSuggestions and ideas about filesystem sizing on SolarisSolaris root password recoverySet up a multipurpose Solaris web serverPractical guide for minimalistic Solaris installationWhat is the difference between Solaris and Linux?How to create package in SolarisCreation of sample zone in Solaris for hosting apacheMount a USB key under SolarisDisk configuration on Solaris
View All
How to set IP address, Subnet mask , and gateway - ITtoolbox