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 ----aaaa
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 server1. Enable the CIFS server1. Enable the CIFS server1. Enable the CIFS server
root@isv-x4500b # svcadm enable svcadm enable svcadm enable svcadm enable ----r smb/serverr smb/serverr smb/serverr 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 system2. Create the ZFS file system2. Create the ZFS file system2. Create the ZFS file system
root@isv-x4500b # zfs create zfs create zfs create zfs create ----o casesensitivity=mixed tank/cifs0o casesensitivity=mixed tank/cifs0o casesensitivity=mixed tank/cifs0o casesensitivity=mixed tank/cifs0
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".
root@isv-x4500b # smbadm join smbadm join smbadm join smbadm join ----w solcifsw solcifsw solcifsw solcifs
Successfully joined workgroup '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.
root@isv-x4500b # passwd rootpasswd rootpasswd rootpasswd root
New Password:
Re-enter new Password:
passwd: password successfully changed for root
With the SMB PAM module installed, this generates passwords that can be used by
Windows as well as Solaris. This is a required step.
Pasted from <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode>
http://docs.sun.com/app/docs/doc/820-2429/processoverview?a=view
solaris Page 2
cp /etc/nsswitch.dns /etc/nsswitch.conf
Setting up dns clientSeptember-09-08
11:40 PM
solaris Page 3
solaris Page 4
solaris Page 5
solaris Page 6
solaris Page 7
solaris Page 8
UNIX Knowledge Base 152,060 UNIX subscriptions
What is ITtoolbox? A community where peersshare knowledge about information technology.
{Start connecting. Take the tour
}
Sign in to ITtoolboxE-mail or User ID
Password
or Sign up!Forgot password? Help
Invite
Peers
Find
Members
UNIX
Home
Blogs
Wiki
Groups
Strategy
&
Planning
Vendor
Selection
Technical
&
Functiona
l
Career
Research
White
Papers
Tutorials
Surveys
Podcasts
Download
s
Events &
Webcasts
Jobs
Industry
Press
Topics
More
Content
Alerts &
Newslette
rs
My
Account
Provide
Feedback
Communi
ty Hub
solaris-l
UNIX Groups > Technical-functional > solaris-l > MessageAbout This Group | Invite peers to join this group
<< Prev thread < Prev msg Next msg > Next thread >>
How to set IP address, Subnet mask , and gatewayReply from Jeff Scott on 5/1/2004 7:10:00 PM
The procedure for configuring interfaces is as follows:
1) Put an entry (or edit the existing entry) in /etc/hosts corresponding to the new ip address. This entry will appear as follows:
10.10.10.10 interfacename.fully.qualified.domain.name alias1 alias2 ...
Note: each ip address assigned to the host, including virtual ip addresses, must have a separate entry in hosts file.
2) Create a file in /etc named hostname.interface. If this is a virtual ip address, the filename is hostname.interface:vipnumber.
Note: IPv6 addresses use hostname6.interface.vipnumber
3) Put an entry for each network in /etc/netmasks. The format is:
<network number> <netmask> <network number> <netmask>
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
GroupsSeptember-11-08
1:21 AM
solaris Page 9
dns1
The remaining files are:
nodename: alfredo
defaultdomain foo.com
netmasks: 10.10.10.0 255.255.255.0 10.10.11.0 255.255.255.192
Hope that helps.
Jeff Scott
Digg
del.icio.us
Blog
more...Related White Papers and WebcastsOpen, Manage and Accelerate SSL Encrypted Applications
TCO Calculator
MACH5 Acceleration Technology
Selecting BI Technology for Enterprise Success: Lessons Learned from Over
1,800 Companies
Best Practices for Integrating EDA into Your Organization
Post Reply Watch this Thread
Full Thread
Expand AllHi gurus please answer below queries 1. How to set IP ...asked by Suresh H on 4/30/2004 4:08:00 AM
man ipconfig man eeprom Kent Kent Smith IPSO Incorporatreply from Kent Smith on 4/30/2004 7:38:00 AM
1. How to set IP address Subnet mask and gateway to NIC in ...reply from Senthil Kumar U - CTD, Bangalore on 4/30/2004 8:58:00 AM
man ipconfig man eeprom make change etchosts make change ...reply from denmanjc on 4/30/2004 9:04:00 AM
Hi The answer to your first question is assuming your nic ...reply from Luis Angarita on 4/30/2004 9:06:00 AM
To permenantly set the ip subnet and gateway you will need ...reply from M_Kilgore on 4/30/2004 9:09:00 AM
Kent Smith via solaris l wrote IBM staff in offshore ...reply from Nigel Henden on 4/30/2004 10:55:00 AM
Luis Angarita via solaris l wrote IBM staff in offshore ...reply from Nigel Henden on 4/30/2004 10:55:00 AM
etchosts is a sym link to etcinethosts. People often forget ...reply from Mark Ahlstrom on 4/30/2004 11:08:00 AM
To set ip address 1 edit etchostname.hme0 inseert your ...reply from nickf on 4/30/2004 6:43:00 PM
Hi Suresh 1 The ip address can be assigned using ifconfig ...reply from Abhinav Saksena on 5/1/2004 10:25:00 AM
The procedure for configuring interfaces is as follows 1 ...reply from Jeff Scott on 5/1/2004 7:10:00 PM -- current message
About | Community Hub | Take the Tour
| Contact us | Privacy | Terms of Use | Work at ITtoolbox | Advertise with us
Knowledge Bases: Business Intelligence - C Languages - CIO - CRM - Database - Data Warehouse - EAIEmerging Technologies - ERP - Hardware - Knowledge Management - Networking - Project Management - SCM -
Security
Storage - Web Design - Wireless - Baan - Java - Linux - Oracle - PeopleSoft - SAP - Siebel - UNIX - Visual Basic -
Windows
Also at ITtoolbox: Blogs - Groups - Wiki - Events & Webcasts - Job Center - Vendor Research Directory
solaris Page 10
Also at ITtoolbox: Blogs - Groups - Wiki - Events & Webcasts - Job Center - Vendor Research Directory
Copyright �1998-2008 Information Technology Toolbox, Inc. All product names are trademarks of their respective companies.
Information Technology Toolbox, Inc. is not affiliated with or endorsed by any company listed at this site.
UNIX is a registered trademark of The Open Group in the US and other countries.
>
Inserted from <http://unix.ittoolbox.com/groups/technical-functional/solaris-l/how-to-set-ip-address-subnet-mask-and-
gateway-464466>
solaris Page 11
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1227
Host Power Management Causes Problems with Guest Timekeeping (Windows Hosts)
It did not work for me.
Vmware timing problemOctober-21-08
10:29 AM
solaris Page 12
/etc/defaultrouter
just write the ip address in there.
Setting up the default gatewayOctober-23-08
11:38 PM
solaris Page 13
edit the destination disk's partition accordingly using format.
#format /dev/dsk/cXdX…
Replace the device.
#zpool replace rpool cXdXtXsX cXdXtXsX
Confirm that the replace is done by
#zpool status
Installing grub to the destination disk
Use
#installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/...
Replacing the root poolOctober-24-08
3:00 PM
solaris Page 14
$pfexec su -
#su postgres
#createuser username
^D
#su username
#createdb
Postgresql setupNovember-02-08
2:39 PM
solaris Page 15
dtconfig
Controlling xOctober-24-08
4:31 PM
solaris Page 16
global# zonecfg -z my-zonezonecfg:my-zone> add fs add fs add fs add fs
zonecfg:my-zone:fs> set dir=/usr/local set dir=/usr/local set dir=/usr/local set dir=/usr/local
zonecfg:my-zone:fs> set special=/empty set special=/empty set special=/empty set special=/empty
zonecfg:my-zone:fs> set type=lofs set type=lofs set type=lofs set type=lofs
zonecfg:my-zone:fs> add options roadd options roadd options roadd options ro
zonecfg:my-zone:fs> endendendend
zonecfg:my-zone:fs>
Pasted from <http://learningsolaris.com/zones-unofficial-faq/>
Mounting local directory for ZonesOctober-26-08
11:37 PM
solaris Page 17
http://www.kraftek.com/blog/index.php?/archives/227-NX+freenx-server-binary-tarball-for-Solaris-10-
x86.html
Package
Fix nxnode's ld_library_path to /usr/X11/lib
Sed 's/cp \-af/cp \-f/g ' for nxnode and nxsetup
Link /usr/lib/X11/libXpm.so.4 to ~~~.11
Using NX server on solarisOctober-15-08
5:28 PM
solaris Page 18
devfsadm
Probe new devices.February-02-09
9:49 PM
solaris Page 19
Use crle
LD_LIBRARY_PATH (for dynamically linked libraries)February-06-09
12:17 AM
solaris Page 20
Re: CURRENT: ncurses build failure on Solaris/x86 (don't
use -static)
Pasted from <http://www.mail-archive.com/[email protected]/msg03278.html>
ncurse build failFebruary-06-09
1:09 AM
solaris Page 21
CFLAGS=-lnsl
Using gethostbynameFebruary-08-09
8:22 PM
solaris Page 22
Use
/usr/bin/chmod
And
/usr/bin/ls -v
ZFS aclFebruary-13-09
1:48 AM
solaris Page 23
Opensolaris: Enabling XDMCPMarch-07-09
12:43 AM
solaris Page 24
solaris Page 25
Vbox addition: automatic screen resolution change does not work.March-09-09
12:58 AM
solaris Page 26
solaris Page 27
solaris Page 28
1. Make sure nfs/client service is enabled
2. /etc/vfstab should have the entry as boot at mount time.
Nfs does not mount at boot timeMarch-18-09
9:09 PM
solaris Page 29